I don't want to use a TrendLine to mock a Time Line object because I want it to be plotted over all the subcharts of the chart window.
For example, this code is woking but it plots just on one subchart:
Code: Select all
Inputs:
LineTime(0830),
LineColor(DarkGray),
LineStyle(Tool_Solid),
LineThickness(0.5);
Variables:
Offset(0);
Offset = Minmove/PriceScale;
If T >= LineTime and T[1] < LineTime then begin
Value1 = TL_New(D, T, H+Offset, D, T, H+Offset*100);
Value2 = TL_SetExtRight(Value1, True);
TL_SetColor(Value1, LineColor);
TL_SetStyle(Value1, LineStyle);
TL_SetSize(Value1, LineThickness);
Value3 = TL_New(D, T, L-Offset, D, T, L-Offset*100);
Value4 = TL_SetExtRight(Value3, True);
TL_SetColor(Value3, LineColor);
TL_SetStyle(Value3, LineStyle);
TL_SetSize(Value3, LineThickness);
End;
I did not find a way doing such a thing with multicharts without multipling my indicator over each subchart.