Diagonal lines from file

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Diagonal lines from file

Postby Alexander.Gettinger » Fri Oct 20, 2017 10:13 am

Based on request: viewtopic.php?f=27&t=64557

The indicator draws diagonal lines in accordance with the data from the file.

Strings of input file must have such format:
Date1, Time1, Price1, Date2, Time2, Price2, R, G, B, Style, Size, where
Date1, Date2 - date of line points with format MM/DD/YYYY,
Time1, Time2 - time of line points with format HH:MM,
Price1, Price2 - prices of line points,
R, G, B are the components of line color,
Style, Size - style and size of the line (style may be SOLID, DOT, DASH or DASHDOT).

You may not specify color, style and width of lines. In this case, will be used by the default settings.

Download:
DrawDiagonalLines.lua
(3.36 KiB) Downloaded 22 times


Sample of input file:
DLSample.csv
(166 Bytes) Downloaded 22 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 2932
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests