Need help please! Im using multi bar candlesticks like harami, darkcloudcover, engulfing and piercing, they work just fine on EQUITY but when i use it on FOREX it always return empty.
QUANTCONNECT COMMUNITY
Need help please! Im using multi bar candlesticks like harami, darkcloudcover, engulfing and piercing, they work just fine on EQUITY but when i use it on FOREX it always return empty.
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.
Cristian Belarmino
i already change line 14Â
AddEquity(_symbol, Resolution.Hour);
to AddForex(_symbol, Resolution.Hour);
but the problems remain
Shile Wen
Hi Cristian,
The liquidity of Forex prevents gapping between candles, which prevents many candlestick patterns from forming.
Best,
Shile Wen
Cristian Belarmino
Hello, tried to mimic the engulfing results from QuantConnect.Indicators.CandlestickPatterns
until they both have same result, then i tried it on forex. Â
Cristian Belarmino
This is the code i made
Cristian Belarmino
and this is where i applied it on forex. i check the first 3 orders onÂ
https://www.tradingview.com/Â Please feel free to comment if theres any wrong or improvement with this code because im new and i really want to learn more about coding. thanks
Derek Melchin
Hi Cristian,
We can simplify the code above by using the built-in CandlestickPatterns. See the attached backtest for an example.
Note that the example below doesn't make any trades over the same period of time as the algorithm above. This is because the engulfing pattern requires a gap. The attached notebook shows that there are no gaps over the trading period specified. For our full definition of the engulfing pattern, refer to our source code here. It is slightly different than the definition used in the algorithm above.
Best,
Derek Melchin
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.
Cristian Belarmino
i see, Thanks!Â
Cristian Belarmino
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!