| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | StochRSI I've been looking with little success, thanks. | ||
| |
|
| | #2 | ||
![]() | Re: StochRSI | ||
| |
|
| The Following User Says Thank You to statsign For This Useful Post: | ||
Tams (03-17-2010) | ||
| | #3 | ||
![]() | Re: StochRSI if not post back and I will write it out for you | ||
| |
|
| | #4 | ||
![]() | Re: StochRSI input: RSILength(9), StochLength(18), KLength(6), DLength(3), oversold(20), overbought(80), overscolor(white), overbcolor(white); Vars: DToscK(0), DToscD(0); value1 = FastKCustomEasy(RSI(C, RSILength),StochLength); DToscK = average(value1,KLength); DToscD = average(DToscK,DLength); plot1(DToscK,"%K" ); plot2(DToscD,"%D" ); plot3( overbought, "OverBot" ) ; plot4( oversold, "OverSld" ) ; condition1 = value1 crosses over OverSold ; if condition1 then Alert( "Indicator exiting oversold zone" ) else begin condition1 = value1 crosses under OverBought ; if condition1 then Alert( "Indicator exiting overbought zone" ) ; end; | ||
| |
|
| | #5 | ||
![]() | Re: StochRSI Code: input: RSILength(9), StochLength(18), KLength(6), DLength(3), oversold(20), overbought(80), overscolor(white), overbcolor(white); Vars: DToscK(0), DToscD(0); value1 = RSI(C, RSILength); value2 = highest(value1,StochLength); value3 = lowest(value1,StochLength); value4 = iff(C - value3 <> 0 and value2 - value3 <> 0,(C - value3)/(value2 - value3) * 100,0); DToscK = average(value4,KLength); DToscD = average(DToscK,DLength); plot1(DToscK,"%K" ); plot2(DToscD,"%D" ); plot3( overbought, "OverBot" ) ; plot4( oversold, "OverSld" ) ; condition1 = value4 crosses over OverSold ; if condition1 then Alert( "Indicator exiting oversold zone" ) else begin condition1 = value4 crosses under OverBought ; if condition1 then Alert( "Indicator exiting overbought zone" ) ; end; | ||
| |
|
| The Following User Says Thank You to statsign For This Useful Post: | ||
Tams (03-17-2010) | ||
| | #6 | ||
![]() | Re: StochRSI Is your code smoothing the indicator to get rid of noise? | ||
| |
|
| | #7 | ||
![]() | Re: StochRSI Code: input: RSILength(9), StochLength(18), KLength(6), DLength(3), oversold(20), overbought(80), overscolor(white), overbcolor(white); Vars: DToscK(0), DToscD(0); value1 = RSI(C, RSILength); value2 = highest(value1,StochLength); value3 = lowest(value1,StochLength); value4 = iff(value1 - value3 <> 0 and value2 - value3 <> 0,(C - value3)/(value2 - value3) * 100,0); DToscK = average(value4,KLength); DToscD = average(DToscK,DLength); plot1(DToscK,"%K" ); plot2(DToscD,"%D" ); plot3( overbought, "OverBot" ) ; plot4( oversold, "OverSld" ) ; condition1 = value4 crosses over OverSold ; if condition1 then Alert( "Indicator exiting oversold zone" ) else begin condition1 = value4 crosses under OverBought ; if condition1 then Alert( "Indicator exiting overbought zone" ) ; end; When you posted I thought you needed new code | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |