Indicator templates

Moderator: admin


Comets

Postby Apprentice » Sun May 03, 2020 4:56 am

Capture.PNG

Comets.lua
(6.2 KiB) Downloaded 28 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Bars On Tick Chart

Postby Apprentice » Wed May 06, 2020 5:36 am

AUDJPY t1 (05-06-2020 1043).png

Bars On Tick Chart.lua
(4.18 KiB) Downloaded 29 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Candle Label Overlay

Postby Apprentice » Tue May 12, 2020 1:45 pm

AUDCAD H1 (05-12-2020 1853).png

Candle Label Overlay.lua
(4.32 KiB) Downloaded 17 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

2d_template

Postby Apprentice » Mon May 25, 2020 6:52 am

screesnhot1.png

2d_template.lua
(11.64 KiB) Not downloaded yet

Customizable at the top of the file:

local axis_shift = 10;

local x_indi = "SSD";
local x_stream = 0;
local x_min = 0;
local x_max = 100;
local x_sections = 5;
local x_digits = 0;
local x_levels = { 80, 20 };

local y_indi = "RSI";
local y_stream = 0;
local y_min = 0;
local y_max = 100;
local y_sections = 5;
local y_digits = 0;
local y_levels = { 70, 30 };

local points_count = 5;
You need to create parameters for the indicators in function CreateParameters() and create indicators in function CreateIndicators(source). You can define what stream to use in _stream valirables. _min and _max defines the range for the axis. _sections defines number of sections/notches on the axis. _digits defines number of digits after the point for the values on the axis. _levels defines static lines on the axis (OB/OS). points_counts defines the length of the history on the chart.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Indicator Development

Who is online

Users browsing this forum: Bing [Bot] and 6 guests