Martingale EA

MQL4 Experts

Job finished

Execution time 2 days
Feedback from employee
Very Disciplined and loyal person

Specification

Please check the picture to understand the EA strategy.


INPUT:

Entry_type: manual/automatic

Lot size:

pending_distance_pips:

lot_size_multiplier

maximum_buy_trades

Maximum_sell_trades

Enable trading time period; Enable/Disable (for automatic entry type only)

Trade start hour

Trade end hour

Enable_avarage_pending_orders_entry: enable/disable

Maximum_loss: (amount)

Profit_Close_Total_Lot:

Profit_Close_Total_Amount:


STRATEGY:

-EA opens selected quantities of sell and buy orders (maximum_buy_trades

Maximum_sell_trades) . And multiplies the opened lot by a selected Lot size (in input lot_size_multiplier) and opens Buy stops and Sell stops from a selected distance of the opened trades`s entry point. Pending_distance_pips in input will stand for the distance.  and so on.. based on martingale strategy..


Explanation: If we open Buy order, EA multiplies the lot by a selected Lot size (in input lot_size_multiplier) and opens Sell Stop pending order at selected distance (pending_distance_pip) from the entry point. If we open Sell order, EA multiplies the lot by a selected Lot size (in input lot_size_multiplier) and opens Buyl Stop pending order at selected distance (pending_distance_pip)


FUNCTIONS:

1. Avarage_pending_orders_entry: EA must modify and make same pending entry point for pending Sell Stops ,EA must modify and make same pending entry point for pending Buy Stops
-explanation on 1 and 2: if we have 3 open Buy orders , then we also have 3 Sell Stops which are executed automatically. Due to high volatility Sell stops entries are executed in different entry points. EA must modify all the pending order entry points on average and make them all the same entry point.


3. Entry_types: should be automatic and manual. 


4. In both entry types EA should open Buy orders, Sell orders, Pending Buy stops and pending Sell stops all in once at selected quantity and size


5. Maximum_loss: should be executed by using Multiple_Close_By instrument in MT4 (enabled for Automatic Entry type only)


6. Profit_Close_Total should be done by using Multiple_Close_By instrument in MT4.

Profit_close_total function should be enabled for Automatic Entry type only


Profit_close_total function Explanation:

if market goes bearish and Sell Stops are executed, now we have

1 lot buy

1 lot buy

1 lot sell

1 lot sell

2 lots sell

2 lots sell

Total buy lots 2

Total sell lots 6

which means we have a total of 4 SELL lots.

in this case Profit_Close_Total should be executed when the profit reaches $1600.


if one direction (BUY or SELL) total lots are 1 lot, then Profit_close_total should be executed at $400

for example:

if we had

0.5 lot Sell

0.5 lot Buy

1 lots Buy

Means now we have a total 1 lot open buy order. And Profit_close_total executes  once the profit reached $400


Profit_Close_total_lot and Profit_close_total_amount more  examples:

Profit_Close_Total_Lot = 1;
Profit_Close_Total_Amount = $400;

If the total lots is '1' -> in this case the EA will close trades as soon as '(1 / 1) * $400 = $400.00  '  is reached.  

If the total lots is '1.5' -> in this case the EA will close trades as soon as '(1.5 / 1) * $400 = $600.00'  is reached.   


Profit_Close_Total_Lot = 1.2;

Profit_Close_Total_Amount = $500;

If the total lots is '1' -> in this case the EA will close trades as soon as '(1 / 1.2) * $500 = $416.66'  is reached.   

If the total lots is '2.5' -> in this case the EA will close trades as soon as '(2.5 / 1.2) * $500 = $1041.66'  is reached.  

NOTE. Profit_Close_total function should be adjustable in input. Where we can change BUY or SELL Profit_close_total. for example. 0.09, 1.20 and so on


7. Profit_Close_Total_Amount: also has to be changeable in input


8. As soon as any trade closed by using Multiple Close By instrument (automatic entry or manual entry) all the remaining open and pending orders has to be closed


9. Automatic Entry Type: After all trades are closed, EA executes new trade orders. This does not apply for Manual entry type


10. Manual Entry Type. EA should execute Trades and Pending trades as soon as we click on Buy or Sell

For example: 

Input parameters:

Lot size: 0.5

Lot_size_multiplier: 2

Maximum_buy_trades: 3

Maximum_sell_trades: 3


If we choose lot size 0.03 on MT4 live and click on Buy or Sell doesnt matter. EA should open: 

3 Buy trades at 0.03 

3 Sell Stops at 0.06 

3 Sell trades at 0.03

3 Buy Stops at 0.06


PLEASE READ THE ENTIRE STRATEGY AND FUCTIONS BEFORE TELLING ME YOU CAN DO IT. 3 DEVELOPERS TOOK THE ORDER AND COULD NOT FINISHED THE JOB AND ENDED UP IN CANCELLING THE ORDER. YOU MUST READ AND UNDERSTAND THE STRATEGY AND FUCTIONS BEFORE TELLLING ME YOU CAN DO IT!  PLEASE AND THANK YOU




Responded

1
Developer 1
Rating
(2)
Projects
5
0%
Arbitration
1
0% / 100%
Overdue
0
Working
2
Developer 2
Rating
(11)
Projects
11
0%
Arbitration
5
20% / 60%
Overdue
2
18%
Free
3
Developer 3
Rating
(37)
Projects
59
27%
Arbitration
26
19% / 54%
Overdue
10
17%
Working
Published: 1 code
4
Developer 4
Rating
(50)
Projects
64
20%
Arbitration
11
27% / 55%
Overdue
5
8%
Free
Similar orders
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone

Project information

Budget
200+ USD
Deadline
to 1 day(s)