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
TL drawn in future?
- Polly MultiCharts
- Posts: 202
- Joined: 20 Jul 2022
- Has thanked: 1 time
- Been thanked: 56 times
Re: TL drawn in future?
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:
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;