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

Closing all open trades if all one symbol and one trade direction - script for MetaTrader 4

Views:
7639
Rating:
(5)
Published:
2023.12.27 13:09
Updated:
2023.12.27 13:10
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

All open trades must be of same symbol and type, e.g. all GBPUSD and all BUY.

This script will close out your position using one large trade to hedge your position

then using CloseBy() function to close all trades against the one large trade until all

trades are closed. There can be a maximum of 500 open trades.

    Heikin Ashi Lines Heikin Ashi Lines

    A simpler way to display Heikin Ashi

    Martingale Trade Simulator Martingale Trade Simulator

    a Simple Visual Strategy Tester / Manual Trade Training using Martingale.

    pivots calculation based on pine script v4 pivots calculation based on pine script v4

    This is the exact conversion of pivotshigh and pivotslow functions from pine script v4 as an mql4 indicator.

    SSH Multi Time-Frame SSH Multi Time-Frame

    SSH is popular indicator as it uses simply two moving averages. This version is a mylti-TF of SSH with TF change ability from screen.