Modify an existing moving average crossover EA
We need two things to be done in our existing and
functioning EA for MetaTrader 4.
1. Adding a feature that offset losses
2. Adding brokers’ commissions cost to the EA
1. Offset losses
The existing EA, buys and sells as explain on the
document attached, called “moving average strategy”.
Our intention is to add a feature that is triggered
when a trade make a loss. The objective is to cope with the losses generating more trades, a kind of “Martingale strategy”.
Bullet points
· The strategy tries to offset the loss trades,
generating more trades.
· It can generate one or more trades to cope with the
losses of a trade.
· We may want to generate more than one trade to cope
with the losses of a trade.
· Those trades that are generated to offset loss
trades, can generate more trades. In classic martingale, your next trade will try to cope with your previous trade loss, here we will divide
in X trade to cope with the loss.
· Be able to choose how many trades are open every
time.
· On report, we will need to be able to see how many
trades still to be open. So, it needs to save information of pass trades and pending trades.
Parameters
Loss trade divided: 0 means the feature is off. 1 to XX, it will
divide the loss trade in XX future trades, if parameter is 5, it will generate 5 consecutive trade to cope with the loss.
Active trades: At some point we would like to choose how many
trades the EA opens. If 0, unlimited if above 0 whatever it says. With this parameter you limit the trades the EA generate every time, as market
conditions could make the EA to generate lots of trades in a matter of MA crosses.
On report
On report we need the following figures;
Number of trades still to go in case we limit the active trades.
Value of the trades to go.
Number of trades trading.
Value of the trades trading.
Sum of commissions.
A compressive case
See on photo attached, 3.png
First column, called CROSS, this is when a MA cross the EA generate an order.
Second column, called profit main trade, it is simple the main trade the EA does
when MA crosses, to make it easy I choose take profit on 4 pips $60 and 40 pips $600.
Third column, called loss trade trigger is a reference of each main trade that
goes to losses.
Then the one called profit and loss, is a simple sum of each trade.
And the last one equity, this is the net deposit.
Those this exemple we hae used this parameters
Loss trade divided by: 10
Active trades: 0
So, it will dived the losses by 10 and it will allow the EA open as much trades
as the MA and losses dictates.
1. Cross 1 goes wrong and loss money, $600. The EA will generate 10 trades for the
next Crosses to cope with loss of Cross 1, and the calculations for the next 10 trades goes as follows $600/10 + target profit / 10. This trades
is 1.1.
2. On Cross 2 the EA will generate two trades, the main one and a second one that
tries to cope with losses of trade on Cross 1, trade 1.1.
3. Cross 3 the EA will generate two trades, the main one and a second one that tries
to cope with losses of trade on Cross 1, trade 1.1.
4. Cross 4 the EA will generate two trades, the main one and a second one that tries
to cope with losses of trade on Cross 1, trade 1.1. As it goes wrong, the EA will generate trade 1.2 and 2.1, those two trades will try to cope with
losses of trade 1.1 and main trade of cross 4.
5. Cross 5 EA wil generate 4 trades Main trade plus 1.1, 2.1 and 1.2.
2. Adding brokers’ commissions cost to the EA
We need a parameter to be able to define commissions. 0 means no
commissions, and then euros per lot.
Ähnliche Aufträge
I have an existing compiled MetaTrader 5 Expert Advisor (EX5) designed for automated XAUUSD scalping. I want an experienced developer to assess and implement a solution to execute the EA’s original trading strategy through my broker’s FIX API. Requirements: Confirm the technical feasibility of connecting an existing MT5 EA to a broker FIX API. Explain how to obtain FIX API access and credentials from the broker
I’m looking for an experienced developer to build a fully automated XAUUSD scalping EA for MT5. Requirements: * Fast entries targeting small, profitable moves after trading costs. * Configurable fixed-target and trailing-stop modes. A $1 gold price move can trigger profit protection instead of closing the trade. * Once the profit trigger is reached, move the stop to cover costs and lock in a small net profit, then
I want to create an EA that will take trades according to a trading zone condition. The logic will start with the identification of a trading zone for BUY and SELL in the EA. After the trading zone has been identified, then the EA will use the current time frame prices to determine if the market will be a BUY or SELL. The market will be a BUY if the low price range goes above the lowest price after the installation
I have an existing compiled MT5 Expert Advisor (.ex5) for XAUUSD scalping. I need a developer to build a bridge that connects my existing EA to a broker’s FIX API, allowing its trading signals to execute orders directly through FIX instead of the standard MT5 trade server. I do not need a new trading strategy or a new EA. Please confirm whether this is technically possible without the EA source code, and explain your
The present project has two parts. Part 1. Please refer to attached folder 1.Past Week Input File Presently it uses Chrome browser. It should be converted to Microsoft Edge. Presently, there are UserID and Password attached to it. These should be replaced by a cmd prompt asking for UserID and Password. Price $15. Part 2. Please refer to folder 2.Weekly Schedule. For Part 2, You will need the file
Hello, I want to create a custom Expert Advisor (EA) for MetaTrader 5 based on 3 main confirmations: Market Structure & Price Action: Identify high time-frame trend direction (HL/LH). Chart Pattern: Detect classic continuous/reversal patterns (e.g. Cup and Handle, Double Bottom/Top) on trading timeframe. Volume Profile (PoC): Confirm entry when price breaks/retests the Point of Control (PoC) level. Risk Management &
I am looking for a highly skilled trading strategist and MQL5 developer with genuine experience in researching, designing, testing, and implementing systematic trading strategies. My primary interest is XAUUSD (Gold), although proven experience with other financial markets is also welcome. I am not looking for someone who simply converts trading rules into code. I want to identify a professional who understands
We’re looking for an investment partner to help fund AegisGoldAIPro , an algorithmic trading platform being developed for MetaTrader 5, initially focused on gold. We’re building a modular system that combines market-structure analysis with planned AI-assisted decision support, risk controls, and automated execution. What we are building is not just a basic trading robots that depend on only one indicator or strategy
Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must