-
Notifications
You must be signed in to change notification settings - Fork 97
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
How to plot Ichimoku Cloud using ichimoku indicator, so as to render the future cloud in the chart? #3
Comments
I don't use it for visualization. I use it as a trading indicator. It would On Sun, Dec 14, 2014 at 8:22 PM, Nash [email protected] wrote:
|
If you are using the ichimoku indicator as a pure trading indicator, the future cloud formation still needs to be inclusive. Because the future cloud helps to determine the market sentiment (i.e. a measure of equilibrium according to Goichi Hosoda), hence this future cloud can signal potential trend reversals that is either bullish or bearish, which can be a viable flag in an Ichimoku based Algo. A brief theory and application of pairing the 'SpanA' & 'SpanB' lines can be found here. Well, this is my attempt to render the 'Span A' & 'Span B' lines (i.e. future cloud). Now, 'Span A' & 'Span B' lines are projected 26 periods into the future. This was achieved without any data-loss considering how the 'Span A' & 'Span B' data-points are calculated at present in the ichimoku indicator, I presume this data-loss is intentional for 'Span A' & 'Span B'... Is it? Here's the implementation code & screenshot of the plot:
Comments & suggestions are welcome :) |
Looks good, actually. Thanks a lot =). On Mon, Dec 15, 2014 at 10:03 PM, Nash [email protected] wrote:
|
Hi, @knshetty When I try your code, I get the following error: Wonder where did I go wrong? |
I found the issue lied in the order which you load dplyr package and the xts package. See: joshuaulrich/xts#131 The quickest fix I found to be loading xts after or not loading dplyr if you don't have to. Hope that helps! |
Many thanks. This was most helpful. |
Using the ichimoku indicator, I am attempting to plot Ichimoku Cloud, with the below implementation:
After running the above code, all the five lines are rendered in the Chart (i.e. turning line, base line, Span A, Span B, plotSpan), here's the screenshot of my RStudio with the plot:
Well, the problem is with the 'Span A' & 'Span B' lines (i.e. future cloud), which are not projected ('nMed=26') into the future. This projection is very important aspect of visualizing an Ichimoku Cloud in its entirety. Any suggestion on how to make the ichimoku indicator to plot the future cloud? Or is there something wrong in the above implementation?
The text was updated successfully, but these errors were encountered: