Referencing FullK and FullD from Stochastic functions

magnetar513

New member
According to the guide, StochasticRSI and FullStochastic functions create plots FullK & FullD, but I'm having trouble referencing the plots to create conditions such as:

def stoch= StochRSI(14, 80, 20,, AverageType.Wilders, close, 14, 5, 2, AverageType.Wilders, no);

Signal= FullK crosses above FullD;
or
Signal= Stoch(RSIFullK) crosses above StochRSI(FullD);
or even
Signal= stoch crosses above StochRSI(FullD);

The info for StochRSI from TDA's website is as follows:

ParameterDescription
rsi lengthThe number of bars with which the RSI is calculated.
over boughtThe overbought level value.
over soldThe oversold level value.
rsi average typeThe type of moving average to be used in the calculation of the RSI: simple, exponential, weighted, Wilder's, or Hull.
rsi priceThe type of price with which the RSI is calculated.
k periodThe period on which the highest and the lowest price values are to be found.
d periodThe length of the moving average to be applied to FullK. This produces the FullD plot.
slowing periodThe length of the moving average to be applied to %K. This produces the FullK plot.
average typeThe type of moving average to be used in calculations: simple, exponential, weighted, Wilder's, or Hull.
show breakout signalsControls indication of Stochastic RSI crossovers above and below the overbought/oversold levels. Specify for which of the main plots the crossovers are to be indicated.

Plots​

PlotDescription
FullKFullK value, 'slowing period' moving average of %K.
FullDFullD value, 'd period' moving average of FullK.
OverBoughtThe overbought level.
OverSoldThe oversold level.

If anyone has any advice it would be greatly appreciated.
 
Solution
According to the guide, StochasticRSI and FullStochastic functions create plots FullK & FullD, but I'm having trouble referencing the plots to create conditions such as:

def stoch= StochRSI(14, 80, 20,, AverageType.Wilders, close, 14, 5, 2, AverageType.Wilders, no);

Signal= FullK crosses above FullD;
or
Signal= Stoch(RSIFullK) crosses above StochRSI(FullD);
or even
Signal= stoch crosses above StochRSI(FullD);

The info for StochRSI from TDA's website is as follows:

ParameterDescription
rsi lengthThe number of bars with which the RSI is calculated.
over boughtThe overbought level value.
over soldThe oversold level value.
...
According to the guide, StochasticRSI and FullStochastic functions create plots FullK & FullD, but I'm having trouble referencing the plots to create conditions such as:

def stoch= StochRSI(14, 80, 20,, AverageType.Wilders, close, 14, 5, 2, AverageType.Wilders, no);

Signal= FullK crosses above FullD;
or
Signal= Stoch(RSIFullK) crosses above StochRSI(FullD);
or even
Signal= stoch crosses above StochRSI(FullD);

The info for StochRSI from TDA's website is as follows:

ParameterDescription
rsi lengthThe number of bars with which the RSI is calculated.
over boughtThe overbought level value.
over soldThe oversold level value.
rsi average typeThe type of moving average to be used in the calculation of the RSI: simple, exponential, weighted, Wilder's, or Hull.
rsi priceThe type of price with which the RSI is calculated.
k periodThe period on which the highest and the lowest price values are to be found.
d periodThe length of the moving average to be applied to FullK. This produces the FullD plot.
slowing periodThe length of the moving average to be applied to %K. This produces the FullK plot.
average typeThe type of moving average to be used in calculations: simple, exponential, weighted, Wilder's, or Hull.
show breakout signalsControls indication of Stochastic RSI crossovers above and below the overbought/oversold levels. Specify for which of the main plots the crossovers are to be indicated.

Plots​

PlotDescription
FullKFullK value, 'slowing period' moving average of %K.
FullDFullD value, 'd period' moving average of FullK.
OverBoughtThe overbought level.
OverSoldThe oversold level.

If anyone has any advice it would be greatly appreciated.

This is how you could reference the fullk and fulld from the 2 indicators with the def Signal.

Code:
def Signal = StochasticFull().FullK crosses above StochasticFull().FullD
or
StochRSI().FullK crosses above StochRSI().FullD
or
StochasticFull().FullD crosses above StochRSI().FullD;
 
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
356 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top