Place Hedge Order of unbalanced positions in MT4 – script MetaTrader 4

Place Hedge Order of unbalanced positions in MT4 - script for MetaTrader 4
This script calculates the total unbalanced postion of hedged or non hedged postions and then place hedge trades accordingly. Example  trader places 0.01 lot then 0.02 lot buy trade if then try to run the script , it will place 0.03 lot sell trade if again a sell trade is placed of lot size 0.05

Place OCO Order, One pip Limit Order and One Pip Stop Order – EA MetaTrader 4

Place OCO Order, One pip Limit Order and One Pip Stop Order - expert for MetaTrader 4
Description: Places One-Cancels-the-Other Order (OCO Order), One pip Limit Order and One Pip Stop Order on MetaTrader 4 (MT4) platform. Global variables: OCO_BUY_LIMIT – Buy Limit Price OCO_BUY_STOP – Buy Stop Price OCO_SELL_LIMIT – Sell Limit Price OCO_SELL_STOP – Sell Stop Price OCO_confirmation – After input Buy Limit Price, Buy Stop Price, Sell Limit Price