| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Nanningbob 10.2 auto-trading EA https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=552 |
Page 45 of 54 |
| Author: | Panamamike [ Tue Jun 26, 2012 11:45 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
I agree on it being points not pips, that is why I have added the 0s to the OOTB settings. I have the partials shut off. it has moved 50 points and stopped moving. I am unsure as to why. My settings are BE 250 +100; JS 500 |
|
| Author: | NeoTrader [ Tue Jun 26, 2012 11:59 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
hi gary, Maybe your fight with the homekey is soon over... I am working on a script that will do this for us.... the homekeypart already works...now I look to implement some more features...I try to do something like matt's script but this isn't that easy since the chartwindow must be open to utilize the homekey...still working on it...if you want to have any features, now would be the time.. happy trading, NeoTrader - |
|
| Author: | patman [ Tue Jun 26, 2012 3:50 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
I adjusted BE to 250 +100 and Jump to 500 I just noticed that the most recent trade (6th) is continuously sending modify orders changing the TP from 1.03105 to 1.56428 and back also SL from 1.65744 to 1.73682 and back These orders are now closed. It opened 6 new orders. It seems all pip settings are point settings. I need 500 between stacked orders not 50 Moving the TP green line (there are 6). This has no effect on 5 of the trades. Only the TP line for the last (most recent) order causes the TP for that order to change. (feature or bug?) These trades are not sending the continuous modify orders. Pat |
|
| Author: | jjasper7 [ Tue Jun 26, 2012 9:20 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
i noticed that in about the middle of the 'Naningbob 10.2 autotrading ea', in the LookForTradingOpportunities routine, there is a 'gotya' line... if (!EnforcePricePivotIntegrity) bias = up;//In case user has turned this filter off which i think should read... if (!EnforcePricePivotIntegrity) bias == up;//In case user has turned this filter off |
|
| Author: | SteveHopwood [ Tue Jun 26, 2012 11:50 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Fantastic to see you getting deep down and dirty in the code. I cannot encourage you enough to carry on doing so - you will gain much. On this occasion you are wrong and your suggested amendment will generate an error when you try to compile the code. bias = up sets bias to the constant 'up'. Checking bias for a value requires two thingies as in if (bias == up) or if (bias != up) etc Keep at it, tiger. My code has reached the level of sophistication it has achieved (if 'sophistication' is the correct word) because people kept on pointing out the bloops. I look forward to one of the corrections I include in my code being yours. |
|
| Author: | jjasper7 [ Wed Jun 27, 2012 5:30 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
shucks, though i might have found something of value/use, but now i see i just did not understand. you can clean up and delete the post because it will not help anything. sorry for wasting your time. |
|
| Author: | Zypip [ Wed Jun 27, 2012 8:06 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hy Pat, Have the same issues with TP and the constant sending of modify orders. Currently trying to sort it out. Cheers |
|
| Author: | patman [ Wed Jun 27, 2012 11:55 am ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hi Zypip Thanks for the reply. It seemed ok now but when I ticked Ask Manual Confirmation it keeps popping up asking to modify SL & TP to the values that are already there. |
|
| Author: | harrie [ Wed Jun 27, 2012 2:26 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hi all, I encounter the same 6 sell eur/aud order tonight. I've disabled both BE and JS and close all trades. However, it comes again. Seem not the problem of BE and JS..... |
|
| Author: | patman [ Wed Jun 27, 2012 2:40 pm ] |
| Post subject: | Re: 10.2; the auto-trading EA is born. |
Hi ZyPip and maybe Steve The continuous orders are caused by the TP Line. Here are the lines form AdjustTakeProfit if (!CloseEnough(take, OrderTakeProfit()) ) { MessageBox("Line "+LineName+"\ntake "+DoubleToStr(take, 5)+"\nOTP "+DoubleToStr(OrderTakeProfit(), 5), "TP Line", MB_YESNO|MB_ICONQUESTION); OrderModify(TicketNo, OrderOpenPrice(), OrderStopLoss(), take, OrderExpiration(), CLR_NONE); I added in the message box for debug. take is = to the TP Line which =the TP of the ticket OrderTakeProfit() =TP of the previous ticket for some reason (ticket above the one being evaluated) OrderTakeProfit() is for the order selected by OrderSelect() function. I can find !OrderSelect in CountOpenTrades but I can't get any further. Hopefully this helps. P |
|
| All times are UTC | Page 45 of 54 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|