Forex EA/indicator to automate buy stop ONLY if sell stop is activated

I would like to make an Expert Advisor/indicator for MetaTrader. It has to automatically set a BUY STOP (order), but only when a SELL STOP (order) was started/activated. Could you make or provide me with this programming script? I’m using MetaEditor.

In short, the condition should look like this

first trade: If (in EUR/USD) current market price is at 1.0010, then set a sell stop at 1.0000 ONLY if the buy stop (order) has started already.
second trade: If price is at 1.0000, then set a buy stop at 1.0010 ONLY if the sell stop (order) has started already
third trade = first trade
fourth trade = second trade
fith trade = first trade
When profit of all activated trades equals 35 pips in positive, then close all trades.

seem I had similar EA system, currently at forward test stage.

it’s a grid one, pretty much risk, but also bear good potential profit ( almost 20% during 2 days test.)

Hello, what EA you using? Thanks