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

Check Last Closed Trade (Profit / Type / Symbol etc.) – EA MetaTrader 5

Check Last Closed Trade (Profit / Type / Symbol etc.) - expert for MetaTrader 5
With this code block, you can get the last closed trade data without using loops.  Create a variable to set the current day start time. (This is not necessary to do.) Create some other variables to print a chart output and use if in other code blocks as well. (This is not necessary to do.) Using … Read more

Delete all objects of the selected type – script MetaTrader 4

Delete all objects of the selected type - script for MetaTrader 4
Script is created after idea from the comment on the script “Delete all objects on all charts”. Request was to enable deleting only specified object types from the charts. This script has list of all object types that can be created in the v765, and each object type deleting can be turned on or off. … Read more

Code for counting open orders by Order Type individually – EA MetaTrader 4

Code for counting open orders by Order Type individually - expert for MetaTrader 4
It is common for Expert Advisor developers to face the challenge of making the robot capable of opening and administering more than one order at the same time. For that, there needs to be a way to recognize the total open orders running and also each one of them by type. With that in mind, … Read more