Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

RSI/STOCH Color candles for Amibroker (AFL)
elite
almost 13 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
amibroker

Simple OHLC plot with the color of the candles defined by the current value of the RSI/STOCHD. From violet to red, RSI/STOCHD oversold to overbought. Enjoy!

Screenshots

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez almost 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn over 12 years ago
3_6Day GuaiLiLv
Submitted by motorfly over 12 years ago
Williams Alligator System
Submitted by durgesh1712 over 12 years ago
*Level Breakout system*
Submitted by Tinych over 12 years ago

Indicator / Formula

Copy & Paste Friendly
Indicator = ParamList("Indicator", "RSI|STOCH");
C_mode    = ParamList("Color mode", "CM1|CM2");

function rcolor(r)
{
	Saturation0 = 255;
	Brightness0 = 255;
	Minr = LLV(r, BarCount);
	Maxr = HHV(r, BarCount);
	rn = (r-Minr)/(Maxr-Minr);
	if(C_mode == "CM1") {
		Hue0 = 220-int(rn*220.0);
	} else {
		rn = (rn/sqrt(1.0+rn^2))*sqrt(2);
		Hue0 = 220-int(rn*220.0);
	}
	return ColorHSB(Hue0, Saturation0, Brightness0);
}

Iperiod = Param("Indicator period", 13, 2, 50);

if(Indicator == "RSI") {
	Ivalue = RSI(Iperiod);
} else {
	Ivalue = StochD(Iperiod, 3, 3);
}

Plot(C, "Close", rcolor(Ivalue), styleCandle);

0 comments

Leave Comment

Please login here to leave a comment.

Back