# Thread: [request] EA with RSI and Stock

1. ## [request] EA with RSI and Stock

Hei,
Funyoo or someone could write this EA?

Variables:
RSI and level
Stochastic oscilator and level
Stop loss
Take Profit
Trailing Stop
Trailing Step
time filter

Thanks

2. Here you go.

Let me know if you find profitable settings

3. Originally Posted by Agentrfr
Here you go.

Let me know if you find profitable settings
Thanks Agentrfr,
I need a change:
Fixed minimum and maximum values of Stochastic.

4. I cannot understand your request. The max and min levels in default indicator settings returns same value as levels on chart??

Here I can show:

5. Originally Posted by Agentrfr
I cannot understand your request. The max and min levels in default indicator settings returns same value as levels on chart??

Here I can show:
Explain in figures:

6. Originally Posted by noiahei
Explain in figures:
I cannot understand why you want to set Fixed MAX and MIN.

The formula for a stochastic oscilation is
Code:
```%K = (Current Close - Lowest Low)/(Highest High - Lowest Low) * 100
%D = 3 SMA of %K

Lowest Low = lowest low for the look-back period
Highest High = highest high for the look-back period```
As we can see mathematicly, the maximum value it can produce is 100, and minumum us -100. If you cange your Fixed maximum to more than 100, you will se that it stops at 100, and same for -100. Therefore, there is no reason for there to be fixed minimum or fixed maximum in calculation, as the level settings work between 100 and -100. As such, a max and min setting is not needed. The EA will only generate buy/sell signals when both RSI and Stochastic are overbought/oversold, defined by levels, where levels are under fixed maximum and over fixed minimum.

Therefore the value of maxmimum and minimum is irrelevent when Stochastic signal is sent. The same is true for RSI.