I am working on a currency strategy and understand that one cannot put in a stop loss together with a trailing stop in Ninjatrader strategy.
To work around this issue, I would like to have the stop loss price stored in a variable and have a function exit the position once the price is hit. If however, price moves more than a number of pips, then I would set the trailing stop.
May I know how I can retrieve the entry price? Or is there a better way to do this in code?
WHB
Comment