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.

patman wrote:Seems like BE 25 + 10 is 25 points not pips (5digit Alpari NZ)
It did partial close at 25 points then couldn't move the SL
(.01 partial close .01 retained)
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,
garyfritz wrote:All tf's you care about. It only fills the tf you actually have on the chart when you sit there holding HOME.
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.

patman wrote:Hi all,

I've been reading and trying for a while - this is my first post.
Absolutely fantastic work going on here - where you all get the time is beyond me.

Anyway thanks

I've loaded NB10.2 EA V2b onto EURNZD H1 chart (demo). Lot 0.02 other ootb.

It has placed 6 sell trades for EURNZD

Lets see what happens

Pat


Seems like BE 25 + 10 is 25 points not pips (5digit Alpari NZ)
It did partial close at 25 points then couldn't move the SL
(.01 partial close .01 retained)
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.

jjasper7 wrote: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
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.

:D
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.

patman wrote:
patman wrote:Hi all,

I've been reading and trying for a while - this is my first post.
Absolutely fantastic work going on here - where you all get the time is beyond me.

Anyway thanks

I've loaded NB10.2 EA V2b onto EURNZD H1 chart (demo). Lot 0.02 other ootb.

It has placed 6 sell trades for EURNZD

Lets see what happens

Pat


Seems like BE 25 + 10 is 25 points not pips (5digit Alpari NZ)
It did partial close at 25 points then couldn't move the SL
(.01 partial close .01 retained)
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

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.

Zypip wrote:
patman wrote:
patman wrote:Hi all,

I've been reading and trying for a while - this is my first post.
Absolutely fantastic work going on here - where you all get the time is beyond me.

Anyway thanks

I've loaded NB10.2 EA V2b onto EURNZD H1 chart (demo). Lot 0.02 other ootb.

It has placed 6 sell trades for EURNZD

Lets see what happens

Pat


Seems like BE 25 + 10 is 25 points not pips (5digit Alpari NZ)
It did partial close at 25 points then couldn't move the SL
(.01 partial close .01 retained)
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

Hy Pat,

Have the same issues with TP and the constant sending of modify orders. Currently trying to sort it out.

Cheers
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