You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I will write an advisor of any complexity. The main thing is to have a good idea. How you will use it I do not care: will sell - I do not mind (I will not ask for money).
P. S. If you need an indicator, you have to tell me about the strategy in which you want to use it.
https://forum.mql4.com/ru/34977
I have already told you that it is not necessary to spam and multiply the number of identical posts.
Hello, Can you please tell me if it is possible to remake this EA for MT4? It is written to work in MT3, but no one is working on MT3 now.
I want to thank him in advance.
/*[[
Name := Kazakh Boa
Author :=original indicator ZigZag from Kazakhstan
ideas refinement and use from nemo-X
small programming and debugging from eugene5
Link :=
Notes :=
Lots := 0.1
Stop Loss := 100
Take Profit:= 100
Trailing Stop := 0
]]*/
Defines: barn(100),Length(6);
Defines: slippage(10);
Variables : shift(0),lasthigh(-1),lastlow(-1),lasthighpos(0),lastlowpos(0),currentvalue(0), lastvalue(0);
Variables : val(0),back(0),res(0),flag(0);
Variables : curlow(0),curhigh(0),currentshift(0),lastshift(0);
Variable: Trend(0),lastposition("");
Variables : LL(0),HH(0),Swing(0),Swing_n(0),BH(0),BL(0),i(0),zu(0),zd(0),NH(0),NL(0), uzl(0);
Array: Uzel[10000,2](0);
SetLoopCount(0);
// loop from first bar to current bar (with shift=0)
Swing_n=0;Swing=0;uzl=0;
BH =High[barn];BL=Low[barn];zu=barn;zd=barn;
For shift= barn downto 0 Begin
LL=10000000;HH=-100000000;
for i=shift+Length downto shift+1 Begin
if Low[i]< LL then {LL=Low[i];};
if High[i]>HH then {HH=High[i];};
end;
if Low[shift]<LL and High[shift]>HHH then
{
Swing=2;
if Swing_n=1 then {zu=shift+1;};
if Swing_n=-1 then {zd=shift+1;};
}
else
{
if Low[shift]<LL then {Swing=-1;};
if High[shift]>HH then {Swing=1;};
};
if Swing <> Swing_n and Swing_n<>0 then
{
if Swing=2 then {swing=-Swing_n;BH = High[shift];BL = Low[shift]; };
uzl=uzl+1;
if swing = 1 then {Uzel[uzl,1]=zd;Uzel[uzl,2]=BL;};
if swing =- 1 then {Uzel[uzl,1]=zu;Uzel[uzl,2]=BH; };
BH = High[shift];BL = Low[shift];
};
if swing = 1 then { if High[shift] >= BH then {BH=High[shift];zu=shift;};};
if swing = -1 then { if Low[shift]<=BL then {BL=Low[shift]; zd=shift;};};
Swing_n=Swing;
end;
for i =1 to uzl Begin
SetIndexValue(Uzel[i,1],Uzel[i,2]);
end ;
//below trading addition by eugene5
If FreeMargin<1000 then Exit; // nomoney - exit
flag=0;
for i=1 to TotalTrades
{
if Symbol=Ord(i,VAL_SYMBOL) then
flag=i;
};
trend=Uzel[uzl,2]-Uzel[uzl-1,2];
if trend<0 then
{
comment("difference zigzaz=",trend, " want buy:)", " lastposition=", lastposition);
}
else
if trend>0 then
{
comment("difference zigzag=",trend, " want to sell:)", " lastposition=", lastposition);
}
else
comment("difference zigzag=",trend, " stand at :(", " lastposition=", lastposition);
//If CurTime > LastTradeTime + 10 Then //standard check by time
{
if trend<0 then
{
if flag<>0 and ord(flag,VAL_TYPE)=OP_SELL then
{
Comment("close order");
CloseOrder(ord(flag,VAL_TICKET),ord(flag,VAL_LOTS),bid,slippage,red);
lastposition="sell";
exit;
}
else
if flag=0 and (lastposition="sell" or lastposition="") then
{
Comment("buy");
SetOrder(OP_BUY,lots,ask,Slippage,ask-StopLoss*point,ask+TakeProfit*Point,RED);
exit;
};
};
if trend>0 then
{
if flag<>0 and ord(flag,VAL_TYPE)=OP_BUY then
{
Comment("close order");
CloseOrder(ord(flag,VAL_TICKET),ord(flag,VAL_LOTS),ask,slippage,red);
lastposition="buy";
exit;
}
else
if flag=0 and (lastposition="buy" or lastposition="") then
{
Comment("sell");
SetOrder(OP_SELL,lots,bid,Slippage,bid+StopLoss*point,bid-TakeProfit*Point,RED);
exit;
};
};
}
Hello, could you please write an EA for this system?
We make two EAs, one starts in buy and the other in sell.
When opening a deal we always put a stop loss of 10 pips and a take profit of 40 pips to keep the ratio of profit to loss at 1:4.
If a deal turns out to be unprofitable - we increase the stake of the next deal using the table until we obtain at least one profitable deal. This trade will pay back all our losses and give us some profit.
Trades # Lot Loss Profit
1 0,01 1 4
2 0,01 1 4
3 0,01 1 4
4 0,01 1 4
5 0,02 2 8
6 0,02 2 8
7 0,03 3 12
8 0,03 3 12
9 0,04 4 16
10 0,05 5 20
11 0,06 6 24
12 0,08 8 32
13 0,1 10 40
14 0,12 12 48
15 0,15 15 60
16 0,18 18 72
17 0,23 23 92
18 0,29 29 116
19 0.36 36 144
To better understand the point, let's look at an example.
We make 1 stake with the lot 0.01 (according to the table for 1 stake this lot). We lose and get the loss of 1$. Make 2nd bet - we lose again, we also get 1$ loss, total loss is 2$.
We make 3,4 bets and the loss increases to 4$. On 5 deals we increase the stake to 0,02 lots and we also get a loss.
We make 6,7,8 bets and get the loss again!
On 8th bet we have a loss of 1$+1$+1$+1$+2$+2$+3$+3= $14. But we have 11 more tries to get a profitable trade.
On the 9th trade we made a bet with lot 0.04 and won $16!!! In the end it turns out that all losses on previous trades ( it's 14$) we got back and plus we earned 2$! That is, 8 losses in a row and 1 profitable deal in the end brought us profit!
Thus, not only we did not lose anything, but also earned!
After that, the game starts all over again from the first bet, until we get our profit again.
P.S. This system (manually) works flawlessly in real life!
On the 9th trade we made a bet with lot 0,04 and won 16$!!!! As a result it turns out that all losses on previous trades ( it's 14$) we returned and plus we earned 2$! That is, 8 losses in a row and 1 profitable deal in the end brought us profit!
Thus, not only we did not lose anything, but also earned!
After that, the game starts all over again from the first bet, until we get our profit again.
P.S. This system (by hand) on the real works flawlessly!
4000 bought - (1.2 dollars) + (40) point = 16 - 1.2 - 14.8 dollars
Name := Kazakh Udav
Google: Kazakh Boa site:mql4.com
service is new)) -Let me google it for you- http://tinyurl.com/22wckjq
1000 point $1000 - $0.1 opening 3pp 1000 - $0.3
4000 bought -($1.2) + (40) point = 16 - $1.2 - $14.8
All done. Application to be disregarded
Hello, could you please write an EA for this system?
We make two EAs, one starts in buy and the other in sell.
When opening a deal we always put a stop loss of 10 pips and a take profit of 40 pips to keep the ratio of profit to loss at 1:4.
If a deal turns out to be unprofitable - we increase the stake of the next deal using the table until we obtain at least one profitable deal. This trade will pay back all our losses and give us some profit.
Trades # Lot Loss Profit
1 0,01 1 4
2 0,01 1 4
3 0,01 1 4
4 0,01 1 4
5 0,02 2 8
6 0,02 2 8
7 0,03 3 12
8 0,03 3 12
9 0,04 4 16
10 0,05 5 20
11 0,06 6 24
12 0,08 8 32
13 0,1 10 40
14 0,12 12 48
15 0,15 15 60
16 0,18 18 72
17 0,23 23 92
18 0,29 29 116
19 0.36 36 144
To better understand the point, let's look at an example.
We make 1 stake with the lot 0.01 (according to the table for 1 stake this lot). We lose and get the loss of 1$. Make 2nd bet - we lose again, we also get 1$ loss, total loss is 2$.
We make 3,4 bets and the loss increases to 4$. On 5 deals we increase the stake to 0,02 lots and we also get a loss.
We make 6,7,8 bets and get the loss again!
On 8th bet we have a loss of 1$+1$+1$+1$+2$+2$+3$+3= $14. But we have 11 more tries to get a profitable trade.
On the 9th trade we made a bet with lot 0.04 and won $16!!! In the end it turns out that all losses on previous trades ( it's 14$) we got back and plus we earned 2$! That is, 8 losses in a row and 1 profitable deal in the end brought us profit!
Thus, not only we did not lose anything, but also earned!
After that, the game starts all over again from the first bet, until we get our profit again.
P.S. This system (manually) works flawlessly in real life!