I'm relatively new to Ninjatrader and trying to build an automated trading strategy. The issue is that i'm having problems with setting the right entry/stop and target levels for my strategy.
What i'm trying to achieve:
- I want to place a pending buy order at the high of the candle (when the conditions are met)
- Set stop loss to the low of the candle
- Set target to 2x the risk
I tried doing the above as below:
EnterLongStopLimit(DefaultQuantity, High[0], Low[0],"Entry")
SetProfitTarget("Entry", CalculationMode, Percent, 2)
**NT** A Buy order placed at '09-Jul-10 23:00:00' has been ignored since the stop price is less than or equal to the close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.
Comment