Martingale Expert Advisor with no indicators

MQL4 Uzman Danışmanlar

İş Gereklilikleri

Open Buy and Sell

input double StartLots = 0.1;


Maritnagle on both sides.


input double pipStepWin = 25;

input double pipStepLoss = 25;


Lot exponent on both sides

input double LotExponentWinning= 1;

input double LotExponentLosing= 2;



For losing side, tp is breakeven point + Takeprofit + Sread

For winning side

1. first 2 levels profit at breakeven + X pips

2. for levels more than 2, tp is the previous level. for examples after 4 levels entries, tp is level 3.


If things go bad in martinagle at certain level, there will be a hedge in the opposite direction. SO if the buys are losing, at level 5, it will hedge the trade.

extern double HedgeLineLevelBuy = 5;

extern double HedgeLineLevelSell = 5;


If one set is hedged in sell, there can be more sets based on MaxSets allowed.

input int MaxSetsBuys = 3;

input int MaxSetsSells = 3;


When a trade is hedged, it stores the retracement distance to TP.

If there is one hedged trade of buy side and one hedged trade from sell side, we will open the hedges and allow them to move. One will take profit and the other one gets hedged at that next level.


The max level for emergency stoploss is level 10.


So example is as follows

Enter long and short 0.1 lots each

at 25 pips up- Level 1, the buy takes another 0.1 and the sell takes a 0.2 with different tp levels as mentioned above.

at another 25 pips up is the Level 2, the biy takes another 0.1 and sell takes 0.4 and so on, with diff tp as mentioned above.

the buys and sell are irrespective of each other.


If it reaches level 5, that is 125 pips, the sells will get hedged with 0.1+0.2+0.4+0.8+1.6 = 3.1 lots.

This will be held with a note of the tp distance.

Another hedged buy is collected, as the market going in the reverse direction.

In the above 2 trades we close the hedges and allow the market to move. Let's say the market went up, the buy trade took profit and the sell trade went to level 6 and got hedged. It will wait for the next buy to be able to take profit.


This will repeat as many times as the emergency stoploss is croseed or when MaxSetsBuys  || MaxSetsSells is exceeded.


Any information needed, kindly ask.




Yanıtlandı

1
Geliştirici 1
Derecelendirme
(375)
Projeler
398
31%
Arabuluculuk
62
19% / 69%
Süresi dolmuş
50
13%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(2409)
Projeler
3026
66%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
340
11%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(23)
Projeler
45
20%
Arabuluculuk
24
29% / 42%
Süresi dolmuş
12
27%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(466)
Projeler
695
56%
Arabuluculuk
43
30% / 33%
Süresi dolmuş
112
16%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(356)
Projeler
632
26%
Arabuluculuk
89
73% / 13%
Süresi dolmuş
12
2%
Serbest
6
Geliştirici 6
Derecelendirme
(1)
Projeler
3
33%
Arabuluculuk
0
Süresi dolmuş
3
100%
Serbest
7
Geliştirici 7
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
8
Geliştirici 8
Derecelendirme
(221)
Projeler
369
66%
Arabuluculuk
10
50% / 0%
Süresi dolmuş
46
12%
Serbest
9
Geliştirici 9
Derecelendirme
(26)
Projeler
34
26%
Arabuluculuk
7
14% / 43%
Süresi dolmuş
7
21%
Serbest
10
Geliştirici 10
Derecelendirme
(439)
Projeler
496
33%
Arabuluculuk
25
40% / 48%
Süresi dolmuş
7
1%
Yüklendi
11
Geliştirici 11
Derecelendirme
(66)
Projeler
143
34%
Arabuluculuk
11
9% / 55%
Süresi dolmuş
26
18%
Çalışıyor
Benzer siparişler
I AM A STUDENT, and i have this assignment, i want to create a zigzag indicator based ea, that spot patterns. it will take a sell or buy immediately pattern is met and set pending orders respectively, and when any of the trade hit take profit, all the order trade and pending order will be close and deleted, then ea will look for new pattern
PLEASE PROGRAMMER WITH ARBITRAGE EA KNOWLEDGE REUIRED; I want a programmer to COPY the following setting from MAIN EA to work with the arbitrage EA TRADER SPREAD 600. 1.copy and add the VIRTUAL PENDING STOP SETTING 2. copy the TRADING CONDITION 1 TO 4 3. Copy the setting PULLBACK in MAIN EA to be considered before an order is opened.if in use. i will provide all eas, *please i need a trial first before we
I have a thinkorswim indicator that I'd like to convert to trading view. Is anyone here that can help me with! Do you need to know anything details about this project before you could see if it's something you can do ? Send a DM and let me share with you my scrip
Hello, am looking for an expert that can code my expert advisor from the scratch and also adding my indicator to it, NOTE: the developer must be a professional and i need it within two days from now and also i need someone that can provide me with the test file before placing the order but will already be selected
Hello, am looking for an expert that can code my expert advisor from the scratch and also adding my indicator to it, NOTE: the developer must be a professional and i need it within two days from now and also i need someone that can provide me with the test file before placing the order but will already be selected
Can you get my drafts to work? Have to conditions in RSI and Stoch oscillators ,,,I have a draft but its not run,, you can help me? if iRsi <30 ordersend op_sell iStoch > 80 ordersend op_sell Period_15M Send Orders_Buy limit Pivot Price Send Orders_Sell Limit Pivot Price
Hello, am looking for an expert that can code my expert advisor from the scratch and also adding my indicator to it, NOTE: the developer must be a professional and i need it within two days from now and also i need someone that can provide me with the test file before placing the order but will already be selected
I need to develop an EA that based on SMC concept on any Forex Pairs and timeframe. The action flow of the EA will be as following link: https://fxopen.com/blog/en/smart-money-concept-and-how-to-use-it-in-trading/#:~:text=The%20Smart%20Money%20Concept%20(SMC)%20is%20a%20trading%20strategy%20focused,as%20banks%20and%20hedge%20funds. The EA's entry points will always be within the order block. The block will be
I require a highly experienced coder to create an MT5 EA, based on detailed instructions. The EA is quite basic in nature, and is reliant on the settings inputted by the user. However, the EA still needs to be coded correctly to ensure settings inputted are correctly executed by the EA. The coder must speak fluent english and have a basic understanding of trading to ensure a common sense approach to any coding. For
Hello there!! I need a very and highly technical developer to help me with a project on the ninjatrader please kindly bid if you can do this and all the needed information will be shared via inbox

Proje bilgisi

Bütçe
75 - 100 USD
Geliştirici için
67.5 - 90 USD
Son teslim tarihi
to 5 gün