NinjaScript Stop-Loss Enhancement
Budget: $15 – $25 USD
I already have a working NinjaTrader 8 strategy; what’s missing is dynamic stop-loss management. The idea is simple: once the trade moves a user-defined number of points in my favor, I want the code to automatically increase the existing stop by a fixed amount.
Key details you’ll need to honor
• The trigger is strictly “points in favor.” Percentage-based or time-based triggers are not required.
• When that threshold is hit, the stop is pushed farther away (i.e., increased) by a configurable number of points—no breakeven moves and no reductions.
• Long and short positions must read from separate parameter sets so I can fine-tune both the trigger distance and the adjustment size independently.
• Entry logic, profit targets, and the original stop placement all stay exactly as they are until the new rule fires.
Deliverables
1. Updated .cs file (or files) with clearly commented sections showing the new logic.
2. Brief note or inline comments explaining any public inputs added so I can modify them in the strategy parameters window.
3. Confirmation that the added logic compiles and runs inside NinjaTrader 8 without breaking existing behavior.
If you’re comfortable with NinjaScript/C# and have tackled similar management rules before, this should be a straightforward enhancement.
Key details you’ll need to honor
• The trigger is strictly “points in favor.” Percentage-based or time-based triggers are not required.
• When that threshold is hit, the stop is pushed farther away (i.e., increased) by a configurable number of points—no breakeven moves and no reductions.
• Long and short positions must read from separate parameter sets so I can fine-tune both the trigger distance and the adjustment size independently.
• Entry logic, profit targets, and the original stop placement all stay exactly as they are until the new rule fires.
Deliverables
1. Updated .cs file (or files) with clearly commented sections showing the new logic.
2. Brief note or inline comments explaining any public inputs added so I can modify them in the strategy parameters window.
3. Confirmation that the added logic compiles and runs inside NinjaTrader 8 without breaking existing behavior.
If you’re comfortable with NinjaScript/C# and have tackled similar management rules before, this should be a straightforward enhancement.