Vertical 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

Vertical lines from file

Postby Alexander.Gettinger » Wed Mar 21, 2012 8:56 am

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 1324 times


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


The indicator was revised and updated
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Vertical lines from file

Postby Rachid » Tue Jun 26, 2012 12:54 pm

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.
Rachid
 
Posts: 16
Joined: Thu Jan 06, 2011 2:33 pm

Re: Vertical lines from file

Postby Apprentice » Wed Jun 27, 2012 4:34 am

Your request is added to the development list.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Vertical lines from file

Postby Alexander.Gettinger » Mon Jul 02, 2012 2:45 pm

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 1211 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Vertical lines from file

Postby Apprentice » Tue Apr 04, 2017 6:13 am

Indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Vertical lines from file

Postby mayk01 » Mon Sep 18, 2023 3:07 am

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.
mayk01
 
Posts: 28
Joined: Tue Nov 14, 2017 3:38 pm


Re: Vertical lines from file

Postby mayk01 » Mon Sep 25, 2023 4:17 am

Hi,
I tried it and it works!
:)
thanks,
M.
mayk01
 
Posts: 28
Joined: Tue Nov 14, 2017 3:38 pm


Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 41 guests