I have searched the NinjaTrader forums and have read many posts related to this error message, but none have answered the question that I have about the error itself, nor how to work around the error to achieve what I wish to do.
Assume that my strategy is reduced to the following condition in order to go long.
All logic takes place in the OnBarUpdate method.
Calculate is set to OnBarClose.
Condition:
* Completed bar is a Doji.
Parameters to enter long position:
* Entry point is the high of the Doji.
* Stop loss is the low of the Doji.
* Profit target is twice the absolute difference between the entry point and the stop loss. (2:1 reward/risk ratio.)
For long positions, aren't stop prices supposed to be set to a price that is less than the current price?
How may I otherwise enter a long position using my parameters?
Thank you.
Comment