Hello Support,
how to code following TradeStation EasyLanguage Script in NinjaTrader:
------------------------------------------------------------------------------------------------
// Entries and Exits
Buy next bar at highD(0) stop;
Sellshort next bar at lowD(0) stop;
End;
// Stop loss
setstopcontract;
setstoploss(MyStop);
setprofittarget(myprofittarget);
setdollartrailing(mytrailingstop);
----------------------------------------------------------------------------
The problems I have in implementing the above script is the Stop Loss part.
When I use managed orders I can implement:
...
EnterLongStopMarket(...);
EnterShortStopMarket(...);
...
and this is working, but when I add:
SetStopLoss(...);
SetProfitTarget(...);
Can you help?
Regards
Oliver

Comment