Close or delete orders based on type in MT4 – script MetaTrader 4

Close or delete orders based on type in MT4 - script for MetaTrader 4
This simple script will close /delete a order based on the input value passed on the script. for example if user pass OP_BUY then it will close all the buy trades. Similarly if someone pass OP_SELL_LIMIT then it will delete all sell limit orders  Close or delete orders based on type in MT4 – script … Read more

Global Close Orders Management – script MetaTrader 4

Global Close Orders Management - script for MetaTrader 4
//***************************************************************************// extern string  Close_Orders_Management                    =  “”   ; //***************************************************************************// input bool     Close_All_ORDERS                          =  false; input bool     Close_Active_Buy_and_Sell_ORDERS          =  false; input bool     Close_Active_Buy_ORDERS              … Read more

Multiple Buys and Sells ORDERS based on a currency pair strength. – script MetaTrader 4

Multiple Buys and Sells ORDERS based on a currency pair strength. - script for MetaTrader 4
//+——————————————————————+ //| Multiple Buys and Sells ORDERS based on a currency pair strength. //+——————————————————————+ #property copyright     “Copyright 2024, MetaQuotes Ltd.” #property link          “ #property version       “1.01” #property description   “persinaru@gmail.com” #property description   “IP 2024 – free open source” #property description   “AUD CAD CHF EUR GBP JPY NZD USD SGD.” … Read more

Check Current Open Orders With Profit – script MetaTrader 4

Screenshot of the script "Check Current Orders With Profit v1.00".
This script lists current open orders with profit. The result is displayed in a message box. If there is at least one open order with profit, a report file is created in .txt format, in Files directory (<terminal_data_folder>/MQL4/Files/). The precise file name format is: report_open_orders_with_profit__[Account Name]__[Server Time].txt Check Current Open Orders With Profit – script … Read more

Functions to simplify work with orders – library MetaTrader 5

Functions to simplify work with orders - library for MetaTrader 5
This is a class that will allow to open, close and modify your position by placing orders with really simple commands and configuration: Buy(), Sell(), Close(), Modify(). It has never been so easy! 🙂  Sample: #include <K_Orders.mqh> input int TP = 70; input int SL = 20; input double Lots=0.2; Order order; //+——————————————————————+ //| Script … Read more