Hi all,
Looking to start playing around with my first algo.
I want to use a stochastic oscillator in this.
My question is, are there code samples for various classes?
QUANTCONNECT COMMUNITY
Hi all,
Looking to start playing around with my first algo.
I want to use a stochastic oscillator in this.
My question is, are there code samples for various classes?
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Ray Bohac
public Stochastic STO(Symbol symbol, int period, int kPeriod, int dPeriod, Resolution? resolution = null)
I'm trying to learn this as well so I thought I would start by throwing the data into a chart. Its not complete but may be a good starting point. If you clone this there is a "Stochastics" plotterJared Broad
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Ray Bohac
AddSecurity(SecurityType.Equity, _symbol, Resolution.Minute);
toAddSecurity(SecurityType.Equity, _symbol, Resolution.Daily);
and it came out much nicerJoel M.
Is there a Stochastic constructor for python? I saw the one for C#. I apologize. I am newbie to QuantConnect.
Halldor Andersen
Hi Joel.
Welcome to QuantConnect. For information on how to construct indicators, check out the documentation section on indicators.
In the attached backtest, I demonstrate how to use the Stochastic Indicator, and I construct a "Trade Plot," which plots the indicator values. The algorithm buys the currency pair EUR/USD when the "fast" stochastic indicator crosses below 20, and the algorithm closes the position when the indicator value exceeds 80.
RichardCurteis
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!