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