How make andraw a line from point a to point b in the chart?

Questions about MultiCharts and user contributed studies.
andy4444
Posts: 25
Joined: 14 Nov 2013
Has thanked: 8 times
Been thanked: 2 times

How make andraw a line from point a to point b in the chart?

Postby andy4444 » 21 Jan 2014

Hi
I assume this is really simple, but I cannot find any instruction on how to do this.
I am programing an indicator and I want it to plot lines between point A and point B, but I am not able to find an instruction on how to do this.
Could anyone tell me where I can find a tutorial or a any type of instruction on how this simple task is done?
Thank you
Andy

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How make andraw a line from point a to point b in the ch

Postby TJ » 21 Jan 2014

Hi
I assume this is really simple, but I cannot find any instruction on how to do this.
I am programing an indicator and I want it to plot lines between point A and point B, but I am not able to find an instruction on how to do this.
Could anyone tell me where I can find a tutorial or a any type of instruction on how this simple task is done?
Thank you
Andy
Can you draw a mock up on how you want to plot this line?


There are different ways to do it,
e.g.

plot it like a daily bar (with a Bar High and a Bar Low),

or use drawing objects. (Look up TL_NEW)

andy4444
Posts: 25
Joined: 14 Nov 2013
Has thanked: 8 times
Been thanked: 2 times

Re: How make andraw a line from point a to point b in the ch

Postby andy4444 » 21 Jan 2014

Thanks for your reply TJ
What I'm looking for is to make the indicator draw lines from different points on different bars.
E.g. draw a line from the high of bar [0] to the high of bar [5].

Another need is to make the indicator draw a "point" or "dot" at a particular price on a particular bar.

E.g. draw a "point" at price 125 on bar [3]

Thanks for any input!

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How make andraw a line from point a to point b in the ch

Postby TJ » 21 Jan 2014

Thanks for your reply TJ
What I'm looking for is to make the indicator draw lines from different points on different bars.
E.g. draw a line from the high of bar [0] to the high of bar [5].
Another need is to make the indicator draw a "point" or "dot" at a particular price on a particular bar.
E.g. draw a "point" at price 125 on bar [3]
Thanks for any input!
You can start here:
[FAQ] EasyLanguage / PowerLanguage
viewtopic.php?f=16&t=6929

The Essential EasyLanguage Programming Guide
Drawing Objects ... pg.112


Return to “MultiCharts”