manually installed Verticale line: Is there a way to detect  [SOLVED]

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1289
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 222 times

manually installed Verticale line: Is there a way to detect

Postby arjfca » 02 Oct 2016

Hello

Is there a way to detect if an vertical line has been draw on a chart?

The goal is to installed a vertical line on a day chart and draw a region on a lower time frame chart of the previously

Martin

User avatar
JoshM
Posts: 2131
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1532 times
Been thanked: 1523 times
Contact:

Re: manually installed Verticale line: Is there a way to det  [SOLVED]

Postby JoshM » 04 Oct 2016

Is there a way to detect if an vertical line has been draw on a chart?

The goal is to installed a vertical line on a day chart and draw a region on a lower time frame chart of the previously
Do you mean a vertical line as in a vertical Trend Line, or a Time Line drawing?

We can make trend lines programmatically in MultiCharts (including checking whether there's such a trend line on the chart), but a Time Line can unfortunately not be made nor managed programmatically.

By the way, if you create a trend line with the same time coordinate but with different price coordinates (for instance drawing it between the bar's high and low), and then extend the trend line in both directions, you get a vertical line too.

(Extending a trend line in PowerLanguage is done with the TL_SetExtLeft() and TL_SetExtRight() keywords.)


Return to “MultiCharts”