Jump to content

OCO Help!


freddy

Recommended Posts

Hello, my indoinvestasifriends,

 

As you know, there is no native OCO orders in MT4.

(OCO for One Cancel Other)

 

Looking around I found some scripts or EA, but they don't fit my needs.

The only one which I like the features is IBFX-OCO.

It's an EA where you can input:

-a magic number

-the pair you want to trade

-the order (BuyStop,Buylimit,SellStop,SellLimit)

-lot quantity

-EntryPrice (very important for me, you can place the order at the exact price you want to get in.(not x pips away from the current price which i don't like for my needs)

-Profit Target

-StopLoss

(you can choose different value for the Buy or the Sell order)

 

 

Ok, all that to say that I would not bother you if it worked.

 

I tried it with the exe file on an IBFX demo account,(and also with the mq4):

for instance,(see pics) if I place two stop orders, everything looks ok until price trigger, but EA won't place the order (it says Invalid price, must be greater than current Ask!)

but of course it was at a higher price (for a buyStop) before it triggered!!!

 

 

 

If anyone of you, with coding skills could look into it to make it work, and also remove the limitations (must work with any broker and on live account) that would be fantastic.

 

Or if you know another EA (not a script, please), with similar features, I would take it!

 

 

Here is the original ex4 and decompiled file and two pics:

 

http://depositfiles.com/files/iv4xcjuwt

 

 

Sorry for long post.

Thank you.

 

Regards;

F.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...