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 ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
ATP COLOR CHANGE CANDLE for Amibroker (AFL)
Copy & Paste Friendly
Back
_SECTION_BEGIN("ATP"); 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(); //plot(c,"",3,64); //Buy =Cross(C,atp); //Sell=Cross(atp,C); //PlotShapes(shapeUpArrow*Buy,5,0,L,-10); //PlotShapes(shapeDownArrow*Sell,4,0,H,-10); SetBarFillColor(IIf(C>atp,ParamColor("Candle UP Color", colorGreen),IIf(C<=atp,ParamColor("Candle Down Color", colorRed),colorLightGrey))); Plot(C,"\nPrice",IIf(C>atp,ParamColor("Wick UP Color", colorBrightGreen),IIf(C<=atp,ParamColor("Wick Down Color", colorRose),colorrose)),64,0,0,0,0);