[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pivot points for oscillators



PureBytes Links

Trading Reference Links

The code below also includes code for alerts. This code is untested but
should work.

Regards, Randall

Var: Osc(0), OscSlope(0), OscTop(false), OscBot(false);

 Osc = {Your oscillator code or function here};
 OscSlope = Osc - Osc[1]; {slope of Osc}

 OscTop = OscSlope < 0 and OscSlope[1] >= 0; {Peaks of the Osc}
 OscBot = OscSlope > 0 and OscSlope[1] <= 0; {Valleys of the Osc}

 if OSCTop begin
  if checkalert then alert = true;
  Plot1[1](OSC[1], "Top");
 end;

 if OSCBot Then begin
  if checkalert then alert = true;
  Plot2[1](OSC[1], "Bot");
 end;

----- Original Message -----
From: "Francesco Topino" <ftopino@xxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Tuesday, January 16, 2001 15:14
Subject: pivot points for oscillators


> hello,
>
> does anyone know if there is a way to get the values of  and highlight the
> throughs and peaks of a stochastic or any other oscillator?sort of a
> pivotlowvs or pivotlowvsbar for oscillators.
>
> thanks
>
> FR
>