I hope you're all having a great day. I'm reaching out for assistance regarding an issue I've been facing with my NinjaTrader bot, specifically related to implementing a breakeven stop.
Following the example provided in the NinjaTrader forum (you can find the link here: Breakeven on Strategy Builder), I attempted to incorporate a breakeven stop into my strategy. However, I've encountered a significant drawback: the stops are consistently placed above the market, resulting in my bot being disabled due to stop rejection errors.
After carefully reviewing my code and comparing it with the provided example, I still can't identify the reason behind this undesired behavior. I would greatly appreciate any guidance, suggestions, or corrections you can offer to resolve this issue.
It's worth noting that I'm relatively new to NinjaScript programming, so any insights from the community, especially if you've experienced something similar or have ideas on addressing this specific problem with breakeven stops in NinjaTrader, would be incredibly valuable.
Thank you all in advance for your time and assistance.
Best regards,
Drackstack.
Attached to this post is a link to download the code for the bot I've been developing.
Comment