Indicator templates

Moderator: admin


2d_template

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

screesnhot1.png

2d_template.lua
(11.64 KiB) Downloaded 956 times

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: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia



Vertical Lines

Postby Apprentice » Mon Aug 24, 2020 5:09 am

EURUSD H2 (08-24-2020 1008).png

Vertical Lines.lua
(5.7 KiB) Downloaded 871 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia




Re: Indicator templates

Postby Apprentice » Tue Jan 05, 2021 8:43 am

Dashboard_currencies_view.lua
(17.67 KiB) Downloaded 781 times

Dashboard_light.lua
(16.37 KiB) Downloaded 790 times

Dashboard_light_instruments.lua
(18.19 KiB) Downloaded 802 times

Dashboard_sorted.lua
(19.5 KiB) Downloaded 797 times

Dashboard.lua
(18.81 KiB) Downloaded 737 times

Dashboard_currencies.lua
(17.43 KiB) Downloaded 789 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


PreviousNext

Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 9 guests