hi i'm a new EA programmer,
need help to create an EA
rules:
1. average price = (previous day high + previous day low)/2
2. resistance = average price + 20
3. support = average price - 20
4. if running between support and resistance, order sellstop @ support and buystop @ resistance with SL @ average price and TP 30pips, expired on next day
5. if one of the stop order is done, cancel other
6. repeat if price running back between support and resistance, and there's no open position
thanks for your HELP!!!
need help to create an EA
rules:
1. average price = (previous day high + previous day low)/2
2. resistance = average price + 20
3. support = average price - 20
4. if running between support and resistance, order sellstop @ support and buystop @ resistance with SL @ average price and TP 30pips, expired on next day
5. if one of the stop order is done, cancel other
6. repeat if price running back between support and resistance, and there's no open position
thanks for your HELP!!!