EA N7S_AO_772012 - page 17 1...101112131415161718192021222324...68 New comment Casper 2009.02.04 17:25 #161 Found a mistake in the trawl call function. It was inattentive. Correction void trl(){ total= OrdersTotal(); spread = MarketInfo(Symbol(), MODE_SPREAD); for( i = total - 1; i >= 0; i--) { OrderSelect( i, SELECT_BY_POS, MODE_TRADES); MN=OrderMagicNumber(); if(OrderSymbol() == Symbol() && MN>= 772012000 && MN<=772012199) { if ( MN==772012055) { sl = slx; tp = tpx* slx; mn= mnx1;} if ( MN==772012155) { sl = sly; tp = tpy* sly; mn= mny1;} if ( MN==772012011) { sl = slX; tp = tpX* slX; mn= mnX1;} if ( MN==772012111) { sl = slY; tp = tpY* slY; mn= mnY1;} int prevticket = OrderTicket(); if ( UseUdavkaTrail == false) { if(OrderType() == OP_BUY) {if(DayOfWeek( ) == 5 && Hour( ) >=22) { OrderClose( prevticket,OrderLots( ) ,Bid,3,Black);} if(Bid > (OrderStopLoss() + ( sl * 2 + spread) * Point)) { if( BTS()< 0) { OrderClose( prevticket,OrderLots( ) ,Bid,3,Black);} else { OrderModify(OrderTicket(), OrderOpenPrice(), Bid - sl * Point,0, 0, Blue);}}} else {if(DayOfWeek( ) == 5 && Hour( ) >=22) { OrderClose( prevticket,OrderLots( ) ,Ask,3,Blue);} if(Ask < (OrderStopLoss() - ( sl * 2 + spread) * Point)) {if( BTS() > 0) { OrderClose( prevticket,OrderLots( ) ,Ask,3,Blue);} else{ OrderModify(OrderTicket(), OrderOpenPrice(), Ask + sl * Point, 0, 0, Blue);}}} } else { if(OrderType() == OP_BUY) {if(DayOfWeek( ) == 5 && Hour( ) >=22) { OrderClose( prevticket,OrderLots( ) ,Bid,3,Black);} if(Bid > (OrderStopLoss() + ( sl * 2 + spread) * Point) || true) { if( BTS()< 0) { OrderClose( prevticket,OrderLots( ) ,Bid,3,Black);} else { TrailingUdavka(OrderTicket(), sl, sl+ spread, MathRound( sl/2), MathRound( sl+ sl/2), MathRound( sl/3));}}} else {if(DayOfWeek( ) == 5 && Hour( ) >=22) { OrderClose( prevticket,OrderLots( ) ,Ask,3,Blue);} if(Ask < (OrderStopLoss() - ( sl * 2 + spread) * Point) || true) {if( BTS() > 0) { OrderClose( prevticket,OrderLots( ) ,Ask,3,Blue);} else{ TrailingUdavka(OrderTicket(), sl, sl+ spread, MathRound( sl/2), MathRound( sl+ sl/2), MathRound( sl/3));}}} } return(0);}}} Дима 2009.02.04 17:57 #162 If it's not too much trouble, attach a file, I'm too lazy to fix it) Casper 2009.02.04 21:36 #163 mpeugep >> : If it is not difficult - attach a file, I am too lazy to fix it). >> Please. Although I don't really see anything difficult in fixing what you need by hand. Files: with_tral.mq4 16 kb Николай 2009.02.04 23:10 #164 Hi! I'm afraid that on 5-digit DTs the slip of 3 points is just an impossible parameter, I suggest to make it an external variable in the EA release :) Alexander Sevastyanov 2009.02.05 00:01 #165 The third day is over. Minus 500p on equity... We'll bear it easily - it's not real after all. ;) Дима 2009.02.05 09:24 #166 Casper >> : You're welcome. Although I don't really see what's so difficult about hand fixing what you need. Yeah, I already did. Дима 2009.02.05 17:04 #167 The current picture is as follows (trading 0.01 lots): Not as happy as in the beginning, but still in the plus side... Alexander Sevastyanov 2009.02.06 01:47 #168 Equity is still minus 500p. Stabilised :) Дима 2009.02.06 08:27 #169 I have the following picture at the moment: Aleksandr Chugunov 2009.02.06 09:30 #170 mpeugep писал(а) >> I have the following picture at the moment: Good afternoon! Can you please post the sets, period, currency pair and period for this chart.... Because I have no way to simulate even in the tester the charts that are present in this thread... Either my hands are crooked or something else.... Alpari broker demo Suppose the Grail is [WARNING CLOSED!] Any newbie Can't delete certain pairs 1...101112131415161718192021222324...68 New comment
Found a mistake in the trawl call function.
It was inattentive.
Correction
If it is not difficult - attach a file, I am too lazy to fix it).
>> Please.
Although I don't really see anything difficult in fixing what you need by hand.
Hi!
I'm afraid that on 5-digit DTs the slip of 3 points is just an impossible parameter, I suggest to make it an external variable in the EA release :)
The third day is over.
Minus 500p on equity...
We'll bear it easily - it's not real after all. ;)
You're welcome.
Although I don't really see what's so difficult about hand fixing what you need.
Yeah, I already did.
The current picture is as follows (trading 0.01 lots):
Not as happy as in the beginning, but still in the plus side...
Equity is still minus 500p.
Stabilised :)
I have the following picture at the moment:
I have the following picture at the moment:
Good afternoon!
Can you please post the sets, period, currency pair and period for this chart....
Because I have no way to simulate even in the tester the charts that are present in this thread...
Either my hands are crooked or something else....
Alpari broker demo