Is it possible to have a monthly consolidator AND a daily TRIX signal to exit early? Trying to use the monthly consolidator to calculate the monthly performance of the universe of ETF's. Then, selete the bottom 3 to BUY and hold for 1 month.
Additionally, tyring to EXIT the ETF's before month end if the TRIX 6 is below its 4 day moving average. The "overbought" and "oversold" idea did not help me exit early.
Is it possible to exit early if I'm only REBALANCING on the 1st day of the month? Appreciate your suggestions on how to mover forward.
Rahul Chowdhury
Hey Mike,
Your algorithm is currently entering trades once a month based on the monthly consolidator and exiting on the daily TRIX overbought signal for SPY. I added a SMA on the TRIX indicator using indicator extensions. This algorithm now exits early based if the current TRIX is less than its 4 day SMA. Keep in mind that this means if your algorithm exits early, you will have no position for the remainder of the month.Perhaps instead of exiting all your trades based on the TRIX value of just SPY, you can exit position based on its own TRIX value.
Mike Reichard
Mike Reichard
Would I use the “indicator extension” to calculate SMA for each ETF, or is there another better way?
Then, in the OnData section can I check each ETF (depending on how many I’ve selected) and only exit the ones that are below their own TRIX SMA 4?
With your idea I’d be getting out when there is weakness in the particular ETF that I’m in.
Thanks for your insights!
Mike
Mike Reichard
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!