Hi there coders, appreciate anyone's help with this paid task.
I will like to create EA for entering market on 2 MA lines cross over for buy and sell signals. EA will add on lots to winning positions(pyramid strategy).
The idea is to cut short losses, hit stoploss or breakeven and move on to next trade. Let profits run and even add on lots to winning positions.
Market Entry:
EA will enter the first position on the MA crossover signal based on the user input lots (or optionally to use MM). There will be a stoploss set together with the first entry. The EA will not have martingale available( i do not need it).
Buy entry:
EA will enter a buy position upon the fast MA crossing below the slow MA. At the same time, EA will set buy limit by the grid space(in pips) above the entry position (pyramid strategy) . How many levels of buy limit orders to set will depends on the input of user.
EA will set a stoploss on the first buy entry based on user input in pips. Subsequent limit orders will not have a stoploss.
Sell entry:
EA will enter a sellposition upon the fast MA crossing above the slow MA. At the same time, EA will set sell limit by the grid space(in pips) below the entry position(pyramid strategy). How many levels of sell limit orders to set will depends on the input of user.
EA will set a stoploss on the first sell entry based on user input in pips. Subsequent limit orders will not have a stoploss.
Losing positions:
Once position hits stoploss, it will close all open positions and wait for the next MA crossover signal to enter a new position.
There is no martingale. No need to include the need to add on lots for losing trades features.
Winning positions:
As the EA already set the levels of entry limit orders in place, more lots will add on to the winning position as the limit orders are hit(position will increase as the EA catches the correct trend).
Trailing stops can be activated. Trailing stops can be set by user input. Once a winning position hits trailing stop, EA will close ALL current running positions and take profit. Trailing stops for buy positions will close all buy positions and trailing stops for sell positions will close all sell positions(if hedging is activated).
Break even:
Option to turn on break even for all buy positions or all sell positions.
Break even for all buy positions: As lots are added on current winning positions, EA will set stoploss to break even price of average of all the buy positions added up.
Break even for all sell positions: As lots are added on current winning positions, EA will set stoploss to break even price of average of all the sell positions added up.
Handling conflicts of trailing stoploss and breakeven levels:
As there are 2 events that are controlling the same stoploss level,there seems to be a conflict.
- Trailing stopless will control the stoploss level
- Breakeven level will also control the stoploss level
Solution: Just let the EA trigger whichever events currently comes first. We can discuss more if you are not sure.
EA inputs:
- Fast MA
- Fast MA mode
- Slow MA
- Slow MA mode
- Lot size or MM (0 for MM in %)
- Stoploss in Pips (0 to disable, or put option to enable and disable)
- Takeprofit in Pips (0 to disable, or put option to enable and disable)
- Trailing Stoploss in Pips (0 to disable, or put option to enable and disable)
- Average buy positions breakeven (True / False)
- Average sell positions breakeven (True / False)
- Number of pending buy limit orders
- Number of pending sell limit orders
- Hedging positions - Allow buy and sell orders at the same time?(True / False)
- Start Hour - Start trading hour
- Start Min - Start trading min
- End Hour - End of trading hour
- End Min - End of trading min
I am open for advice, maybe other indicators has better win rate than moving averages?
Ähnliche Aufträge
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs
SPECIFICA TECNICA: Cerco uno sviluppatore MQL5 esperto per sviluppare da zero un Expert Advisor completamente nuovo per XAUUSD su MT5. Non desidero un semplice Expert Advisor basato su indicatori fissi. Desidero un sistema di trading dinamico e adattivo , in grado di adattare il comportamento proprio alle diverse condizioni di mercato di XAUUSD. Lo sviluppatore può utilizzare tecniche appropriate quali trend
I am looking for a Senior MQL5 Developer to create a new MetaTrader 5 Expert Advisor from scratch. I will provide a complete Requirements Specification containing objective entry, exit and risk-management rules. This is not a request to copy or decompile an existing product. Project requirements: Clean and modular MQL5 source code. Exact implementation of the supplied strategy. One signal evaluation per configured
Title: Multi-Timeframe Pure Price Action & Elliott Wave Execution Bot for XAUUSD 1. Project Overview I need a robust, automated trading bot (Expert Advisor) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) exclusively. The strategy is built entirely on Top-Down Multi-Timeframe (MTF) market structure, pure price action, and Elliott Wave principles. It does not use traditional lagging technical indicators (like RSI or
NinjaTrader 8 / NinjaScript Phase 1 build: convert an existing Auction Market Theory (AMT) strategy into objective, alert-only decision-support logic. Not a bot, no auto-execution — trades stay manual. Covers NQ/MNQ, ES, CL, MGC using 30-min TPO/Volume Profile context with 5-min confirmation: one 5-min close outside VAH/VAL = acceptance, close back inside = rejection. Dashboard shows bias, auction state, location
Hi i need help to connect my chat gtp with ninja trader I have all tools. Just need supervision and seeking a professional who can do that for me. This the bridge extension https://crosstrade.io/blog/chatgpt-to-ninjatrader-mcp-walkthrough
MT5 EA DEVELOPMENT SPECIFICATION CHANNEL + RSI REVERSAL STRATEGY I need a professional MetaTrader 5 Expert Advisor based on the following exact strategy. 1. Core Strategy The EA must automatically identify a valid price channel using confirmed swing highs and swing lows. The strategy trades reversals from the channel extremes: SELL: Upper channel + RSI above 70 + bearish rejection. BUY: Lower channel + RSI below 40 +
العنوان: برمجة اكسبيرت MT4 (روبوت تداول) مخصص للذهب يعتمد على RSI والزيجزاج بدون مضاعفات الوصف: السلام عليكم ورحمة الله وبركاته، مطلوب مبرمج محترف بلغة MQL4 لتطوير اكسبيرت (روبوت تداول آلي) مخصص لمنصة ميتاتريدر 4 بناءً على الشروط والمواصفات الفنية الصارمة التالية، لتداول معدن الذهب (XAUUSD) على إطار الخمس دقائق (M5): 1. المتغيرات الخارجية (External Inputs - قابلة للتعديل يدوياً من الإعدادات): إدارة المخاطر (إدارة