Page 1 of 1

Vertical lines from file

PostPosted: Wed Mar 21, 2012 8:56 am
by Alexander.Gettinger
The indicator draws a vertical lines in accordance with the data from the file.

Strings of input file must have such format:
[Date] [Time] [R] [G] [B] [Style] [Size] [Name], where
Date - date of line with format MM/DD/YYYY,
Time - time of line with format HH:MM,
R, G, B are a components of line color,
Style, Size - style and size of line (style may be SOLID, DOT, DASH or DASHDOT),
Name - name of line.

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

Download:
DrawVerticalLines.lua
(4.84 KiB) Downloaded 1330 times


Sample of input file:
VLSample.csv
(83 Bytes) Downloaded 1199 times


The indicator was revised and updated

Re: Vertical lines from file

PostPosted: Tue Jun 26, 2012 12:54 pm
by Rachid
Hi,
Very nice Job Alexander :)

Is it possible to determine the height of the lines? for example EUR/USD between 1.20000 & 1.30000.

the price levels should be in the file too.

Thank you.

Re: Vertical lines from file

PostPosted: Wed Jun 27, 2012 4:34 am
by Apprentice
Your request is added to the development list.

Re: Vertical lines from file

PostPosted: Mon Jul 02, 2012 2:45 pm
by Alexander.Gettinger
The indicator with start and end prices of line.

Strings of input file must have such format:
[Date] [Time] [StartPrice] [EndPrice] [R] [G] [B] [Style] [Size] [Name], where
Date - date of line with format MM/DD/YYYY,
Time - time of line with format HH:MM,
StartPrice - start price of line,
EndPrice - end price of line,
R, G, B are a components of line color,
Style, Size - style and size of line (style may be SOLID, DOT, DASH or DASHDOT),
Name - name of line.

Download:
DrawVerticalLines2.lua
(5.14 KiB) Downloaded 1216 times

Re: Vertical lines from file

PostPosted: Tue Apr 04, 2017 6:13 am
by Apprentice
Indicator was revised and updated.

Re: Vertical lines from file

PostPosted: Mon Sep 18, 2023 3:07 am
by mayk01
Hello,
is it possible that there is some error in it?
It draws well on Eur/Usd, and also on major currency pairs, copper, but not on the others. The lines are not displayed, only the caption.
Is it possible to improve or extend for example to show the lines on SPX?

thanks,
M.

Re: Vertical lines from file

PostPosted: Mon Sep 25, 2023 3:25 am
by Apprentice
Try it now.

Re: Vertical lines from file

PostPosted: Mon Sep 25, 2023 4:17 am
by mayk01
Hi,
I tried it and it works!
:)
thanks,
M.