I need EA code for this signal

 
I need EA for loading fowling rules.

1. Opening lots setting
Minimum 1 lot Maximum 5 lots.
Open 1 lot if balance 10 thousands and 2 lot if balance above 20 thousands and open 3 lots when above 40 after 60 open 4 lots and 5 lots only when balance increased from 80 thousands.

2. Buy Condations
Buy if EUR/AUD gain 50 pips from closing price.

3. Sell Condations
Sell if EUR/AUD loses 50 pips from closing price.

4. Take Profit 100 Pips And stop Lose 80 Pips

5. Set Leverage 1:100

Note : All open Position close Auto 10 Seconds before close market for that day.

Thanks Bye
 

I

> Buy if EUR/AUD gain 50 pips from closing price.
Close of what period, H1, H4, D1?

-BB-

 
Close of what period, H1, H4, D1? -BB- Ans . D1
Reason: