Thanks Arun. I am always forgetting to initialise variables properly.fxarun wrote:Thank you so much for this great and much simplified system Bob.
Appreciate your hard work Steve.Thanks a lot guys.
While Testing this EA found couple of issues steve.
First ,I think it should be initialized with some user defined pip value i guess.Code: Select all
extern int PivotCrossPips;//The no of pips the other side of the chosen sl pivot
may be it could beNextCode: Select all
extern int PivotCrossPips=5;//The no of pips the other side of the chosen sl pivot
Once the open order is closed for a profit or loss,
bool TooClose() function always returns true.
So no trading until we change the magic number after the first trade.
So please look into the code as i am just a copy paste and edit programmer.
By the way its really a promising Ea as it already started grabbing pips.
Thanks
Arun
The code in bool TooClose() is faulty - I have forgotten to code a check that the trade being examined is actually the latest in the History. Even when I correct this, I am not sure it will be correct.
Pop
return(true);
at the start of bool TooClose() to turn it off for now and I will try to sort it out tomorrow.
For the non-coders, V1b is in post 1 and has the fix. I see nobody has downloaded 1a yet, so forget about 1a.

