I have a question guys.
If I run two EAs on the same pair will there be any problems?
I appreciate it.
If I run two EAs on the same pair will there be any problems?
I appreciate it.
Simple H1 GBPUSD EA 10,120 replies
Trading is this Simple? Finally Explained simple and clearly! 46 replies
MT4 Order Pending Order/Order Modify Issue 1 reply
Simple 5m GBPUSD trade system 10 replies
DislikedI have a question guys.
If I run two EAs on the same pair will there be any problems?
I appreciate it.Ignored
DislikedWell it's my first post on FF or any Forex board for that matter. I felt compelled to stop lurking and register just so I could say Bravo Geoff and team.
Outstanding pair of threads you have. I've read this entire thread tonight and I'm very impressed with the knowledged shared. I'm also excited by the back test results I've had so far. I've backed test the EA at least 20 times this evening and all of the test showed phenomal results all the way back to the middle of 2009.
Now to go read your other monster. Well maybe tommorow.Ignored
DislikedDownloaded and installed.
THANK YOU, Geoff.
Wishing you a relaxed weekend.Ignored
Dislikedsettings that give a better chance of not making a loss.
These settings give fewer losses but also reduce the overall profit.
TP1 14, TP2 50, TP3 100, SL 130, TSL 14.
Full 12 month strategy report attached camvcvooV3.zipIgnored
Dislikedhi there!
Impressive results out here !!!
(So much) better than our London Breakout stuff ! (so far... )
Has anyone of you tried on different pairs ?
Why would it be limitted to GU only ?
If market changes to the point that it is not profitable on GU before April 2009, as FunDemental says, then it means other pairs could very well fit this strat at some point.
Seeing that it takes very few trades per day, and trades are open only during very short periods of time, we could very well run it on multiple pairs in parallel, hoping that trades...Ignored
DislikedIndeed...
I backtested EU over 2010... and got 5 losses (420 pips each... OOoouch! ).
Which wiped out the small profits aquired all along (and much more...)
Remark on the v3 code:
when Hide_Targets==true, it misses to send order #3... (both on buy and sell).
(the "Close Orders" code section does take care of all 3 trades SL/TP)
Sq.Ignored
//need this for ErrorDescription() #include <WinUser32.mqh> #include <stdlib.mqh> #define MAX_RETRIES 10 //+------------------------------------------------------------------+ bool _OrderModify(int ticket, double price, double stoploss, double takeprofit, datetime expiration, color arrow_color) //+------------------------------------------------------------------+ { //"reliable" version of OrderModify(): will retry 10 times before failing int i,j,err,ret; for (i=0;i<MAX_RETRIES;i++) { for (j=0;j<MAX_RETRIES && !IsTradeAllowed();j++) Sleep(500); // wait for Trade to be allowed(free context) if (j==MAX_RETRIES) { _Alert("OrderModify(#"+ticket+") FAILED: trade not allowed"); return(false); } ret = OrderModify(ticket, price, stoploss, takeprofit, expiration, arrow_color); if (ret == true) return(true);//success } err = GetLastError(); _Alert("OrderModify(#"+ticket+") FAILED ("+err+"): "+ErrorDescription(err)); return(false); }
//+------------------------------------------------------------------+ int _OrderSend(string symbol, int type, double lots, double price, int slippage, double stoploss, double takeprofit, string comment, int magic, datetime expiration, color arrow_color) //+------------------------------------------------------------------+ { //"reliable" version of OrderSend(): will retry 10 times before failing int i,j,err,ticket; for (i=0;i<MAX_RETRIES;i++) { for (j=0;j<MAX_RETRIES && !IsTradeAllowed();j++) Sleep(500); // wait for Trade to be allowed(free context) if (j==MAX_RETRIES) { _Alert("OrderSend() FAILED: trade not allowed"); return (-1); } // send order with 0 SL, then modify order to apply SL -- a common counter-ECN method found in SteveHopwood's bots... ticket = OrderSend(symbol, type, lots, price, slippage, 0/*stoploss*/, takeprofit, comment, magic, expiration, arrow_color); if (ticket != -1) { if (stoploss!=0) _OrderModify(ticket, price, stoploss, takeprofit, expiration, arrow_color); return(ticket);//success } } err = GetLastError(); _Alert("OrderSend() FAILED at "+price+" ("+err+"): "+ErrorDescription(err)); return(-1); }
//+------------------------------------------------------------------+ bool _OrderClose( int ticket, double lots, double price, int slippage, color Color) //+------------------------------------------------------------------+ { //"reliable" version of OrderClose(): will retry 10 times before failing int i,j,err; bool ret; for (i=0;i<MAX_RETRIES;i++) { for (j=0;j<MAX_RETRIES && !IsTradeAllowed();j++) Sleep(500); // wait for Trade to be allowed(free context) if (j==MAX_RETRIES) { _Alert("OrderClose(#"+ticket+") FAILED: trade not allowed"); return(false); } ret = OrderClose(ticket, lots, price, slippage, Color); if (ret == true) return(true);//success } err = GetLastError(); _Alert("OrderClose(#"+ticket+") FAILED ("+err+"): "+ErrorDescription(err)); return(false); }
//+------------------------------------------------------------------+ bool _OrderDelete(int ticket, color Color) //+------------------------------------------------------------------+ { //"reliable" version of OrderDelete(): will retry 10 times before failing int i,j,err; bool ret; for (i=0;i<MAX_RETRIES;i++) { for (j=0;j<MAX_RETRIES && !IsTradeAllowed();j++) Sleep(500); // wait for Trade to be allowed(free context) if (j==MAX_RETRIES) { _Alert("OrderDelete(#"+ticket+") FAILED: trade not allowed"); return(false); } ret = OrderDelete(ticket, Color); if (ret == true) return(true);//success } err = GetLastError(); _Alert("OrderDelete(#"+ticket+") FAILED ("+err+"): "+ErrorDescription(err)); return(false); }
//-------------------------------------------------------------------------------------- void _Alert(string text) //-------------------------------------------------------------------------------------- { Alert ("xxxxxxxxxxx-EA: ", symbol, " ", text); }
DislikedAnother question:
i see you have defined
extern double iTrailingStop2 = 50;
But it is not used.
As far as i understand the code, you are locking-in 10 pips profit on order3 when it has reached 22 pips profit.
While order2 locks 22 pips profit, and then trails at 22 pips.
Am i interpreting the code correctly ?
(I had a hard time following the code logic with one_shot and two_shot...)
SQ.Ignored
DislikedHi Geoff,
While I was testing different larger TPs and SLs I noticed that until a short trade hasn't finished, another short cannot be entered. Same with longs of course. In other words, only one trade at the same time on the same side.
Have you got an explanation?
Thanks!!Ignored