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?
Похожие заказы
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
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
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
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