StockFetcher Forums · Filter Exchange · Year to Date Return<< 1 2 3 >>Post Follow-up
stockfetcher
979 posts
msg #113598
5/22/2013 3:35:25 PM

@Kevin_in_GA - A couple questions on the code you referenced earlier, as we are not familiar with the source:


1. RSIperiod = parameter("parm1");
2. RSIvalue = parameter("parm2");
3.
4. ExpPer = (2* RSIperiod - 1);
5. AUC = mov(if(close>ref(close,-1), close - ref(close,-1),0),ExpPer,exponential);
6. ADC = mov(if(closeX = (RSIperiod - 1) * (ADC * RSIvalue/(100 - RSIvalue) - AUC);
7.
8. ReverseRSI = if(X >= 0, close + X, close + (X * ((100 - RSIvalue)/RSIvalue)));

- It appears that line 6 is incomplete?
- Is the "mov" on line 6 an EMA and if so, does it use the same period (ExpPer)?
- Line 6 also references 'closeX' if possible can you provide more details concerning this variable?
- What is ADC initialized to, as it has a recursive reference in line 6?
- Line 8 references X, can you provide more details on this variable?

If possible (and the above is not it), can you email (or post) the full code you have implemented for this measure?

Thank you,

StockFetcher Support





Kevin_in_GA
4,599 posts
msg #113601
Ignore Kevin_in_GA
modified
5/22/2013 6:16:04 PM

Good catches - the cose was copied correctly but the use of "<" and ">" without spaces caused some of the text to not show up. I'm sure this makes more sense!!

Here is the full code:


RSIperiod = parameter("parm1");
RSIvalue = parameter("parm2");

ExpPer = (2* RSIperiod - 1);
AUC = mov(if(close > ref(close,-1), close - ref(close,-1),0),ExpPer,exponential);
ADC = mov(if(close < ref(close,-1), ref(close,-1) - close,0),ExpPer,exponential);
X = (RSIperiod - 1) * (ADC * RSIvalue/(100 - RSIvalue) - AUC);

ReverseRSI = if(X >= 0, close + X, close + (X * ((100 - RSIvalue)/RSIvalue)));


Here ref(close,-1) references yesterday's close.

stockfetcher
979 posts
msg #113610
5/23/2013 8:00:18 AM

Yes that does make sense and thank you for reposting the full code. We'll let you know if we have any further questions or updates.

Thank you!

StockFetcher Support


Kevin_in_GA
4,599 posts
msg #113624
Ignore Kevin_in_GA
5/23/2013 10:51:34 AM

Thanks - I'm guessing since you already have the code that determines the RSI from today's price that you can flip it around (like I did here) to get the price required for a specific RSI value.

stockfetcher
979 posts
msg #113677
5/24/2013 1:38:54 PM

We have a first-pass at the "ReverseRSI" measure that you describe:

Fetcher[
show stocks where close is above 10
and average volume(30) is above 250000
and RSI(14) is below 30
and add column RSI(14)
and add column ReverseRSI(14,30)
]



Please let us know if you have any questions, or notice any errors/bugs with this new measure.

Thank you!

StockFetcher Support



Kevin_in_GA
4,599 posts
msg #113678
Ignore Kevin_in_GA
5/24/2013 2:02:16 PM

Thanks. I'll compare this to values I get in SS (should be the same or very close, depending on the EMA lookback period).

fortyfour
189 posts
msg #113687
Ignore fortyfour
5/24/2013 5:57:27 PM

That is really nice. Thank you Stockfetcher and Kevin. And nice choice of the initial indicator selection of rsi.
Is there any chance that having done it once it may not be so bad to predict a stochastics fast and slow line
Crossover price. I know everyone would have different opinions but rsi and stochs are big for day bar swing traders.
Thanks.


StockFetcher Forums · Filter Exchange · Year to Date Return<< 1 2 3 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.