Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
TD Pressure Ratio for Amibroker (AFL)
Numerator is the sum of all the accumulation (days the close was above the open) over a certain number of days,
multiplied by the volume – that is the “Buying Pressure”.
Note: “Selling Pressure” is the sum of all of the distribution over the same number of days, multiplied by the
volume. Denominator is the absolute value of the sum of the Buying Pressure and Selling Pressure.
The ratio gives you a measure of the Buying Pressure as a percentage of the total activity. This ratio
(oscillator) should fluctuate from 0 to 100.
Screenshots
Similar Indicators / Formulas
Indicator / Formula
_SECTION_BEGIN("TD Pressure Ratio"); SetChartBkColor(16); Periods = Param("Periods",13,1,50,1); function TDPressure (Periods) { for( i = 2; i < BarCount; i++ ) { if((O[i] - C[i-1]) / C[i-1] > 0.15) // gapup { BP[i] = (H[i] - C[i-1] + C[i] - L[i]) * V[i]; } else if((C[i-1]-O[i]) / O[i] > 0.15)// gapdown { SP[i] = (C[i-1] - L[i] + H[i] - C[i]) * V[i]; } else { BP[i] = IIf(C[i] > O[i], C[i] - O[i],0) * V[i]; SP[i] = IIf(C[i] < O[i], C[i] - O[i],0) * V[i]; } } Result = 100 *Sum(BP,Periods)/ (Sum(BP,Periods) - Sum(SP,Periods)); Result = IIf(Result < 0,0,Result); Result = IIf(Result > 100,100,Result); return Result; } TDP = TDPressure(Periods); Plot(TDP ,"TD Pressure",colorLightBlue,1); Plot( 25 , "", colorGreen,styleDashed); Plot( 50 , "", colorLightGrey,styleDashed); Plot( 75 , "", colorRed,styleDashed); _SECTION_END();
0 comments
Leave Comment
Please login here to leave a comment.
Back