Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Script to close all negative trades first and then followed by positive trades - script for MetaTrader 4

Views:
11193
Rating:
(9)
Published:
2020.05.26 11:44
Updated:
2020.05.26 11:47
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Usually when we close all trades, it is always from the last trades to the first one. Therefore, there will be positive and negative trades jumble up your closing trades history. It will not look good at all in your trades history. Using this modified script by me, it will cleanly close all trades with negative trades first and once finished, it will then close all remaining trades, which usually in profit. Using this script, it will make your trades history look way cleaner and nicer for viewing.  If you want to hire me to get the code working in your EA, I would be gladly do for you for some fee.

Enjoy and thank you.
CCI Expert CCI Expert

MT4 Expert Advisor based on the CCI indicator

waverider zigzag waverider zigzag

This indicator is ZigZag based on Bill Williams Aligator

Basic check-up of Experts for MQL4 Basic check-up of Experts for MQL4

This is a simple function for the initial control of an expert.

All In One Mirror All In One Mirror

Mirror indicator with a dropdown list of base indicators to choose from with optional alerts, email, and push notifications.