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

Average buy price indicator for Amibroker (AFL)

Rating:
4 / 5 (Votes 3)
Tags:
amibroker

Calculates average buy price for all current share holders at any point of time. The calculated value marks a robust resistance levels for the stock. When the price touches the average buy value, all of shareholders combined (float shares) have zero profit on average.

Requires setting “Outstanding shares” and “Float shares” values for the ticker in the Information window in AmiBroker. Add this formula at the end of your Price.afl (which is responsible for the price chart).

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
Horizontal Live Priceline Tool
Submitted by northstar over 12 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Average Buy");
SetBarsRequired(sbrAll ,sbrAll );
floatShares = GetFnData( "SharesFloat" );
BasePrice = 0;
Turnover = _Price * Volume;
NotTradedShares = floatShares - Volume;

for ( ii = 0; ii < BarCount; ii++ )
{
    if ( ii == 0 )
        BasePrice[ii] = _Price[ii];
    else
        BasePrice[ii] = ( ( BasePrice[ii-1] * NotTradedShares[ii] ) + Turnover[ii] ) / floatShares ;
}
Plot( BasePrice, "Avg Buy", ParamColor( "Color", colorGreen ), ParamStyle("Style", styleDashed | styleNoLabel  ) | styleNoRescale ); 
_SECTION_END();

1 comments

1. na1982

upload Full Formula

Leave Comment

Please login here to leave a comment.

Back