Coding Entries

 

If I have an indicator that has 3 different values for entry. How can i code entry Buy/Sell for each value with a stop on a buy 1 pip below the previous candles low for a Buy, and 1 pip above the previous candle plus spread for a sell. The trade would close on the indication of a signal in the opposite direction for any of the 3 values. This can and should be able to perform on all time frames. I've tried to look at other Ea's for direction but can't seem to find anything that has 3 set values for entry

Reason: