Wanted Inverted chart AFL

suri112000

Well-Known Member
#1
I require inverted chart AFL.

When AFL is dragged and dropped on the chart pane, it should invert the chart thus making it look like upside down. All red bars should look green, and green bars should look red.

I will be grateful if anyone can direct me to the link.
 
#2
I require inverted chart AFL.

When AFL is dragged and dropped on the chart pane, it should invert the chart thus making it look like upside down. All red bars should look green, and green bars should look red.

I will be grateful if anyone can direct me to the link.
Code:
_SECTION_BEGIN("UltaPulta");
GraphXSpace =-100; 
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
SetChartBkColor(colorBlack) ;
BarCol	=	IIf(C > O, colorRed, colorBlue); 
SetBarFillColor(IIf(C > O, colorRed, colorBlack)); 
Plot( C, "Close", BarCol, styleCandle | styleNoTitle,0,0,0,5);  	
_SECTION_END();
Happy :)
 
Last edited:

suri112000

Well-Known Member
#3
Thanks a lot Happy Singh.:)
 
#6
Flippable Version

Code:
_SECTION_BEGIN("Ulta_Sulta");
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
bkcolor = ParamColor("Bk Color",colorBlack);
SetChartBkColor(bkcolor) ;
reverse = ParamToggle("Rerverse Chart","NO|YES",1);
if(reverse)	{
	GraphXSpace =-100; 
	BarCol	=	IIf(C > O, colorRed, colorBlue); 
	SetBarFillColor(IIf(C > O, colorRed, bkcolor)); 
}
else {
	BarCol	=	IIf(C < O, colorRed, colorBlue); 
	SetBarFillColor(IIf(C < O, colorRed, bkcolor)); 
}
Plot( C, "Close", BarCol, styleCandle | styleNoTitle);  	
_SECTION_END();
Happy :)
 

Aman1

Well-Known Member
#7
I need this Afl:
1. Price bar turns green when it is > 20 sma and rsi >30
2. price bar turns red when it is < 20 sma and rsi <70

Can some one help me with this.

thanks
 

Similar threads