Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stochastic and RSI Strategy #176

Open
pampos79 opened this issue May 12, 2021 · 2 comments
Open

Stochastic and RSI Strategy #176

pampos79 opened this issue May 12, 2021 · 2 comments
Labels
Strategy Request Requests asking for an implementation of a specific strategy

Comments

@pampos79
Copy link

pampos79 commented May 12, 2021

For requestion a new strategy. Please use the template below.
Any strategy request that does not follow the template will be closed.
I am using 3 indicators in trading view and i found out that when the StochRSI StochK crossing over StochD when the StochRSI value of under 20 and the RSI over 50 and the MACD with these settings over 0 there is a trend change to the upside.
image
image
image

Step 1: What indicators are required?

Please list all the indicators required for the buy and sell strategy.
Timeframe 1D
Stochastic RSI
stoch_fast = ta.STOCHF(dataframe, 14, 3, 0, 3, 0)
dataframe['fastd'] = stoch_fast['fastd']
dataframe['fastk'] = stoch_fast['fastk']
dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14)
dataframe['macd'] = macd['macd']

Step 2: Explain the Buy Strategy

Please explain in details the indicators you need to run the buy strategy, then
explain in detail what is the trigger to buy.

fastk crossing fastd under value of StochRSI-20 &
RSI > 50 & (dataframe['macd'] > 0)

Step 1: Explain the Sell Strategy

Please explain in details the indicators you need to run the sell strategy, then
explain in detail what is the trigger to sell.

The sell trigger will be based on trailing stop loss with 2% target and 1% increments

Source

What come from this strategy? Cite your source:

  • http://
@xmatthias xmatthias added the Strategy Request Requests asking for an implementation of a specific strategy label May 30, 2021
@cyberjunky
Copy link

@pampos79 Hi I'm looking into this one, can you please explain what exactly do you mean with the 20 in this sentence, what needs to be under 20?
"when the StochRSI StochK crossing over StochD when the StochRSI value of under 20"

@datatalking
Copy link

@cyberjunky StochRSI is a technical analysis term for stochastic relative strength index and implies an stock or security is over bought or over sold is based on a rolling period of usually two weeks. This is a potentially high compute request as this has to be redone on a frequency basis. Feel free to ask questions on this if you need more.

If @pampos79 can supply another formula other than the standard. I could also assist with writing this but as @cyberjunky already said there is more data needed.

StochRSI = RSI - |min|[RSI] (all over) max[RSI] - |min|[RSI]
Where RSI = present value
Where RSI = any non zero decimal value between 0 and 1
Where RSI = .50 is center datum, .90 is over bought, .10 is oversold
Where RSI period > 1 day but within specific limits of 30 days or 1 quarter etc
Where RSI is tracked with highest and lowest periods over n number of days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Strategy Request Requests asking for an implementation of a specific strategy
Projects
None yet
Development

No branches or pull requests

4 participants