Mc tl new dt: Difference between revisions
From MultiCharts
no edit summary
(Created page with "Same as TL New Dt Category:Trendline Drawing") |
No edit summary |
||
Line 1: | Line 1: | ||
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. | |||
<div style="background-color: #E5F6FF;">'''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'''. | |||
</div> | |||
[[Category:Trendline Drawing]] | [[Category:Trendline Drawing]] |