-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ichimoku indicator error #261
Comments
I believe the error is here. The commented part is responsible for the displacement. technicalindicators/lib/ichimoku/IchimokuCloud.js Lines 55 to 60 in 7740f17
|
I corrected this error. Tried to follow the instructions to create a pull request, but got a bunch of errors.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that the Ichimoku indicator spanA and spanB lines are calculated wrong.
They should be plotted
displacement
periods in the future, but they are not.Here is a reference for the calculation:
https://www.investopedia.com/terms/i/ichimoku-cloud.asp
I created a chart using TradingvVew lightweight charts, and plotted the ichimoku values as lines. To compare, I picked the same chart on TradingView with the ichimoku indicator enabled. It seems clear to me that the conversion and base lines are plotted right, but spanA and spanB are not plotted in the future, as they should be.
The text was updated successfully, but these errors were encountered: