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.
Benzer siparişler
i have my indicator already and i need to fix a little issue in it, CHOCH and Bos indicator, i need to make it multitimeframe, i have a video that i have make regarding all details about the project, the project is not much at all, and i need a good developer that can get it done, i will send the video when you message me
Account size 50$ to 100$ or 5000USC to 10000USC ( Account $ Size may not matter ) Max Leverage 1000-2000 Min Lot 0.01 [ if averaging possible ] Averaging + Shift TP Faster Required if Trend Direction is Clear Account Protection Maxx Profit Max Loss Key Based Activation News Filter Need Expert to handle this to avoid false entry [ Developer can suggest extra additional filters inputs here ] as i mentioned I have no
Build a Forex Multi-Basket Trading Bot for OANDA (Python v20 REST API Only) MANDATORY DEVELOPER REQUIREMENTS (PLEASE READ BEFORE APPLYING): Do not apply for this project unless you meet the following strict professional criteria: 1. Deep Mathematical & Quantitative Background: You must thoroughly understand statistical distributions, rolling standard deviations (σ), calculating matrix medians, and dynamic Z-score
I need an AI based mt5 EA which self learns and improves on its previous mistakes. The EA must be able to utilize numerous trade set ups like; 1. CRT, 2. liquidity sweep reversal at selected higher timeframe where a candle sweeps previous candle high and closes lower or sweeps previous candle low and closes higher, 3. SMC where it trades on OB, CHoCH, BOS. 4. Support and resistance. It should trade any currency pair
i need some tradingview strategy that i want to use as a tester, i have something that i am working on currently and i need someone that can provide me with tradingview strategies that doesn't have a win rate, the one with 1:1 RR it need to have low win rate like 10% or 5% profitability, i am not paying $30 for,i dont have up to that for this cause i only want to use it as a test, if anyone have any to send me please
hello i need help building a ea bot for mt5 and i have started on claude but i will need someone if a incredible experience to make my ideas come to live. please contact so we can schedule a quick call and i can share anything that concerns you for the task
I need a custom MT5 Expert Advisor (EA) for XAUUSD Gold. I have attached a reference video showing the exact trading behavior I want. Please watch the entire video carefully before starting development. I want the EA to work as closely as possible to the reference video. MAIN TRADING BEHAVIOR: 1. The EA will trade XAUUSD (Gold) on MT5. 2. The EA should automatically open multiple positions without manual
I am looking for an experienced MQL5 developer who can BOTH research trading strategies and develop a commercial-quality MetaTrader 5 Expert Advisor. This is NOT simply a coding job. The developer is free to choose the trading logic, indicators, entry method, exit method, timeframe architecture and strategy type. I do not require the EA to copy or resemble any existing commercial EA. My priority is: ROBUST LONG-TERM
A developer will create an AI assisted EA forex watch-list scanner (not an auto-trader) designed to surface PDL/PDH bounces on M15, with coding in Python/MQL5. This will strictly be a market intelligence and scanning tool (no automatic order placement) and EA primary function will be a delivery of visual dashboard UI, 2-phased alerts (warning vs. execution), and multi-channel notification. 1. Project Overview &
Hello, please make me a simple MT5 Expert Advisor for XAUUSD on M15 timeframe. TRADING LOGIC: - BUY when EMA(10) crosses UP EMA(30) - SELL when EMA(10) crosses DOWN EMA(30) TRADING HOURS: - Only trade between 19:00 - 22:00 WIB / Jakarta time RISK SETTINGS: - Lot size: 0.01 - Stop Loss: 70 points - Take Profit: 150 - 300 points - Max 1 open position Please deliver .ex5 file ready to use. Thank you