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?
Commandes similaires
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Subject: Custom MT5 Multi-Currency EA Request - Multi-Timeframe Strategy with Trailing Stop Hi, I am looking for a developer to create a custom Expert Advisor (EA) for MetaTrader 5 (MT5) . The EA must be optimized for multi-currency testing and trading , allowing me to run it across multiple currency pairs simultaneously. The trading logic should be based on a multi-timeframe approach using the following indicators
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
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— 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