Difference between revisions of "Mc tl new dt"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Same as TL New Dt Category:Trendline Drawing")
 
 
Line 1: Line 1:
Same as [[TL New Dt]]
+
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]]

Latest revision as of 16:19, 19 December 2013

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.