DislikedThe goal of this script is to minimize risk in all situations, especially when the shit hits the fan. This script provides the best and the fastest possible risk mitigation available thru MT4 by utilizing some unique logic not found in any other close-all scripts. Operation Summary: Net positions are calculated per symbol (sum of all open trades). Symbols are prioritized to manage net-positions from larger (more risk) to smaller. Hedge orders are sent in the order of priority to close all exposure at once regardless of the number of trades. Once...Ignored
I have been a tad busy this week to fine-tune my "old and faithful" manual strategy that I used to do with FXCM on their TS2 for USA.... and trying to replicate the exit logic in mt4. I could manually trade over 200+ trades during events with significant moves
Here's my ask to see if there is a better performance-tuned solution for my exits within the context of doing a Close-All @ %equity reached
Open Trade Volume: could be over 2000 trades to close when some % of equity has reached
All uni-directional trades to close on just one instrument
Looping all open trades is very slow and drains on my floating profit/loss while the loop executes. Not GOOD !
- Open one hedge trade of the amount of total Lot size. This will freeze my floating profit or loss.
- Now loop thru all open positions and do an alternating "Partial Close" of one MINLOT in profit and one MINLOT in loss at a time with some pause to avoid overloading the broker's server
Leaving slippage aside, Is there a better solution to do a massive close-all?