Need help building an EA

 
I have an idea of an EA that can be used to trade a particular synthetic index.
The idea is to add a Momentum indicator (Period 14) to RSI window (Period 1) with two RSI lines (at 10 and 90). When the momentum touches the 10 line or goes above it, a buy is triggered immediately and runs for 3 bars afterwards. A sell is triggered if the momentum line touches the 90 RSI line or goes below it and the trade also runs for three bars afterwards. The Stop Loss is triggered of price goes 1 tick below or above the entry point depending on the trade type (BUY or SELL). 
An example is shown in the attached image. The yellow line is a period 5 SMA and it can generate another signal in combination with the momentum. If both touch the RSI lines as described above, it generates a similar signal but runs for 5 bars instead. 
A help will be well appreciated. 
 
Rasheed Afolabi :
I have an idea of an EA that can be used to trade a particular synthetic index.
The idea is to add a Momentum indicator (Period 14) to RSI window (Period 1) with two RSI lines (at 10 and 90). When the momentum touches the 10 line or goes above it, a buy is triggered immediately and runs for 3 bars afterwards. A sell is triggered if the momentum line touches the 90 RSI line or goes below it and the trade also runs for three bars afterwards. The Stop Loss is triggered of price goes 1 tick below or above the entry point depending on the trade type (BUY or SELL). 
An example is shown in the attached image . The yellow line is a period 5 SMA and it can generate another signal in combination with the momentum. If both touch the RSI lines as described above, it generates a similar signal but runs for 5 bars instead. 
A help will be well appreciated. 

The idea is wrong - what you see is an optical illusion: you cannot place two different indicators in one window. The terminal will adjust the values to the window, but if you change the window size or chart scale, the indicators will start showing something else.

 
Vladimir Karputov:

The idea is wrong - what you see is an optical illusion: you cannot place two different indicators in one window. The terminal will adjust the values to the window, but if you change the window size or chart scale, the indicators will start showing something else.

OK. Thanks for the response

Reason: