Wealth-Lab Wiki

API ChartStyles Community Components Community Indicators IndexDefinitions Knowledge Base Misc Optimizers Pending Deletion PosSizers Providers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos Visualizers
RSS

Navigation


Quick Search
»
Advanced Search »


Indicators | Plot Oscillators with Different Shades of Colors

RSS

Request



"It would be nice to have different shades of colors in the Indicator Overbought/Oversold areas.
(e.g. light red = -100 < CCI < -200; dark red CCI < -200)"

Solution



This workaround by Robert Sucher shows how to do the shades of colors by plotting more than once. The key is to make sure that you plot the lighter colors first:


protected override void Execute()
{ 			
	DataSeries CCI_LT = CCI.Series( Bars, 55 );
	ChartPane paneCCI_LT = CreatePane( 40, false, true);
	PlotSeriesOscillator( paneCCI_LT, CCI_LT, 100, -100, Color.FromArgb( 50, Color.Blue ), 
		Color.FromArgb( 50, Color.Red ), Color.FromArgb( 80, Color.Black ), LineStyle.Solid, 2);			
	PlotSeriesOscillator( paneCCI_LT, CCI_LT, 200, -200, Color.FromArgb( 70, Color.Blue ), 
		Color.FromArgb( 70, Color.Red ), Color.FromArgb( 80, Color.Black ), LineStyle.Solid, 2);
}

Different shades of colors

Different shades of colors

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki. Some of the icons created by FamFamFam.