NinjaTrader 8 · NinjaScript
NinjaTrader strategy developer for automated trading
KMG Capital builds, converts, and repairs NinjaTrader 8 strategies in NinjaScript and C#: from precise entry and exit rules to position sizing, daily limits, and backtest review.
Work is handled directly by founder Jad Kabbaj. Bring a TradingView strategy, an existing NinjaScript, or a set of rules that needs to become a testable system.
NinjaScript development
Turn a trading idea into a strategy you can inspect and test.
Each project starts with the actual trading rules and the behavior expected from the platform.
Custom strategies
Build NinjaTrader 8 strategies around your indicators, entries, exits, trading sessions, and contract quantities.
TradingView conversions
Translate a Pine Script strategy into NinjaScript, then compare signals and investigate differences in data, calculation timing, and fills.
Risk and session rules
Add stop and target logic, daily profit or loss limits, and session restrictions with the reset time and scope agreed upfront.
Existing strategy fixes
Investigate unexpected orders, position quantities, and differences between historical and real-time behavior. For a broader assessment, start with a trading system diagnostic.
Practical checklist
What to check when a strategy places the wrong number of contracts.
Order quantities can look correct in isolation while position changes tell a different story. The sequence matters.
- Start with the position. Record whether the strategy was flat, long, or short before the signal and how many contracts it held.
- Trace the orders and fills. Compare the requested quantity with actual executions, including partial fills and any working exit orders.
- Check reversals separately. For example, going from long one contract to short one requires selling two contracts in total: one to close the long and one to open the short. That order quantity alone does not mean the resulting short position is two contracts.
- Repeat across conditions. Review historical and simulated real-time behavior, session boundaries, and restarts before drawing conclusions.
The exact fix depends on the strategy’s order approach and intended behavior. A backtest or simulated run cannot guarantee live execution.
How it works
Agree on the rules. Test the behavior.
- 01
Define the scope
Review the strategy, instrument, trading hours, position sizing, and expected deliverables.
- 02
Build or repair
Implement the agreed rules in NinjaScript and identify platform-specific assumptions that need checking.
- 03
Validate and hand over
Review representative signals, orders, and results in NinjaTrader, explain known limitations, and hand over the agreed files.
Common questions
Before you start
Can you convert a TradingView strategy to NinjaTrader?
Yes. With the source and a clear specification, the rules can be rebuilt in NinjaScript. Differences in market data, bar timing, and order fills should be checked rather than assumed away.
Can you add a daily profit limit?
Yes. The implementation needs an agreed definition of the trading day, which profit and loss counts, and whether the limit blocks new entries or also closes an open position.
Can you fix an existing NinjaScript strategy?
Yes. Share the source, the expected behavior, and an example of what happened. The scope can range from a specific order issue to a wider system review.
Do you guarantee trading results?
No. KMG Capital provides software, research, and technical consulting. Historical results do not predict future performance.
NinjaTrader strategy development
Bring the rules, the code, or the order that needs explaining.
Share the instrument, your strategy, and where the project stands. Jad will reply directly with a useful next step.