StockFetcher Forums · General Discussion · RSI Predictor<< >>Post Follow-up
phancyphan
1 posts
msg #112685
Ignore phancyphan
modified
4/7/2013 8:41:50 PM

I'm trying to get this code from AmiBroker working in SF, but it's not working. I like the RSI solver tool, but it only allows you to run one symbol against it at a time.

http://analytics.tradingmarkets.com/RSI_Solver/

I attempted to convert the code over to SF, but it's not working for me. Can anyone get this working in SF?

http://mysimplequant.blogspot.com/2010/11/rsi-predictor-for-amibroker.html

set{Value,59.20}
set{WildPer,2}
set{ExpPer_tmp,2 * WildPer}
set{ExpPer,ExpPer_tmp - 1}
/* AUC */
set{auc_ref_close,close one day ago}
set{auc_max_close_tmp,close - auc_ref_close}
set{auc_max_close,max(auc_max_close_tmp,0)}
set{auc,ema(ExpPer,auc_max_close)}
/* ADC */
set{adc_ref_close,close one day ago}
set{adc_max_close_tmp,adc_ref_close - close}
set{adc_max_close,max(adc_max_close_tmp,0)}
set{adc,ema(ExpPer,adc_max_close)}
/* x */
set{WildPerMinusOne,WildPer - 1}
set{oneHundredMinusValue, 100 - Value}
set{adcTimesValue, adc * Value}
set{adcTimesValueDivide, adcTimesValue / oneHundredMinusValue}
set{minusAUC, adcTimesValueDivide - AUC}
set{xVariable, WildPerMinusOne * minusAUC}
/* if x is >= 0 */
set{RevEngRSI1, close + xVariable}
/* if x is <= 0 */
set{xTimesOneHundredMinusValue, xVariable * oneHundredMinusValue}
set{xTimesOneHundredMinusValueDivde, xTimesOneHundredMinusValue * Value}
set{RevEngRSI2, close + xTimesOneHundredMinusValueDivde}

olathegolf
64 posts
msg #112699
Ignore olathegolf
4/8/2013 9:00:01 PM

Fetcher[
set{Value,59.20}
set{WildPer,2}
set{ExpPer_tmp,2 * WildPer}
set{ExpPer,ExpPer_tmp - 1}
/* AUC */
set{auc_ref_close,close one day ago}
set{auc_max_close_tmp,close - auc_ref_close}
set{auc_max_close,max(auc_max_close_tmp,0)}
set{auc,ema(ExpPer,auc_max_close)}
/* ADC */
set{adc_ref_close,close one day ago}
set{adc_max_close_tmp,adc_ref_close - close}
set{adc_max_close,max(adc_max_close_tmp,0)}
set{adc,ema(ExpPer,adc_max_close)}
/* x */
set{WildPerMinusOne,WildPer - 1}
set{oneHundredMinusValue, 100 - Value}
set{adcTimesValue, adc * Value}
set{adcTimesValueDivide, adcTimesValue / oneHundredMinusValue}
set{minusAUC, adcTimesValueDivide - AUC}
set{xVariable, WildPerMinusOne * minusAUC}

/* if x is >= 0 */
set{RevEngRSI1, close + xVariable}

/* if x is <= 0 */
set{xTimesOneHundredMinusValue, xVariable * oneHundredMinusValue}
set{xTimesOneHundredMinusValueDivde, xTimesOneHundredMinusValue * Value}
set{RevEngRSI2, close + xTimesOneHundredMinusValueDivde}

price above 5
average volume(30) above 500000
add column xVariable
add column RevEngRSI1
add column RevEngRSI2
]



StockFetcher Forums · General Discussion · RSI Predictor<< >>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 2016 - 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