Hoichoi EA

MichaelM
Trader
Posts: 117
Joined: Sun Dec 04, 2011 11:04 pm

Re: Hoichoi EA

Post by MichaelM »

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
User avatar
jjgengis
Trader
Posts: 39
Joined: Thu Nov 24, 2011 8:45 pm
Location: Bologna - Italy

Re: Hoichoi EA

Post by jjgengis »

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

JJ
joancb

Re: Hoichoi EA

Post by joancb »

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

JJ

No problem, everything helps XD
User avatar
jjgengis
Trader
Posts: 39
Joined: Thu Nov 24, 2011 8:45 pm
Location: Bologna - Italy

Re: Hoichoi EA

Post by jjgengis »

Hi joancb,

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

JJ
joancb

Re: Hoichoi EA

Post by joancb »

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.
joancb

Re: Hoichoi EA

Post by joancb »

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
You do not have the required permissions to view the files attached to this post.
User avatar
DING
Trader
Posts: 103
Joined: Wed Nov 16, 2011 11:53 am

Re: Hoichoi EA

Post by DING »

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

:D
User avatar
jjgengis
Trader
Posts: 39
Joined: Thu Nov 24, 2011 8:45 pm
Location: Bologna - Italy

Re: Hoichoi EA

Post by jjgengis »

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
joancb

Re: Hoichoi EA

Post by joancb »

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:
Post Reply

Return to “Automated trading systems”