hedge plus, please help.

 

I want to insert script to EA that working on hedge. The script for close all position when total BUY and SELL position is the same and above 4 position each. Lets say 5 BUY and 5 SELL then close all position whatever condition it is. Just to how to write the logic and script then I will try to fix the robot by myself. thanks in advance.

regard,

axadnan

 

A

See this thread and the comments https://www.mql5.com/en/code/9156

It has similar logic

Good Luck

-BB-