Add martingale to my Bollinger Band EA see the Martingale Logic

MQL4 Experts

Specification

I want someone to modify my EA: 

1.    My EA uses Bollinger Band of M5,M15 and M30 simultaneously.

1.    My EA uses Bollinger Band of M5,M15 and M30 simultaneously.

2.       I want to modify the EA to work with Martingale

3.       My stop loss is usually set at 1000 pips and Martingale entry at 500 pips

4.       If “a buy trade” opens and the price goes up to take profit martingale should not work.

5.       If “a sell trade” opens and the price goes down to take profit martingale should not work.

6.       If “a buy trade” opens and the price goes down instead of going up, but the price level < 500 pips from the open buy, to the extent that the price retraces back to take profit, martingale should not work.

7.       If “a sell trade” opens and the price goes up instead of going down, but the price level < 500 pips from the origin, to the extent that the price retraces to back to take profit, martingale should not work.

8.   If “a buy trade” opens and the price goes down instead of going up, but the price level = > 500 pips, the martingale should initiate logic, so that it helps to make profit  or reduce the loss

9.       If “a sell trade” opens and the price goes up instead of going down, but the price level = > 500 pips from the origin, the martingale should initiate logic, so that it helps to make profit  or reduce the loss

 

1.  Logic 1. If the Bollinger band opens Sell, but the price goes up or increased to a distance of 500 pips. The Martindale will open both Sell (S1) and Buy (B1) at the same time. Sell(S1) at Martindale = (1*Lot* Distance), and Buy (B1) at Martindale = (2*Lot*Distance).

  • Logic 1.1. If after the Martindale in logic 1 i.e. (Sell (S1) at Martindale = 1*Lot* Distance) opens, and the price rises and keeps rising, then do nothing to B1 until the (Buy (B1) at Martindale = 2*Lot* Distance) takes profit.
  • Logic 1.2. If after opening the Martindale in logic 1 i.e. (Buy (B1) at Martindale = 2*Lot* Distance), and the price falls, this will make the Buy (B1) becomes a loss. So if the price continues to fall and reaches 0.5*lot*distance i.e. 0.5 of S1, then open  new Sell (S2) again from S1. The sell (S2) will now be (2*Lot*0.5*distance). I believe this well help to reduce the loss if it occurs. Note that when martigale  opens S2, it does not close S1. The S1 and S2 will stop at the take profit, while B1 ends at stop loss
  • Note that after all this, the lot size must return back to the original i.e. Lot = 1.0.

 

     2.  Logic 2. If the Bollinger band opens Buy, but the price goes down or decreased to a distance of 500 pips. The Martindale will open both Sell (Si) and Buy (Bi) at the same time. Sell(Si) at           Martindale = (2*Lot* Distance), and Buy (Bi) at Martindale = (1*Lot*Distance).

  • Logic 2.1. If after opening the Martindale in logic 2 i.e. (Buy (Bi) at Martindale = 1*Lot* Distance), and the price falls and keeps falling, then do nothing until the (Sell (Si) at Martindale = 2*Lot* Distance) takes profit.
  • Logic 2.2. If after the Martindale in logic 2 i.e. (Sell (Si) at Martindale = 2*Lot* Distance), and the price rises, this will make the Sell (Si) becomes a loss. So if the price continues to rise and reaches 0.5*lot*distance, i.e. 0.5 of (Bi) then open  new Buy (Bii) again. The Buy (Bii) will now be (2*Lot*0.5*distance). I believe this well help to reduce the loss if it occurs.
  • Note that when martigale  opens Bii, it does not close Bi. The Bi and Bii will stop at the take profit, while Si ends at stop loss
  • Note after all this, the lot size must return back to the original i.e. Lot = 1.0

 

Responded

1
Developer 1
Rating
(49)
Projects
134
27%
Arbitration
62
13% / 53%
Overdue
58
43%
Free
2
Developer 2
Rating
(121)
Projects
134
66%
Arbitration
36
25% / 56%
Overdue
22
16%
Free
3
Developer 3
Rating
(46)
Projects
73
16%
Arbitration
13
8% / 92%
Overdue
37
51%
Free
4
Developer 4
Rating
(130)
Projects
210
40%
Arbitration
90
20% / 43%
Overdue
85
40%
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5

Project information

Budget
Deadline
from 1 day(s)