- How to LOCK/Encrypt EA
- Need help for code
- Please help me check my coding , it's not working .
please my broker changed their order symbol to ERU/USDX or GBP/USDX and my ea can not trade again please can someone tell me which line of code to change to get it working again.please i really needed it urgently.thanks
You have to change the lines you are now hiding for us.
This way it will not work to get an answer for your question
We're no mind readers
please my broker changed their order symbol to ERU/USDX or GBP/USDX and my ea can not trade again please can someone tell me which line of code to change to get it working again.please i really needed it urgently.thanks
Your code does this . . .
Symb=Symbol();
. . . so it doesn't matter what your Broker calls the symbols . . . unless the problem is parts of your code you haven't shown.
Your code does this . . .
. . . so it doesn't matter what your Broker calls the symbols . . . unless the problem is parts of your code you haven't shown.
RaptorUK: see i that is what am saying because i cant see any other thing to code in because
Symb=Symbol(); covers the whole symbol but each time i attach it to my broker chart with this X extension suffix it refuses to trade. sir am not hiding any thing the remaining code are.....no sir this are my codes however the remaining codes are not important.... see the remaining code sir,its only error guide to the ea //-------------------------------------------------------------- 10 -------------------------------------- int Fun_Error(int Error) // Function of processing errors { switch(Error) { // Not crucial errors case 4: Comment("Trade server is busy. FRONT-RUNNER Keeps Trying..."); Sleep(3000); // Simple solution return(1); // Exit the function case 135:Comment("Price changed.FRONT-RUNNER Keeps Trying..."); RefreshRates(); // Refresh rates return(1); // Exit the function case 136:Comment("No prices. FRONT-RUNNER Waiting for a new Signals.."); while(RefreshRates()==false) // Till a new tick Sleep(1); // Pause in the loop return(1); // Exit the function case 137:Comment("Broker is busy. FRONT-RUNNER Keeps Trying..."); Sleep(3000); // Simple solution return(1); // Exit the function case 146:Comment("CHUKWUDI J OBIEKWE,s Trade analysing is busy. but keep Trying,.."); Sleep(500); // Simple solution return(1); // Exit the function case 128:Comment("Requested Trade timedOut"); RefreshRates(); // Refresh rates return(1); // Exit the function case 138:Comment("Reqoute Trade"); RefreshRates(); // Refresh rates return(1); // Exit the function // Critical errors case 2:Comment("Common error."); return(0); // Exit the function case 6: Comment("NO Connection."); return(0); case 8: Comment("Too Frequent Requests."); return(0); case 5: Comment("Old terminal version."); Work=false; // Terminate operation return(0); // Exit the function case 64: Comment("Account blocked."); Work=false; // Terminate operation return(0); // Exit the function case 133:Comment("Trading forbidden."); return(0); // Exit the function case 134:Comment("Not enough money to execute operation."); return(0); // Exit the function default: Comment("Error occurred: ",Error); // Other variants return(0); // Exit the function } }
dan100:
see i that is what am saying because i cant see any other thing to code in because
OK, I suspect that you EA is trying to place trades but is generating errors . . . what errors are you getting in your log ?
This might help: ECN
hello sir i have just ran a back test; your right the ea traded fine; Symb=Symbol(); covers the whole deal currency of prefix and suffix below are the little data trades and data trick minor error it generated before it started trading 12:13:52 TestGenerator: unmatched data error (volume limit 5232 at 2012.11.09 18:45 exceeded) 12:13:52 TestGenerator: unmatched data error (volume limit 4441 at 2012.11.09 19:00 exceeded) 12:13:52 TestGenerator: unmatched data error (volume limit 3730 at 2012.11.09 19:30 exceeded) 12:13:52 TestGenerator: unmatched data error (volume limit 3570 at 2012.11.09 20:15 exceeded) 12:14:11 WONDER ROBOT inputs: StopLoss=400; Prowls=5; Lots=0.01; Prots=0.07; TakeProfit=40; default_timeframe=15; 12:14:12 2012.09.03 17:51 WONDER ROBOT EURUSDX,M15: open #1 sell 0.01 EURUSDX at 1.25782 sl: 1.26197 tp: 1.25757 ok 12:14:14 2012.09.04 05:06 Tester: stop loss #1 at 1.26197 (1.26182 / 1.26197) 12:14:23 2012.09.04 13:22 WONDER ROBOT EURUSDX,M15: open #2 sell 0.01 EURUSDX at 1.25972 sl: 1.26387 tp: 1.25947 ok 12:14:23 2012.09.04 13:24 Tester: take profit #2 at 1.25947 (1.25932 / 1.25947) 12:14:23 2012.09.04 13:24 WONDER ROBOT EURUSDX,M15: open #3 sell 0.01 EURUSDX at 1.25932 sl: 1.26347 tp: 1.25907 ok 12:14:23 2012.09.04 13:51 Tester: take profit #3 at 1.25907 (1.25892 / 1.25907) 12:14:23 2012.09.04 14:09 WONDER ROBOT EURUSDX,M15: open #4 buy 0.01 EURUSDX at 1.25914 sl: 1.25499 tp: 1.25939 ok 12:14:23 2012.09.04 15:03 Tester: take profit #4 at 1.25939 (1.25939 / 1.25954) 12:14:23 2012.09.04 15:04 WONDER ROBOT EURUSDX,M15: open #5 buy 0.01 EURUSDX at 1.25920 sl: 1.25505 tp: 1.25945 ok MY QUESTION IS NOW?. MY PROBLEM IS NOW SIR WHY DO IT REFUSE TO TRADE LIVE ACCOUNT ON MY BROKER ACCOUNT EVEN THOUGH IT RAN OR TRADED THE BACK TEST WELL? pls help sir
dan100:
MY QUESTION IS NOW?.
MY PROBLEM IS NOW SIR WHY DO IT REFUSE TO TRADE LIVE ACCOUNT ON MY BROKER ACCOUNT EVEN THOUGH IT RAN
OR TRADED THE BACK TEST WELL? pls help sir
Please do not SHOUT. Use proper case, not all UPPER CASE.
Look in the log for the EA from the last time your tried to trade it live and it didn't trade. The log is in the /experts/logs/ folder. look at the errors there were generated . . .
Also . . .
This might help: ECN
SL=Ask + (StopLoss)*Point; // Calculating SL of opened TP=Ask - (TakeProfit)*Point; // Calculating TP of opened Ticket=OrderSend(Symb,OP_SELL,Lts,Bid,2,SL,TP,"FRONT-RUNNER_PROFIT",0,Red); //Opening Sell
Not adjusting for 5 digit brokers (TP, SL, AND slippage.) Not adjusting for ECN broker.
Why didn't you follow the link RaptorUK gave you? You would have found:
//++++ These are adjusted for 5 digit brokers. int pips2points; // slippage 3 pips 3=points 30=points double pips2dbl; // Stoploss 15 pips 0.015 0.0150 int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips) int init(){ OptInitialization(); if (Digits % 2 == 1){ // DE30=1/JPY=3/EURUSD=5 forum.mql4.com/43064#515262 pips2dbl = Point*10; pips2points = 10; Digits.pips = 1; } else { pips2dbl = Point; pips2points = 1; Digits.pips = 0; } // OrderSend(... Slippage.Pips * pips2points, Bid - StopLossPips * pips2dbl //---- These are adjusted for 5 digit brokers. /* On ECN brokers you must open first and THEN set stops int ticket = OrderSend(..., 0,0,...) if (ticket < 0) Alert("OrderSend failed: ", GetLastError()); else if (!OrderSelect(ticket, SELECT_BY_TICKET)) Alert("OrderSelect failed: ", GetLastError()); else if (!OrderModify(OrderTicket(), OrderOpenPrice(), SL, TP, 0)) Alert("OrderModify failed: ", GetLastError()); */
please RaptorUK: and WHRoeder:this are the last error log i got when trying to trade live on my brokers platform according to directed by RaptorUK: please help me to interpret it the error codes... 01:58:38 WONDER ROBOT GBPUSDX,M15: removed 01:58:38 WONDER ROBOT EURUSDX,M15: uninit reason 4 01:58:38 WONDER ROBOT EURUSDX,M15: removed 21:28:37 WONDER ROBOT EURUSDX,M15: loaded successfully 21:28:37 WONDER ROBOT EURUSDX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:28:41 WONDER ROBOT GBPUSDX,M15: loaded successfully 21:28:41 WONDER ROBOT GBPUSDX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:28:46 WONDER ROBOT USDCHFX,M15: loaded successfully 21:28:46 WONDER ROBOT USDCHFX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:28:51 WONDER ROBOT EURGBPX,M15: loaded successfully 21:28:51 WONDER ROBOT EURGBPX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:29:18 WONDER ROBOT EURGBPX,M15: shutdown by timeout 21:33:37 WONDER ROBOT EURGBPX,M15: uninit reason 4 21:33:37 WONDER ROBOT EURGBPX,M15: removed 21:33:38 WONDER ROBOT USDCHFX,M15: uninit reason 4 21:33:38 WONDER ROBOT USDCHFX,M15: removed 21:33:38 WONDER ROBOT GBPUSDX,M15: uninit reason 4 21:33:38 WONDER ROBOT GBPUSDX,M15: removed 21:33:38 WONDER ROBOT EURUSDX,M15: uninit reason 4 21:33:38 WONDER ROBOT EURUSDX,M15: removed 21:44:51 WONDER ROBOT EURUSDX,M15: loaded successfully 21:44:51 WONDER ROBOT EURUSDX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:44:54 WONDER ROBOT GBPUSDX,M15: loaded successfully 21:44:54 WONDER ROBOT GBPUSDX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:44:58 WONDER ROBOT USDCHFX,M15: loaded successfully 21:44:58 WONDER ROBOT USDCHFX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:45:02 WONDER ROBOT EURGBPX,M15: loaded successfully 21:45:02 WONDER ROBOT EURGBPX,M15 inputs: robot_name="FRONT-RUNNER_PROFIT"; Robot_WebSite="http://www.infocashway.blogspot.com"; Robot_Email="realbussinesstimes@gmail.com"; Robot_Contact_no="+23436320858"; Robot_Ownername="chukwudi joshua obiekwe"; ShowRobotComment=true; StopLoss=400; Prowls=5; Lots=0.02; Prots=0.07; TakeProfit=40; default_timeframe=15; 21:45:26 WONDER ROBOT EURGBPX,M15: shutdown by timeout 21:45:29 WONDER ROBOT EURGBPX,M15: terminated by timeout
Not adjusting for 5 digit brokers (TP, SL, AND slippage.) Not adjusting for ECN broker.
Why didn't you follow the link RaptorUK gave you? You would have found:
i try to follow the linked page "https://www.mql4.com/http://crum.be/ecn" but i got this page error....
404 The page you have requested does not exist
Please check the path for errors and try again or use search page
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use