• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:57pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:57pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MT4 synch objects to different charts (same pair, different tf) 11 replies

Same Magic Number, Same Pair - Multiple entries 1 reply

Diversify by trading the same pair but on different timeframes 7 replies

same broker,same platform but different windows 3 replies

Buy and Sell the same pair at IFX 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 4
Attachments: Cancel trades with same pair but different types (buy/sell)
Exit Attachments
Tags: Cancel trades with same pair but different types (buy/sell)
Cancel

Cancel trades with same pair but different types (buy/sell)

  • Post #1
  • Quote
  • First Post: Apr 18, 2017 2:45pm Apr 18, 2017 2:45pm
  •  ilmank
  • | Joined Apr 2017 | Status: Member | 28 Posts
Hello guys, im ussing an EA that opens 4 basket trades recived by an indicator.
Sometimes i got this type of cases:
Attached Image (click to enlarge)
Click to Enlarge

Name: XG2m3yX.png
Size: 6 KB

you can see that are trades for the same Pair but one is Sell and the other one is buy, so i won't ever be in proofit with those trades so i wan't them to be automatically closed when this happens.

Sometimes i got this cases:
Attached Image (click to enlarge)
Click to Enlarge

Name: 6btadg8.png
Size: 9 KB


3 trades for the same pair, but 2 trades are sell and 1 trade is buy, so i would only like to have 1 trade sell.

Is it anyway to automatically cancel trades with the same pair but diferent types?
I'm new with metatrader and EA so there is a big chance that my question is imposible to solve but i don't loose anything by asking.

This is what my EA opened for the 4 baskets:
Attached Image (click to enlarge)
Click to Enlarge

Name: IKQkGG9.png
Size: 90 KB


This is what i would like to see:
Attached Image (click to enlarge)
Click to Enlarge

Name: sJdQKIh.png
Size: 84 KB


Thanks
  • Post #2
  • Quote
  • Last Post: Apr 19, 2017 1:29am Apr 19, 2017 1:29am
  •  futurespec
  • Joined May 2011 | Status: If you think I'm mad, I must be mad | 1,058 Posts
You need to provide the mq4 file for the EA then someone may be able to help.

The EA needs modifying to do what you ask.

M.
If you think I'm mad, I must be mad
 
 
  • Platform Tech
  • /
  • Cancel trades with same pair but different types (buy/sell)
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023