I´m using in my NT7-script strategies in onExecution
if(Position.MarketPosition == MarketPosition.Short)inshorttrade=true;
if(Position.MarketPosition == MarketPosition.Long)inlongtrade=true;
(Position.MarketPosition == MarketPosition.Flat){inshorttrade=true; inlongtrade=true;}
to use then the bool in my conditions and I plot this bool with drawtextfixed in the chart to verify.
Now I have a script from a programmer and I added this snippets but this doesnt work. It always shows "...false" in my chart, even when I´m short or long. Does the "onexecution" statements maybe not work if the script is calling an ATM? If so, what can I use instead to have a simple bool for flat or not to use in my conditions.
Thank you!
Tony
Comment