Need Orders Close Script

 
hello

i need a script For close my All open positions when All open Positions P/L is +x $, But I Want it have very fast speed, insomuch i have some time over 500 Open positions and Must Close all on some seconds,

it must when the open positions P/L is +x $,turn off the all Expert adviser and close All Open Positions, After Close all again run the all expert adviser,

if that turn off the experts and P/L back the Loss, it must turn on again experts

Thanks
Reason: