DYO: Ichimoku formula example
Q: I want to have Ichimoku chart. Formula as follows:
SL = ( HHV( H, 26 ) + LLV( L, 26) )/2;
TL = ( HHV( H, 9 ) + LLV( L, 9 ) )/2;
DL = Ref( C, 25 );
Span1 = Ref( ( SL + TL )/2, -25 );
Span2 = Ref( (HHV( H, 52) + LLV(L, 52))/2, -25);
MaxGraph = 6;
Plot(SL,"SL",colorBlue,styleThick); // standard, base, or kijun-sen line
Plot(TL,"TL",colorRed,styleThick); // turning, conversion, or tenkan-sen line
Plot(DL,"DL",colorViolet,styleLine); // delayed, lagging, or chikou span
Plot(Span1,"A",colorWhite,styleLine); // senkou span A, kumo, or white clouds
Plot(Span2,"B",colorWhite,styleLine); // senkou span B, kumo, or white clouds
Plot(Close,"Close",colorBlack,styleLine); // price close
Would appreciate if you could let me know how to do it.
A: Here is my implementation of your formulas using our Design Your Own study forms.
The solution used 2 DYOs. The first implemented the SL, TL, DL, and Span1 as labeled. The 2nd DYO implemented the Span2 formula, and that line is also labeled on the chart.
Since you can compare the implementation with the formulas, it should be fairly obvious what each of the DYO lines is accomplishing.
| contact us
Ensign Software, Inc., 113 Stillwater Drive, Idaho Falls, ID 83404 Support: 801-328-1382 Billing: 208-552-2230
(c) 2011 Ensign Software, Inc. All Rights Reserved
Last modified 8/8/08 11:21 AM