Specification

Here's a strategy description:

Strategy: SMA-MACD Scaling Strategy
Objective:
Develop a trend-following strategy that uses SMA crossovers and MACD histogram for entry signals, incorporates scaling entries, and manages positions with adaptive take profit and stop loss orders.
Key Components:

Indicators:

20-period Simple Moving Average (SMA20)
200-period Simple Moving Average (SMA200)
MACD (12, 26, 9)


Entry Conditions:

Long:
a) SMA20 and SMA200 slopes are positive
b) MACD histogram turns negative
c) Wait for histogram weakness (ratio <= 0.8)
d) Enter on a red bar (close < open)
Short:
a) SMA20 and SMA200 slopes are negative
b) MACD histogram turns positive
c) Wait for histogram weakness (ratio <= 0.8)
d) Enter on a green bar (close > open)


Scaling:

Initial entry: 1 contract
Scale entries at 2, 4, 6, and 8 points away from initial entry
Scale sizes: 2, 3, 6, and 12 contracts respectively


Exit Strategy:

Take Profit: 2 points from the last scale entry price
Stop Loss: Starts 2 points behind entry, trails the market once 3 points in profit


Position Management:

Use StopTargetHandling = StopTargetHandling.ByStrategyPosition
Manage a single take profit order for the entire position
Update take profit size as scaling entries are filled


Risk Management:

Maximum position size: 24 contracts
Implement overall strategy stop loss


Additional Features:

Implement a reset mechanism for cycle completion
Add status display for current market conditions and strategy state
Include sound alerts for key events (entries, exits)



Development Guidelines:

Use NinjaTrader 8 framework
Implement proper error handling and logging
Ensure clean state management between trades
Optimize for real-time trading performance
Include thorough comments for code maintainability

Testing:

Backtest on historical data
Forward test in simulation mode
Monitor and log all entries, exits, and scaling behavior
Verify correct handling of take profit and stop loss orders

Remember to thoroughly test each component and the strategy as a whole under various market conditions to ensure robust performance.

Responded

1
Developer 1
Rating
(1)
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
2
Developer 2
Rating
Projects
1
100%
Arbitration
0
Overdue
0
Free
Similar orders
Hello, i need expert developer that have been develop so many profitable AI bots that work for mt5 and ctrader autonomously if you know you can easily execute this requirement bid for it. NOTE:- YOU MUST COME WITH SAMPLE FOR THE 2 TRADING PLATFORM. While i take a look at your profile and reach out to you thanks
Hi. Could you slightly rewrite my cBot for me to use a 5-minute chart without a fixed target? The stop should be a trailing stop at the level of the initial range
Hello, i would like to have a ninjatrader indicator. I wanna to have a footprint indicator with delta, imbalances and big trades identifiable. Also I wanna sell it on whop. And it should be fully customisable in NT8

Project information

Budget
30 - 95 USD
Deadline
to 3 day(s)