Mc tl new dt

From MultiCharts
Jump to navigation Jump to search

Similar to TL New Dt with a difference in some case. The TL New Dt behavior was changed for backward compatibility with TradeStation. In order to keep the original MC behavior (that was different from TS), the MC_TL_New_DT was added.

Example demonstrating the difference:
Var: TL_ID(-1);
if (CurrentBar = 10)
 then begin
 TL_ID = TL_New(Date, Time, High, Date, Time, Low);
end;
if (CurrentBar = 11)
 then begin
 TL_SetEnd(TL_ID, Date, Time, Low);
end;

TL_New_DT (both MC and TS) behavior: Trend line is plotted from High of bar # 10 to Low of bar # 11.

MC_TL_New_DT behavior: Trend line is plotted from Low of bar # 10 to Low of bar # 11.