stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Hoichoi EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=188
Page 4 of 4
Author:  MichaelM [ Wed Jan 11, 2012 12:46 am ]
Post subject:  Re: Hoichoi EA

jjgengis wrote: I think there's something wrong in your solution....

ticketB=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,Coment,Magic,0,Green);

this row mean that ticketb will be -1 if the function Ordersend fail and 0 in case the order is gone to the market. The algorithm to extract the number ticket of your order is another.

If I've understood well your thought....

JJ
Whatever you said in bold is incorrect, that line of code will return a non-zero number if the order was successfully sent.

joancb just needs to check if it's equal to -1 before trying to select and modify that order
Author:  jjgengis [ Wed Jan 11, 2012 12:05 pm ]
Post subject:  Re: Hoichoi EA

Ops.... I apologize for the wrong answer...

JJ
Author:  joancb [ Wed Jan 11, 2012 12:44 pm ]
Post subject:  Re: Hoichoi EA

jjgengis wrote:Ops.... I apologize for the wrong answer...

JJ

No problem, everything helps XD
Author:  jjgengis [ Fri Jan 27, 2012 4:44 pm ]
Post subject:  Re: Hoichoi EA

Hi joancb,

I don't understand what kind of exit strategy do you use in the EA. Can you explane me ?

JJ
Author:  joancb [ Fri Jan 27, 2012 7:07 pm ]
Post subject:  Re: Hoichoi EA

jjgengis wrote:Hi joancb,

I don't understand what kind of exit strategy do you use in the EA. Can you explane me ?

JJ
Hi JJ,

It is simple, when the total profit of every opened order reaches the "Profit" input value, the EA exits from all the trades, i.e. it closes every single trade and delete every PO to start again the next day.
Author:  joancb [ Sun Jan 29, 2012 3:49 pm ]
Post subject:  Re: Hoichoi EA

On a boring Sunday afternoon I've played a lil bit with the EA and that is what it came. Is this Steve OCCD contagious? :D
Author:  DING [ Sun Jan 29, 2012 4:22 pm ]
Post subject:  Re: Hoichoi EA

Congratulations,Look very nice!
Thanks your effort and sharing.

:D
Author:  jjgengis [ Mon Feb 06, 2012 12:22 pm ]
Post subject:  Re: Hoichoi EA

Hi joancb ,

I think that a good option for this EA could be the BE stop. If you allow me to do this I Can try to modify and post your EA! What do you think about this?

jj
Author:  joancb [ Tue Feb 07, 2012 9:58 am ]
Post subject:  Re: Hoichoi EA

jjgengis wrote:Hi joancb ,

I think that a good option for this EA could be the BE stop. If you allow me to do this I Can try to modify and post your EA! What do you think about this?

jj
Sure, go ahead :D as you can see, the forward tests are not very promising :roll:
All times are UTC Page 4 of 4