TL drawn in future?

Questions about MultiCharts and user contributed studies.
User avatar
BB123
Posts: 69
Joined: 24 Nov 2023
Has thanked: 23 times
Been thanked: 11 times

TL drawn in future?

Postby BB123 » 07 Jan 2024

Looking to draw a vertical trendline in the future based off of time...

example..
New day opens at that point i draw a trendline in the future at 0930... I know how to trade Vert Tend line-- but not sure how to draw them into the future..

Any thoughts?


Yooohooo TJ :)

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 56 times

Re: TL drawn in future?

Postby Polly MultiCharts » 11 Jan 2024

Hello BB123,

It is possible to draw vertical line drawings ‘in the future’, i.e. not on the bars.
You can check this code sample for reference:

Code: Select all

[RecoverDrawings = false] var: lastBar(1), counter(1), id(1); lastBar = Symbol_CurrentBar; for counter = 1 to 1000 begin tl_delete(counter ); end; if LastBarOnChart_s then begin for counter = 1 to 11 begin id = tl_new_bn(lastBar + counter * 5, close + 100, lastBar + counter * 5, close - 100); end; end;
VerticalLinesInTheFuture.png
(54.2 KiB) Not downloaded yet

User avatar
BB123
Posts: 69
Joined: 24 Nov 2023
Has thanked: 23 times
Been thanked: 11 times

Re: TL drawn in future?

Postby BB123 » 14 Jan 2024

TJ your slippin.... Thanks Polly.. Will check this out :)


Return to “MultiCharts”