Draw Horizontal line - get the HL price in an indicator  [SOLVED]

Questions about MultiCharts and user contributed studies.
Geonss
Posts: 5
Joined: 16 Dec 2015
Has thanked: 1 time

Draw Horizontal line - get the HL price in an indicator

Postby Geonss » 06 Mar 2017

Hi! It is possible to draw a horizontal line and to have an indicator like this (pseudo-code):

if Horizontal_Line is True
then getHorizontalLine_Price

Thanks in advance!

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Draw Horizontal line - get the HL price in an indicator

Postby JoshM » 08 Mar 2017

Hi! It is possible to draw a horizontal line and to have an indicator like this (pseudo-code):

if Horizontal_Line is True
then getHorizontalLine_Price
Yes, this is possible. You can draw any kind of line you want (provided it's a trend line), and with the `TL_GetValue_s()` keyword you can retrieve a trend line's price for any time on the chart.

How you implement it is a bit more work, of course. Do you already have a piece of code to begin with?

Geonss
Posts: 5
Joined: 16 Dec 2015
Has thanked: 1 time

Re: Draw Horizontal line - get the HL price in an indicator  [SOLVED]

Postby Geonss » 08 Mar 2017

Hi JoshM and thanks for your reply. No, I don't have any code yet. I just found this http://www.multicharts.com/discussion/v ... php?t=8766 and trying to modify to get what I want. I would be grateful if you could help me/let me know of any ideas.


Return to “MultiCharts”