[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Stylecloud



PureBytes Links

Trading Reference Links

Hello,
 
Colors and rendition are 100% correct. Think about it. In your formula color depends on CURRENT bar value.
So area between CURRENT and NEXT bar is plotted with selected color. Now when
chart swings above your "borderline" the color changes from NEXT bar and not in the "Middle" of the bars.
There is no way to specify time between bars.
 
StockCharts are NOT formula based. They hard coded fills and the simply fill everything above border line with
one color and everything below border with abother color.
 
To create such rendition is somewhat tricky because it involves overlay of two charts and appropriate clipping of the drawing
to "appear" as interpolated. This is also possible using AmiBroker but this method has one problem - it is not
printer friendly because printer drivers and windows metafiles can not properly handle clipping regions.
 
The same applies to colorizing Stoch overbuy/oversell levels.
 
This is can be done using "secret" style styleClipMinMax:
 
Stochastic color oversell/overbuy levels
 
SetChartOptions(0,0,ChartGrid30 | ChartGrid70 );
r =
StochK(14
);
Plot( r, "StochK", colorBlack
);
PlotOHLC( r,r,50,r, "", IIf( r > 50, colorRed, colorGreen ), styleCloud | styleClipMinMax, 30, 70 );
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Dan Clark
Sent: Saturday, January 07, 2006 4:24 PM
Subject: RE: [amibroker] Stylecloud

Hi Thomas,

 

I started using the styleCloud.  I like it for certain types of charts much better than histograms but I see one issue with it – colors change with the change of bar value and not with the change over or under a certain quantitative value.  For example, in the attached Chaikin MF(10) charts of WRES, the AB version shows odd changes in colors, while the StockCharts version shows the correct (IMO) rendition.

 

In the attached ChaikinStyleCloud.gif chart, look at the 12/7 bar (under the cursor line).   The CMF(10) value for that bar is “-.07” (negative).  The 12/6 value is “.07” (positive).   In the AB version, the cloud color is the green color of the 12/6 (positive) bar even after the bar drops below the “0” line between the 12/6 and 12/7 bar.   In the StockCharts version, the color correctly changes at the “0” line.

 

Here’s the color code for the chart:

 

CMFColor = IIf(CMFI >= 0, PColor, NColor);

 

Apparently AB translates this as “when the bar CMF value changes to goes over 0, change colors”.  My preferred translation would be “when the interpolated CMF value goes over 0, change colors.   I need to report this to Tomasz, but haven’t had the time. 

 

It looks like a similar issue.   Is this the issue to which you were referring?

 

Regards,

 

Dan.


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Tradingbasis
Sent: Saturday, January 07, 2006 3:54 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Stylecloud

 

Hello,

stylecloud looks good, however i have found no way to plot typical
oversold/overbought areas on any indicator with cloud correctly.

Can someone help please ?


- - - - - - - - - - - - - - - - - - - -
Best regards

Thomas
www.tradingbasis.com
support@xxxxxxxxxxxxxxxx
- - - - - - - - - - - - - - - - - - - -





Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS