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
Hi, I hope you doing Greate, Let me share details , so the original EA already working but you can check and verify everything fine.First you verify that all original EA features are working correctly then add a user dashboard showing the number of detected zones, buy sell both none status, and an on off button. also ensure mitigated zones disappear properly and that trades follow the zone rules, and integrate the
I need a high-speed Expert Advisor (EA) for MT5 designed specifically for XAUUSD (Gold) scalping. The bot should focus on fast entries and quick profits with high efficiency. Main requirements: 1. Symbol: XAUUSD (Gold only). 2. Platform: MetaTrader 5. 3. Strategy type: Scalping (fast trades, quick profit). 4. The bot should open trades frequently based on fast market movements. 5. Small Take Profit (quick profit
Gold_m1_ob_bot. 30+ USD
import MetaTrader5 as mt5 import pandas as pd import time from datetime import datetime # ================== CONFIG ================== SYMBOL = "XAUUSD" TIMEFRAME = mt5.TIMEFRAME_M1 LOT = 0.01 MAX_OBS = 12 # keeps signals frequent ATR_PERIOD = 14 IMPULSE_FACTOR = 1.5 # strong candle = impulse SESSION_START = 8 # GMT (London open) SESSION_END = 20 # GMT (NY close) MAX_SPREAD = 30 #
I have existing compiled indicator and script files (EX4) and would like to have them recreated in both MQL4. ⚠️ Important: This project is NOT for decompiling or reverse engineering. Instead, the goal is to: Analyze the behavior and output of the provided files Recreate equivalent functionality from scratch Deliverables: 1 MQL4 indicator source code (.mq4) 1 MQL4 script source code (.mq4) Requirements: The recreated
I need a good programmer to help convert an existing indicator to a trading EA that can work on both MT4 and MT5. The expected features on the EA is as follows: Max Spread: Magic Number: Take Profit: Stop Loss: Trailing Stop: Fixed Lot Size: Money Management: false/true Min Lot Size: Max Lot Size: Risk to Trade %: Daily Profit Target %: Add news filter. Get my jobs with source code
A perfect indicator 30 - 80 USD
Merge nearby zones yes/no Alert on/off Label on/off Show only current relevant zones near price yes/no Distance filter from current price Zone transparency Colors Preferred Output on Chart: I want the indicator to show only: the strongest nearby support zones under price the strongest nearby resistance zones above price major higher timeframe zones clean chart view I do not want excessive clutter. Entry Assistance
Criei um Robô para a venda alta precisão que automatiza a estratégia de correção média de Larry Williams. Possui filtros de tendência seletiva, controle de lote por risco percentual e execução rápida. Compatível com contas Hedge e Netting. Configuração simples e otimizada para mercados de alta volatilidade. *55(16) 993786056
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

Project information

Budget
200+ USD
Deadline
to 1 day(s)