is it possible to coded a function if ordermodify-stoploss is reached then close all rest of open negative positions .......
i have open 5 positions buy, 3 positions get ordermodify, now if we have profit with all 5 positions(example 3 pos. with gain and 2 pos.with lost) - now we close all positions because stoploss of last(3.position) "profitorder" is reached )
so we have closed 3 positions with profit and 2 positions with loss but total we have profit....
PS:i know how close profit trades but if the modify function is enabled i can not scan the closed moment for a if -statment ...... or??
thanks for help