Been working with the Pivot Point Indicator and in the OnData method I am calling the array to get the most recent pivot point values but the values are getting rounded to 2 decimal points which isn't enough for trading EURUSD. Switching the forex pair to USDJPY I get 1XX.XX, still rounding to 2 decimal points. Is this a bug with the pivot point indicator? Is there another way to access the most recent pivot point? Is there rounding with the array or something else that I am missing?
Thanks in advance, Mason
Nico Xenox
Hey Mason Jackson,
not sure if this helps but by changing self.highList[0] to self.highList[0].Value you get decimal values with .xxxx
Best,
Nico
Mason Jackson
That did work! Thank you! I can't believe it was something so simple.
Mason Jackson
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!