Anybody have this AFL .... ?

mastermind007

Well-Known Member
#11
hi MM007, thanks for your color code......now ATP AFL looks like this, after inserting your code....... red ATP looks clear but can I make the green ATP line color more dark, also at the left top, ATP is written in green, it sud be black.

_SECTION_BEGIN("ATP");
SetChartBkGradientFill(ColorRGB(207,253,239), ColorRGB(252,224,193));
B=Volume;
A=Avg;
Value=B*A;
Barsfromtodaybegin = 1 + BarsSince( Day() != Ref(Day(), -1));
Totalvalue=Sum(Value,Barsfromtodaybegin);
Totalvolume=Sum(V,Barsfromtodaybegin);
ATP=(Totalvalue/Totalvolume);
ColorATP=IIf(ATP>Ref(ATP,-1),colorBrightGreen,colorRed);
Plot(ATP,"ATP",colorATP,styleThick);
_SECTION_END();
Ravi

I've bolded and highlighted two lines in your code that you can tinker with to change the color. Play with it. Basically, you have to pick up color contrasts. Experiment with it.

Download colorpix from here and pluck out R G B values for any color you want.
 

Similar threads