muruku Posted September 17, 2010 Report Share Posted September 17, 2010 can you manually enter your trade with 0.02 lots .. try it before you figure out why this EA reject the neworder() ? Hi Guys, Agree with metin - Could you correct the code to micro lots? I'm trying to trade 0.02 lots in my little live acc, and I have the following issues: ... 2010.09.17 01:01:47 CableRunII GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 10 2010.09.17 01:01:47 CableRunII GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 9 2010.09.17 01:01:47 CableRunII GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 8 2010.09.17 01:01:47 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 7 2010.09.17 01:01:47 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 6 2010.09.17 01:01:47 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 5 2010.09.17 01:01:47 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 4 2010.09.17 01:01:47 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 3 2010.09.17 01:01:46 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 2 2010.09.17 01:01:46 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 1 2010.09.17 01:01:46 CableRunII-GBPUSD,H1: #0 Error: 4105 Function: NewOrder(3,0.02,1.5604,0,0) 0 Thanks a lot to muruku, for his excellent work ! P.S.: I would suggest to murukutu to create a 4shared/mediafire repository with all the proposed mods (already modified), and that should clear some kind of confusion related to the great ideas he has, and that we're not sure if some of them - or all, were introduced in his latest versions. It's just an idea... Regards, 4XL Quote Link to comment Share on other sites More sharing options...
yurijap Posted September 17, 2010 Report Share Posted September 17, 2010 Hi Muruku Please, can you share your latest version for testing? Thanks in advance. Mr. Juliusss Quote Link to comment Share on other sites More sharing options...
⭐ pipmaster Posted September 17, 2010 Report Share Posted September 17, 2010 Hey guys is it possible to modify the EA if you upload it with some kind of risk options so can set the risk? I'd be happy to give a donation to someone who will finalize this as it would appear to be much better than the standard version Quote Link to comment Share on other sites More sharing options...
ryujin Posted September 17, 2010 Report Share Posted September 17, 2010 Hi muruku, I would like to know which part of the EA which I can control the number of pending orders? By the way, I am able to use the EA to place micro lots on the trading account. I think need to adjust the value 17 to 170. But I am not at home now, later I would confirm again. Quote Link to comment Share on other sites More sharing options...
berusnet Posted September 17, 2010 Report Share Posted September 17, 2010 hello ! thanks muruku for your work. I'm trying cablerun demo during the Europe / US session with an ECN broker (so no filter time). I want to try different versions. But I can not tell which version comes out orders. 1- Comment column is blank. Someone can help me and explain were in the neworder function I need to add the comment ? 2- With this ECN broker often happens that the orders are rejected as 4xlord ( when the current price is too near ..< 5pip ).there is a variable that can I modify ? http://screendash.com/13603 (image) 3- May be better try it with a no-ECN broker ? thanks :) p.s I'm trying a version without BB or ATR filter too ... Quote Link to comment Share on other sites More sharing options...
ryujin Posted September 17, 2010 Report Share Posted September 17, 2010 Hi, I have just checked my demo ac running this EA. There is a lot of error 130 for the EA to modify the orders? ==================================== 02:52:46 CableRunII GBPUSDsf,H1: open #12963686 buy limit 0.01 GBPUSDsf at 1.56380 ok 03:02:37 CableRunII GBPUSDsf,H1: open #12963687 buy limit 0.01 GBPUSDsf at 1.56363 ok 03:03:46 CableRunII GBPUSDsf,H1: open #12963688 buy limit 0.01 GBPUSDsf at 1.56346 ok 03:03:46 CableRunII GBPUSDsf,H1: open #12963689 buy limit 0.01 GBPUSDsf at 1.56329 ok 03:36:37 CableRunII GBPUSDsf,H1: open #12963691 buy limit 0.01 GBPUSDsf at 1.56312 ok 03:38:12 CableRunII GBPUSDsf,H1: open #12963692 buy limit 0.01 GBPUSDsf at 1.56295 ok 04:01:13 CableRunII GBPUSDsf,H1: open #12963693 buy limit 0.01 GBPUSDsf at 1.56278 ok 04:01:13 CableRunII GBPUSDsf,H1: open #12963694 buy limit 0.01 GBPUSDsf at 1.56261 ok 04:09:15 CableRunII GBPUSDsf,H1: open #12963700 buy limit 0.01 GBPUSDsf at 1.56244 ok 04:53:13 CableRunII GBPUSDsf,H1: open #12963705 buy limit 0.01 GBPUSDsf at 1.56227 ok 04:53:13 CableRunII GBPUSDsf,H1: open #12963706 buy limit 0.01 GBPUSDsf at 1.56210 ok 04:55:41 CableRunII GBPUSDsf,H1: open #12963707 buy limit 0.01 GBPUSDsf at 1.56193 ok 04:57:29 CableRunII GBPUSDsf,H1: open #12963708 buy limit 0.01 GBPUSDsf at 1.56176 ok 06:05:49 CableRunII GBPUSDsf,H1: open #12963730 buy limit 0.01 GBPUSDsf at 1.56159 ok 07:20:00 CableRunII GBPUSDsf,H1: open #12963750 buy limit 0.01 GBPUSDsf at 1.56142 ok 07:27:25 CableRunII GBPUSDsf,H1: open #12963757 buy limit 0.01 GBPUSDsf at 1.56125 ok 07:29:58 CableRunII GBPUSDsf,H1: open #12963759 buy limit 0.01 GBPUSDsf at 1.56108 ok 07:31:55 CableRunII GBPUSDsf,H1: open #12963760 buy limit 0.01 GBPUSDsf at 1.56091 ok 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 0 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 1 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 2 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 3 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 4 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 5 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 6 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 7 ============================================================ Can someone fixed this? Quote Link to comment Share on other sites More sharing options...
⭐ musketeer Posted September 17, 2010 Report Share Posted September 17, 2010 Hi, I have just checked my demo ac running this EA. There is a lot of error 130 for the EA to modify the orders? ==================================== 02:52:46 CableRunII GBPUSDsf,H1: open #12963686 buy limit 0.01 GBPUSDsf at 1.56380 ok 03:02:37 CableRunII GBPUSDsf,H1: open #12963687 buy limit 0.01 GBPUSDsf at 1.56363 ok 03:03:46 CableRunII GBPUSDsf,H1: open #12963688 buy limit 0.01 GBPUSDsf at 1.56346 ok 03:03:46 CableRunII GBPUSDsf,H1: open #12963689 buy limit 0.01 GBPUSDsf at 1.56329 ok 03:36:37 CableRunII GBPUSDsf,H1: open #12963691 buy limit 0.01 GBPUSDsf at 1.56312 ok 03:38:12 CableRunII GBPUSDsf,H1: open #12963692 buy limit 0.01 GBPUSDsf at 1.56295 ok 04:01:13 CableRunII GBPUSDsf,H1: open #12963693 buy limit 0.01 GBPUSDsf at 1.56278 ok 04:01:13 CableRunII GBPUSDsf,H1: open #12963694 buy limit 0.01 GBPUSDsf at 1.56261 ok 04:09:15 CableRunII GBPUSDsf,H1: open #12963700 buy limit 0.01 GBPUSDsf at 1.56244 ok 04:53:13 CableRunII GBPUSDsf,H1: open #12963705 buy limit 0.01 GBPUSDsf at 1.56227 ok 04:53:13 CableRunII GBPUSDsf,H1: open #12963706 buy limit 0.01 GBPUSDsf at 1.56210 ok 04:55:41 CableRunII GBPUSDsf,H1: open #12963707 buy limit 0.01 GBPUSDsf at 1.56193 ok 04:57:29 CableRunII GBPUSDsf,H1: open #12963708 buy limit 0.01 GBPUSDsf at 1.56176 ok 06:05:49 CableRunII GBPUSDsf,H1: open #12963730 buy limit 0.01 GBPUSDsf at 1.56159 ok 07:20:00 CableRunII GBPUSDsf,H1: open #12963750 buy limit 0.01 GBPUSDsf at 1.56142 ok 07:27:25 CableRunII GBPUSDsf,H1: open #12963757 buy limit 0.01 GBPUSDsf at 1.56125 ok 07:29:58 CableRunII GBPUSDsf,H1: open #12963759 buy limit 0.01 GBPUSDsf at 1.56108 ok 07:31:55 CableRunII GBPUSDsf,H1: open #12963760 buy limit 0.01 GBPUSDsf at 1.56091 ok 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 0 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 1 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 2 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 3 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 4 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 5 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 6 07:44:12 CableRunII GBPUSDsf,H1: #12963681 Error: 130 Function: NewOrder(2,0.01,1.5609,0,0) 7 ============================================================ Can someone fixed this? it is stop-loss - invalid stops errors depends on broker and his policies about... Quote Link to comment Share on other sites More sharing options...
expat1967 Posted September 17, 2010 Report Share Posted September 17, 2010 it is stop-loss - invalid stops errors depends on broker and his policies about... But there are fixes or workarounds for it. It have been posted prior in this thread... Can someone please pick it up and integrate in the EA? Cheers Quote Link to comment Share on other sites More sharing options...
4xlord Posted September 17, 2010 Report Share Posted September 17, 2010 (edited) Yes muruku, i can enter 0.01, 0.02 orders, ... Edited September 17, 2010 by 4xlord Quote Link to comment Share on other sites More sharing options...
⭐ musketeer Posted September 17, 2010 Report Share Posted September 17, 2010 But there are fixes or workarounds for it. It have been posted prior in this thread... Can someone please pick it up and integrate in the EA? Cheers if the broker change the rules - there is no fix about it frankly, there is sl an limits to be hidden - the only way... Quote Link to comment Share on other sites More sharing options...
berusnet Posted September 17, 2010 Report Share Posted September 17, 2010 it is stop-loss - invalid stops errors depends on broker and his policies about... Hi again, can you show where change the price of order +2 -2 pip ( long/short). I think it can fix my error 130 . Thanks in advance Quote Link to comment Share on other sites More sharing options...
⭐ musketeer Posted September 17, 2010 Report Share Posted September 17, 2010 sorry berusnet, i am out of sync, do not know what is recent version and what you do use... give me your version and will try Quote Link to comment Share on other sites More sharing options...
berusnet Posted September 17, 2010 Report Share Posted September 17, 2010 (edited) sorry berusnet, i am out of sync, do not know what is recent version and what you do use... give me your version and will try sorry of nothing ? :) I use the version of clevereto post 102, however the new order function is NewOrder(OP_BUYLIMIT, FirstLot, FirstBLStep,0,0); NewOrder(OP_SELLLIMIT, FirstLot, FirstSLStep,0,0); int NewOrder(int a_cmd_0, double a_lots_4, double a_price_12, double a_price_20, double a_price_28) { int l_ticket_36 = 0; for (int l_count_40 = 0; l_count_40 < 37; l_count_40++) { while (!IsTradeAllowed()) Sleep(700); l_ticket_36 = OrderSend(Symbol(), a_cmd_0, a_lots_4, a_price_12, 3, a_price_28, a_price_20, g_comment_152, Magic, 0, CLR_NONE); if (l_ticket_36 > 0) break; Print("#", OrderTicket(), " Error: ", GetLastError(), " Function: NewOrder(", a_cmd_0, ",", a_lots_4, ",", a_price_12, ",", a_price_20, ",", a_price_28, ") ", l_count_40); Sleep(100); } if (l_count_40 == 36) SendMail("LombongBerlian buka melombong ada masalah "+ Period(), WindowExpertName()); return (l_ticket_36); } OPS SORRY .. others questions - 1- I need to add the comment colum, so i can try different version and understand from which EA come the order.. can you show me where add it ? 2- Do you have a ECN broker ? Thanks again in advance :) Edited September 17, 2010 by berusnet Quote Link to comment Share on other sites More sharing options...
⭐ musketeer Posted September 17, 2010 Report Share Posted September 17, 2010 sorry of nothing ? :) I use the version of clevereto post 102, however the new order function is NewOrder(OP_BUYLIMIT, FirstLot, FirstBLStep,0,0); NewOrder(OP_SELLLIMIT, FirstLot, FirstSLStep,0,0); int NewOrder(int a_cmd_0, double a_lots_4, double a_price_12, double a_price_20, double a_price_28) { int l_ticket_36 = 0; for (int l_count_40 = 0; l_count_40 < 37; l_count_40++) { while (!IsTradeAllowed()) Sleep(700); l_ticket_36 = OrderSend(Symbol(), a_cmd_0, a_lots_4, a_price_12, 3, a_price_28, a_price_20, g_comment_152, Magic, 0, CLR_NONE); if (l_ticket_36 > 0) break; Print("#", OrderTicket(), " Error: ", GetLastError(), " Function: NewOrder(", a_cmd_0, ",", a_lots_4, ",", a_price_12, ",", a_price_20, ",", a_price_28, ") ", l_count_40); Sleep(100); } if (l_count_40 == 36) SendMail("LombongBerlian buka melombong ada masalah "+ Period(), WindowExpertName()); return (l_ticket_36); } OPS SORRY .. others questions - 1- I need to add the comment colum, so i can try different version and understand from which EA come the order.. can you show me where add it ? 2- Do you have a ECN broker ? Thanks again in advance :) i must out now int OrderSend( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE) it is in help - hope it helps if you need something, later cheers berusnet 1 Quote Link to comment Share on other sites More sharing options...
muruku Posted September 17, 2010 Report Share Posted September 17, 2010 1. ATR Pips Zone A and Zone B - Tune according to your observation & let me know too the BEST setting you had ! double ATRUpLimit1 = 13.0; // zone A double ATRDnLimit1 = 9.0; // double ATRPeriod1 = 3.0; double ATRUpLimit2 = 23.0; // zone B double ATRDnLimit2 = 18.0; // double ATRPeriod2 = 6.0; double ATRPips =iCustom(NULL,PERIOD_M15,"ATR_Pips",0,0); double ATRPrePips1 =iCustom(NULL,PERIOD_M15,"ATR_Pips",0,ATRPeriod1); double ATRPrePips2 =iCustom(NULL,PERIOD_M15,"ATR_Pips",0,ATRPeriod2); int MySignal = 0; if (ATRPrePips1 >= ATRDnLimit1 && ATRPrePips1 <= ATRUpLimit1 && ATRPrePips2 >= ATRDnLimit1 && ATRPrePips2 <= ATRUpLimit1 && ATRPips >= ATRDnLimit1 && ATRPips <= ATRUpLimit1) MySignal =1; if (ATRPrePips1 >= ATRDnLimit2 && ATRPrePips1 <= ATRUpLimit2 && ATRPrePips2 >= ATRDnLimit2 && ATRPrePips2 <= ATRUpLimit2 && ATRPips >= ATRDnLimit2 && ATRPips <= ATRUpLimit2) MySignal =1; 2. TotalProfit(magic) -- sometime TotalProfit() flip too fast, (that's why i declare the variable "Pips" to hold it.. so you may want to increase the MinProfit higher. said > 17 double Pips = TotalProfit(Magic); if (Pips >= MinProfit){ .. Take your profit } double TotalProfit(int ai_magic) { int total=OrdersTotal(); double totalPips = 0.0; for (int cnt=0;cnt<total;cnt++) { OrderSelect(cnt, SELECT_BY_POS); int mode=OrderType(); bool condition = false; if (OrderMagicNumber()== ai_magic)condition = true; if (condition) { switch (mode) { case OP_BUY: RefreshRates(); totalPips += MathRound((MarketInfo(OrderSymbol(),MODE_BID)-OrderOpenPrice())/MarketInfo(OrderSymbol(),MODE_POINT)); break; case OP_SELL: RefreshRates(); totalPips += MathRound((OrderOpenPrice()-MarketInfo(OrderSymbol(),MODE_ASK))/MarketInfo(OrderSymbol(),MODE_POINT)); break; } } } return(totalPips); } 3. NoTradeTimes - Just update today, this one is workable string CableRunNOTtoTradesTime1 = "15:00"; <-- example of time in string format string CableRunNOTtoTradesTime2 = "19:00"; <-- after all this is broker server time. ..you need to let the EA to sleep at NY 8pm -- 12.30am to avoid news .. if (IsNotTradeTime(CableRunNOTtoTradesTime1, CableRunNOTtoTradesTime2)) { DeletePendingOrders(Magic); return (0);} .. .. bool IsNotTradeTime(string StartHour, string EndHour ) { int TimeString1; int TimeString2; int CurrentTime = TimeCurrent(); TimeString1 = StrToTime(StartHour); TimeString2 = StrToTime(EndHour); if (TimeString1 < TimeString2 && CurrentTime < TimeString1 || CurrentTime >= TimeString2) return (FALSE); if (TimeString1 > TimeString2 && (CurrentTime < TimeString1 && CurrentTime >= TimeString2)) return (FALSE); return (TRUE); } 4. dynamic magic number -- encourage not to change magic # like logic below ..where ppl like to do at almost beginning of Start().. the reason is let say, you turn on this EA 24hrs & still managing multiple open trades until midnight & when roll over to next day, whenever these trades aggregately turn up to be > + 15 pips, since the magic# changed compared to previous day..this EA will lose control to the open pos.. & you make yourself trouble then.. so you figure out what should be the good way ok ? if (DayOfWeek() == 1) Magic = 431672; if (DayOfWeek() == 2) Magic = 145280; 5. False Keystroke (for bad broker) -- this is good skill to master on.. i mentioned in previous thread, once your trading machine on lock or VPS.. this advanced feature will not work. In fact, this EA need to open 2 buy/sell limit concurrently.. how can we emulate 2 sets of key stroke at a time ? dear muruku, thanks for the idea and nice coding technique :D. ok. you dont want to share your latest EA than its ok for me ... hehehe... but can you tell me what code do put in your latest ea ? from the previous post, its like your already put :- 1. ATR Pips Zone A and Zone B 2. TotalProfit(magic) 3. NoTradeTimes 4. dynamic magic number 5. False Keystroke (for bad broker) So, hope you can clarify a bit ... thanks clevereto, tgt123, berusnet and 1 other 4 Quote Link to comment Share on other sites More sharing options...
muruku Posted September 17, 2010 Report Share Posted September 17, 2010 Guess Profi***le is spying at this topic, no more trade activities updates in FPA & myfxbook anymore.. it's ranking slipped down drastically... I hope all of us have happy pips then.. & if needed further to discuss.. please create another discussion topic with anonymous thread topic name Quote Link to comment Share on other sites More sharing options...
eggzactly Posted September 17, 2010 Report Share Posted September 17, 2010 Muruku, You make me help you because you deserve it... Here is the code you have to put it in your EA to hide it from any broker : add in : Global variables string Text[550]; add in : init //------- Text[0]="abc1"; Text[1]="def2 "; Text[2]="ghi3 "; Text[3]="jkl4 "; Text[4]="mno5 "; Text[5]="bqr6 "; Text[6]="stu7 "; Text[7]="vwx8 "; Text[8]="yz90 "; Text[9]="nine "; Text[10]="ten0 "; Text[11]="eleven "; Text[12]="twelve "; Text[13]="thirteen "; Text[14]="fourteen "; Text[15]="fifteen "; Text[16]="sixteen "; Text[17]="seventeen "; Text[18]="eighteen "; Text[19]="nineteen "; Text[20]="twenty " ; Text[21]="twenty1 "; Text[22]="twenty2 "; Text[23]="twenty3 "; Text[24]="twenty4 "; Text[25]="twenty5 " ; Text[26]="twenty6 "; Text[27]="twenty7 "; Text[28]="twenty8 "; Text[29]="twenty9 "; Text[30]="thirty "; Text[31]="thirty1 "; Text[32]="thirty2"; Text[33]="thirty3"; Text[34]="thirty4 "; Text[35]="thirty5 "; Text[36]="thirty6 "; Text[37]="thirty7 "; Text[38]="thirty8 "; Text[39]="thirty9 "; Text[40]="forty "; Text[41]="forty1 "; Text[42]="forty2 "; Text[43]="forty3 "; Text[44]="forty4 "; Text[45]="forty5 "; Text[46]="forty6 "; Text[47]="forty7 "; Text[48]="forty8 "; Text[49]="forty9 "; Text[50]="fifty "; Text[100]= "hundred"; Text[150]="hundred&fifty"; Text[200]="2hundred "; Text[250]="2hundred&fifty "; Text[300]="3hundred"; Text[350]="3hundred&fifty"; Text[400]="4hundred "; Text[450]="4hundred&fifty "; Text[500]="5hundred"; //------- add in : start //------- for (int i=500; i>=50 ; i=i-50) { for (int j=49;j>=0;j--) { if (Open[j] == Close[j] ) break; } } Text[i+j]=Text + Text[j]; add in : ordersend Text[i+j] regards, eggzactly isssac and azam575 2 Quote Link to comment Share on other sites More sharing options...
clevereto Posted September 17, 2010 Report Share Posted September 17, 2010 Clevereto, be venture enuff & dump this EA to LIVE acc, I 'm happy to assist your guys become millionaire.. Don't get me wrong, Master... I already made about 900 pips or more in this week from my live account.. Well, Thanks to U :) Btw, I've been watching how this EA (that I use) works and noticed that all open orders are still being executed even if the ATR Pips indicator already shown above the limits.. I supposed it should closed all pending orders when ATR Pip indi reaches above the limit that U have set.. Although luckily they're all still closed in profits until now, because the price keeps going back.. But, I'm kinda worry about this.. What if there came a big news, GU price had a big jump and keeps running up/down without going back, the EA should execute all old pending orders and the ATR Pips indi could not filter them, right? Until then, either U have to close all your open orders manually or waiting until they hit StopLoss (if U had set it), or endlessly hoping for the price to come back.. I'm telling U this because I had these experiences when my old pending orders (generated in Asian Session) were executed just when there were some big news in NY session, and I'm so worried if the price never came back... But, I found that setting up trading time would do the trick for this problem, it will closed all your pending orders when it reaches the End time. For now, I'm using this setting if I don't feel save to trade in NY session. But I think it would be much better I don't switch it on/off this setting each & every day I trade. What do you think? Quote Link to comment Share on other sites More sharing options...
eggzactly Posted September 17, 2010 Report Share Posted September 17, 2010 (edited) Don't get me wrong, Master... I already made about 900 pips or more in this week from my live account.. Well, Thanks to U :) Btw, I've been watching how this EA (that I use) works and noticed that all open orders are still being executed even if the ATR Pips indicator already shown above the limits.. I supposed it should closed all pending orders when ATR Pip indi reaches above the limit that U have set.. Although luckily they're all still closed in profits until now, because the price keeps going back.. But, I'm kinda worry about this.. What if there came a big news, GU price had a big jump and keeps running up/down without going back, the EA should execute all old pending orders and the ATR Pips indi could not filter them, right? Until then, either U have to close all your open orders manually or waiting until they hit StopLoss (if U had set it), or endlessly hoping for the price to come back.. I'm telling U this because I had these experiences when my old pending orders (generated in Asian Session) were executed just when there were some big news in NY session, and I'm so worried if the price never came back... But, I found that setting up trading time would do the trick for this problem, it will closed all your pending orders when it reaches the End time. For now, I'm using this setting if I don't feel save to trade in NY session. But I think it would be much better I don't switch it on/off this setting each & every day I trade. What do you think? Clevereto, you can add this type of code if you want to test the close of pending orders if ATR out of boundaries : in start put if (ATROUT()==1) { OrderDeleteLimit();} // where ATROUT the function for check the ATR Limits at the end of the file put void OrderDeleteLimit() { for (int i = OrdersTotal() - 1; i >= 0; i--) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && OrderCloseTime() == 0) { if (OrderType() == OP_BUYLIMIT ||OrderType() == OP_SELLLIMIT) OrderDelete (OrderTicket()); } } } ------ if not orders at market, you can put this if (ATROUT()==1) { "Time function not allowed to trade, like NY Session";} // where ATROUT the function for check the ATR Limits Hope this helps Regards, eggzactly Edited September 17, 2010 by eggzactly options clevereto 1 Quote Link to comment Share on other sites More sharing options...
clevereto Posted September 17, 2010 Report Share Posted September 17, 2010 Guess Profi***le is spying at this topic, no more trade activities updates in FPA & myfxbook anymore.. it's ranking slipped down drastically... I hope all of us have happy pips then.. & if needed further to discuss.. please create another discussion topic with anonymous thread topic name I guess Profi***le is preparing to post their newly updated version of their EA with some of Muruku's ideas inside it.. :) Ok, Let's move... Quote Link to comment Share on other sites More sharing options...
clevereto Posted September 17, 2010 Report Share Posted September 17, 2010 Clevereto, you can add this type of code if you want to test the close of pending orders if ATR out of boundaries : Thank U so much Eggzactly for helping us with your coding here Quote Link to comment Share on other sites More sharing options...
eagle9 Posted September 17, 2010 Report Share Posted September 17, 2010 Hello did anyone here using this EA on real acc? Can you share the statement? Quote Link to comment Share on other sites More sharing options...
clevereto Posted September 18, 2010 Report Share Posted September 18, 2010 Clevereto, you can add this type of code if you want to test the close of pending orders if ATR out of boundaries : After reading your farewell post, I guess I should say.. Welcome back & Thank U for being here to help us.. :) Quote Link to comment Share on other sites More sharing options...
yurijap Posted September 18, 2010 Report Share Posted September 18, 2010 Hi Guys Did Anyone make a new ea with muruku's logic? Clevereto? San4x? Thanks in advance. Mr. Juliusss Quote Link to comment Share on other sites More sharing options...
ryujin Posted September 18, 2010 Report Share Posted September 18, 2010 Clevereto, you can add this type of code if you want to test the close of pending orders if ATR out of boundaries : in start put if (ATROUT()==1) { OrderDeleteLimit();} // where ATROUT the function for check the ATR Limits at the end of the file put void OrderDeleteLimit() { for (int i = OrdersTotal() - 1; i >= 0; i--) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if (OrderSymbol() == Symbol() && OrderMagicNumber() == Magic && OrderCloseTime() == 0) { if (OrderType() == OP_BUYLIMIT ||OrderType() == OP_SELLLIMIT) OrderDelete (OrderTicket()); } } } ------ if not orders at market, you can put this if (ATROUT()==1) { "Time function not allowed to trade, like NY Session";} // where ATROUT the function for check the ATR Limits Hope this helps Regards, eggzactly HI Eggzactly, I have tried putting your code inside the EA and faced errors. Can help to assist to put the codes inside the EA? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.