Chris, I may also not understand, but I think you've said you want to exclude trading when the stoch has gone to or above 80 more than once in the past 10 days.
(you said:Good trades happen when it 'just hits' the 80 line. But I want to eliminate trades that have been at, or above the 80 signal too long.)
You could use a binary to count the number of days and then reject any over 1.
Create an indicator with the following and it will tell the number of times the stoch has been at 80 or higher in the previous 10 bars.
If(Ref(Stoch(13,5),-1)>=80,1,0)+ If(Ref(Stoch(13,5),-2)>=80,1,0)+ If(Ref(Stoch(13,5),-3)>=80,1,0)+ If(Ref(Stoch(13,5),-4)>=80,1,0)+ If(Ref(Stoch(13,5),-5)>=80,1,0)+ If(Ref(Stoch(13,5),-6)>=80,1,0)+ If(Ref(Stoch(13,5),-7)>=80,1,0)+ If(Ref(Stoch(13,5),-8)>=80,1,0)+ If(Ref(Stoch(13,5),-9)>=80,1,0)+ If(Ref(Stoch(13,5),-10)>=80,1,0)
(Then use the indicator in the entry calculations.) |