I need help making a script please.

I need script that watches orders. If I place 1 lot eurusd open buy position, then i need 10 buy limit orders every 20 pips with take profit of 20 pips.

If I sell 1 lot eurusd, script needs to then place sell limit orders every 20 pips ten times with tp 20pips.

If nothing is open, and i place buy limit order, then script needs to see this and place 10 buy limit orders every 20 pips with tp 20pips.. vice versa.

Script only needs to work if i place 1lot eurusd, If i open 2 lot eurusd, then it should not work. I am only targeting 1 lot eurusd.