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 ....

#1 Selling Amibroker Plugin featuring:

Neural Networks
And Much More ....
Find Out More Here

TD Pressure Ratio for Amibroker (AFL) javgeek over 8 years ago Amibroker (AFL)

Rating:
Tags:
oscillator, amibroker

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.

Similar Indicators / Formulas

3 Days Track
Submitted by janet0211 about 9 years ago
Submitted by tuanstock1 almost 5 years ago
Ergodic Oscillator
Submitted by dljtrader over 8 years ago
BoH Risk Aversion Indicator
Submitted by genkumag over 7 years ago
Chande Momentum Oscillator
Submitted by klimpek over 8 years ago
%R ++
Submitted by reb about 9 years ago

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();
```