Dislikedmelpheos, I think I see what your saying. I have to look at the bundle first. if you get a chance, post a chart pic w/ what your talking about. If I get what your saying, it'll take, maybe, 5 minutes to code.
Edit: Looked at the bundle. Waiting for your analysis.Ignored
I'll explain for buy only as sell is only the buy signal reversed
So here we go
Stoch 5 :
- current candle is higher than candle -1 by at least a defined level (for example 5 to prevent a light slope of the stoch)
- candle -1 is lower than candle -2 by at least a defined level (for example 5 to prevent a light slope of the stoch )
- candle -1 is lower than set level (for example 60)
Stoch 20 : current candle is higher than candle -1 by at least a defined level (for example 2, this is to prevent a very light slope of the stoch)
Stoch 20 : current candle K% is higher than current candle D% by at least a defined level
(for example 5, this is to simulate distance between the stoch and it's signal line)
Stoch 50 : current candle is higher than candle -1 by at least a defined level
(for example 5, this is to prevent a very low slope of the stoch)
Stoch 50 : current candle K% is higher than current candle D% by at least a defined level
(for example 5, this is to simulate distance between the stoch and it's signal line)
NonlagMA V5 : current candle is higher than candle -1 (no need to define the level but being able to define the different parameters of the Nonlagma would be great for backtesting )
Note that NonlagmaV5 often turns after the stoch5 have reversed, for this reason here is an added set of rules for this situation (i have tried to make them but the code became very messy and i got lost )
Stoch 5 :
Stoch 5 :
- current candle is higher than candle -1 by at least a defined level (for example 5 to prevent a light slope of the stoch)
- candle -1 is lower than candle -2 by at least a defined level (for example 5 to prevent a light slope of the stoch )
- candle -2 is lower than candle -3 by at least a defined level (for example 5 to prevent a light slope of the stoch )
- candle -2 is lower than set level (for example 60)
Stoch 20 : current candle is higher than candle -1 by at least a defined level (for example 2, this is to prevent a very light slope of the stoch)
Stoch 20 : current candle K% is higher than current candle D% by at least a defined level
(for example 2, this is to simulate distance between the stoch and it's signal line)
Stoch 50 : current candle is higher than candle -1 by at least a defined level
(for example 2, this is to prevent a very low slope of the stoch)
Stoch 50 : current candle K% is higher than current candle D% by at least a defined level
(for example 5, this is to simulate distance between the stoch and it's signal line)
NonlagMA V5 : current candle is higher than candle -1 (no need to define the level but being able to define the different parameters of the Nonlagma would be great for backtesting )
This process should be done for at least 3-4 candles (usually after 4 candles the signal is not good enough or the setup is not here anymore like the 5 in oversold )
But there is for sure a smarter way to make a good code.
Additional note after looking the level on good setup on my chart : the defined level should adjustable of course