Hi here is the Link of project
https://fxdreema.com/shared/5TVJsUKYd

there is no have every time per condition
I don't know where it is and how to do per condition, For example I have a buy at the bottom then the price go opposite direction so must be sell the sell lot must be same as the buy net lot size for locking my profit or loss trade, then the price go up again continue to buy again every 200 pips ,then the price go opposite direction again so sell again for locking my profit or loss the lot of sell must be same as all previous buy net lots for locking,
it should be like this every time per condition. and will not be close all trade until it be a profit that we set.

there is No have Net lot Value
witch mean Net volume Buy lots - Sell lots= Net Lots Exp.now total Buy lot is 0.9 - total sell lot is 0.6= 0.3 Lot now for Sell lock the profit. I don't know how to make a net lots for a bucket trade if there is in the bucket trade it will be more easier to solve the net lot for locking the profit or loss trade every time per price go opposite direction condition. how to do it? hi thank you so much sir.