PureBytes Links
Trading Reference Links
|
Try using Point of Balance close as a filter let the system Long if above 0
short if below. I have used it as a trend indicator and it stops some of the
whipsaw. This is the code. The other one I use is the smoothed difference
between DMI+ and DMI-.
{FearPobcOsc Function TASC Aug 1998 Walter Downs }
Inputs: Price(Numeric), Length(Numeric), Level(numeric);
Vars: AvgAvgs(0), HiPrice(0), LoPrice(0), AvgVal(0);
Array:MPAvg[10](0);
AvgAvgs = 0;
MPAvg[1] = MidPoint(Price,Length);
MPAvg[2] = MidPoint(MPAvg[1],Length);
MPAvg[3] = MidPoint(MPAvg[2],Length);
MPAvg[4] = MidPoint(MPAvg[3],Length);
MPAvg[5] = MidPoint(MPAvg[4],Length);
MPAvg[6] = MidPoint(MPAvg[5],Length);
MPAvg[7] = MidPoint(MPAvg[6],Length);
MPAvg[8] = MidPoint(MPAvg[7],Length);
MPAvg[9] = MidPoint(MPAvg[8],Length);
MPAvg[10] = MidPoint(MPAvg[9],Length);
HiPrice = Highest(Price,Level);
LoPrice = Lowest(Price,Level);
For value1 = 1 to level begin
AvgAvgs = AvgAvgs + MPAvg[value1];
end;
AvgVal = AvgAvgs/Level;
If HiPrice - LoPrice <> 0 Then
FearPobcOsc = 100* ((Close - AvgVal) / (HiPrice - LoPrice));
{Indicator Name: Point of Balance Close TASC Aug 1998 Walt Downs}
{Plot 1 and Plot2 are histrograms, Plot3 is a line.}
Inputs: Price(Close),Len(12),Level(10);
Vars: PosNeg(0);
If CurrentBar > Len * Level Then Begin
PosNeg = FearPobcOsc(Price,Len,Level);
If PosNeg > 0 Then
Plot1(PosNeg,"FearOsc")
else
Plot2(PosNeg,"FearOsc");
end;
Plot3 (0,"Bal");
"The darkest hour in any man's life is when he sits down to plan
how to get money without earning it"
Sentinel Trading
rjbiii@xxxxxxxxx
|