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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Do More Pips = Equal More Profit ? 7 replies

which mt4 broker do you use as a demo to monitor trades? 5 replies

Observation: MACD Cross (equal to OsMA sign change) reversal 0 replies

Looking for indicator: alert when current price equal high/low of current bar 26 replies

How does red results equal positive movement? 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 4
Attachments: Equal Trades Monitor EA
Exit Attachments
Tags: Equal Trades Monitor EA
Cancel

Equal Trades Monitor EA

  • Post #1
  • Quote
  • First Post: Edited 7:02am Apr 30, 2021 6:48am | Edited 7:02am
  •  cja
  • Joined Feb 2007 | Status: Member | 1,894 Posts
Quoting claypot
Disliked
{quote} Hi cja, Could you please change condition to monitor total order count buy and sell orders only. If buy orders and sell orders are equal then close all orders. please include Magic number option as well. So if there 12 buy orders opened and sell orders eventually reached 12 then both buy and sell orders equal each other hence are closed regardless of profit or loss. Cheers.
Ignored


I thought it best to start a new thread for this EA as it has been coded for a particular way of managing trades as requested by claypot. This EA does not place trades it is designed to manage existing trades placed by other EA's or manual trades for either one Pair or the whole MT4 platform. Basically the EA Closes trades after the activation number has been reached and then when the Buy and Sell trades are of an equal number the Close function activates and shuts all the trades.

The Open trades are closed in a set order. The first trades close before the last trades. The Pending orders only close after the last Open order has closed this is done in this order because it is more important to close Open trades first then the Pending orders to potentially maximize/minimize the profit/loss .

Please do not immediately use this EA on a Live account first get used to how it works first. I recommend that you load the EA onto a chart then setup how many trades you want as the EA activation point, whether you want to include Pending orders in the closes, trade the current chart or the whole platform, a Magic number if required and perhaps select a Display color then turn the EA ON. I ask that you be very very careful as this EA has the potential to Close all the trades on your MT4 trading platform. Use it at your own risk.

See the below mp4 which will show some basic functions of the EA.

NOTE : The name of this EA cannot be changed in any way or it will not work
Attached Image

Attached File(s)
File Type: ex4 Trades Equal CloseAll.ex4   37 KB | 147 downloads

Attached File(s)
File Type: mp4 EQ ea.mp4   304 KB | 142 downloads
Trade what you see not what you hope
  • Post #2
  • Quote
  • Apr 30, 2021 8:05am Apr 30, 2021 8:05am
  •  Jagg
  • Joined Oct 2006 | Status: Member | 533 Posts
Do you close all the trades with the normal OrderClose() function or do you use OrderCloseBy()?

Update: read again claypot's post - so that means these orders doesn't have to be the same lot size but only the same count of buy<->sell orders - so you are doing normal OrderClose() I think (otherwise you have to close by OrderCloseBy() the same lotsize betw. buy/sell orders and then do the normal close of the rest lots)
 
 
  • Post #3
  • Quote
  • May 5, 2021 8:18am May 5, 2021 8:18am
  •  claypot
  • | Joined Apr 2007 | Status: Member | 92 Posts
Hi cja,

Thanks for the EA. Do you think you can add another feature. Lets say that EA activates at 30 total orders Buy and Sell. So the EA will scan the 30 and above orders and find orders that cancel themselves out. For example there is a Buy order which is $10 in profit and there is Sell order -$10 in profit then the EA will close those orders. The idea is if you have lots of open orders the EA can cancel those orders to reduce exposure.

Cheer.
 
 
  • Post #4
  • Quote
  • May 5, 2021 12:09pm May 5, 2021 12:09pm
  •  Fire5ale
  • | Joined Apr 2014 | Status: Member | 24 Posts
Quoting claypot
Disliked
Hi cja, Thanks for the EA. Do you think you can add another feature. Lets say that EA activates at 30 total orders Buy and Sell. So the EA will scan the 30 and above orders and find orders that cancel themselves out. For example there is a Buy order which is $10 in profit and there is Sell order -$10 in profit then the EA will close those orders. The idea is if you have lots of open orders the EA can cancel those orders to reduce exposure. Cheer.
Ignored
R u making a robot?
Equal close should be calculated based on BEP, u have weird formula
 
 
  • Post #5
  • Quote
  • May 5, 2021 12:19pm May 5, 2021 12:19pm
  •  Fire5ale
  • | Joined Apr 2014 | Status: Member | 24 Posts
Quoting cja
Disliked
{quote} I thought it best to start a new thread for this EA as it has been coded for a particular way of managing trades as requested by claypot. This EA does not place trades it is designed to manage existing trades placed by other EA's or manual trades for either one Pair or the whole MT4 platform. Basically the EA Closes trades after the activation number has been reached and then when the Buy and Sell trades are of an equal number the Close function activates and shuts all the trades. The Open...
Ignored
I hope u Can change the close condition into:
1.ADR 100Days(changeable) gained
2.61% and 38% ADR Daily gained in period range.
for example:
````````````IF ADR 38 reached before london open
``````````````THEN new target ADR 61
````````````````ELSE ADR 100
````````````END IF
 
 
  • Post #6
  • Quote
  • Last Post: May 6, 2021 5:21am May 6, 2021 5:21am
  •  claypot
  • | Joined Apr 2007 | Status: Member | 92 Posts
Quoting claypot
Disliked
Hi cja, Thanks for the EA. Do you think you can add another feature. Lets say that EA activates at 30 total orders Buy and Sell. So the EA will scan the 30 and above orders and find orders that cancel themselves out. For example there is a Buy order which is $10 in profit and there is Sell order -$10 in profit then the EA will close those orders. The idea is if you have lots of open orders the EA can cancel those orders to reduce exposure. Cheer.
Ignored
Hi cja,

EA can scan and find orders and then close them as they cancel each other out. Refer to screen print. Thanks.
Attached Image (click to enlarge)
Click to Enlarge

Name: 2021-05-06_19-16-49.jpg
Size: 40 KB


Cheers.
 
 
  • Platform Tech
  • /
  • Equal Trades Monitor EA
  • 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