Ninjatrader Indicator conversion

指定

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.

反馈

1
开发者 1
等级
(1)
项目
0
0%
仲裁
1
0% / 100%
逾期
0
空闲
2
开发者 2
等级
项目
1
100%
仲裁
0
逾期
0
空闲
相似订单
.. 30 - 200 USD
Ebrahim Ajarousha uggjhh jhghjh jhb hbhh hbhkoo ddddf drrd ffff tff ftv. Tf. Rf. Ff. F. Ff v. Hb b h h h c c n j j e. K dk. K kx. Kd. Kc k. Xk. Dk. K xk. Nx. Nx. Xj. Xnx xk. X xk d c g t. X f. C x x c
I have a fully developed and ready Expert Advisor for MT5. I am NOT looking for coding work. I am looking for an experienced MQL5 Market seller who can publish and manage my EA on the MQL5 Market on my behalf. The deal is revenue share — we split the income from sales or rentals. The EA is complete and ready to publish. If you have an established seller account on MQL5 Market with good reputation and experience
I am seeking an alert-only EA. An EA that will follow all the rules but not execute a trade. As this is a repeat posting I am seeking the successful technician - Xiro from Vietnam. Thanks Karl
Ninjatrader bot 30+ USD
I am looking for an experienced developer who specializes in NinjaTrader and NinjaScript to build a fully automated trading bot. The goal is to create a “sniper-style” trading system that focuses on precise entries, strong risk management, and structured trading logic. This is NOT a simple indicator project I am looking for someone who understands algorithmic trading and can translate trading rules into a reliable
24/7 Pick-and-Pack Bot 30 - 200 USD
Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
24/7 Pick-and-Pack Bot 30 - 200 USD
Title: MT5 EA for XAUUSD M5 – Auto SL/TP + News Filter – Mobile Compatible Strategy: 1. Pair: XAUUSD, Timeframe: M5 2. Entry Buy: EMA(9) crosses above EMA(21) AND RSI(14) > 50 3. Entry Sell: Opposite 4. Exit: SL = 150 points, TP = 300 points. No trailing. 5. Risk: 1% of balance per trade, lot size auto-calculated 6. Time filter: Trade only 08:00–18:00 GMT+2, Mon-Thu. No Friday trades. 7. News filter: Pause 30min
Looking for a trading bot / Expert Advisor that wont make dozens of small successful trades and then one or two unsuccessful trades that wipes out your account Requirements: - MT4 capable - Use on the major currency pairs - although open to other currency pairs - Be successful in monetary terms not necessarily in how many successful trades
I need a MT5 Prop firm challenge passing EA with strict prop firm rules compliance. Any strategy can be used but win rate should be above 70%. It should have high impact news filter and a dashboard panel to monitor daily drawdown, target profit, current balance, etc. It should not have martingale, grid, hedging, etc
Hello Developers I have a Project to get done! i have a simple strategy can you please create the automated forex ea to execute my trading strategy? i need custom ea for tradingview and mt4/mt5 correction: i need a tradingview indicator created that tells me when to buy or sell. and ea in mt4/mt5
Pro firm setup 30+ USD
Hi, I am starting a futures prop firm. Are you able to help me get data feed for this with no delays and can handle many traders on the platform. Additionally, are you able to handle charts for us

项目信息

预算
30 - 95 USD
截止日期
 3 天