in NT7 I have these kinds of code snippets to make the automated strategy doings visible for me in the NT Strategy Analyzer:
if ( ord_StopLoss != null )
DrawLine(" StopLoss DashLine " + CurrentBar, false, 0 , dou_StopLossPrice, 1 , dou_StopLossPrice, Color.Red, DashStyle.Dash, 1);
Explanation: ord_StopLoss is the StopLossOrder of the stratgsy. This DrawLine shows me where the StopLoss Order was. It makes a Dash on every OnBarUpdate as long as StopLossOrder is in the market.
Unfortunately there have been some changes in NT8. I've done this adaptation with the help of the NT code breaking changes list:
if ( ord_StopLoss != null )
Draw.Line(this, " StopLoss DashLine " + CurrentBar, false, 0 , dou_StopLossPrice, 1 , dou_StopLossPrice, Brushes.Red, DashStyleHelper.Dash, 1);
Result: Well the last code snippet in NT8 hasn't worked out in the way like it was in NT7. It seems that nothings happens..
My Question: Which changes do I have to make in the last code snippet to produce a Dashline on every OnBarUpdate?
Many thanks for help
Comment