in Search

Oscillator Peak

Last post 02-01-2010, 18:55 by johnl. 1 replies.
Sort Posts: Previous Next
  •  02-01-2010, 6:03 31818

    Oscillator Peak

    I am not really good in programing. Hopefully somebody will give me some idea. I am trying to locate the last 3 peaks of an oscillator value in the last 3 month. It is quite diffcult and troublesome to read from the chart as you need to do some adjustment. Any formula to find those values?

    Thank you for any help.

    fankc

  •  02-01-2010, 18:55 31826 in reply to 31818

    Re: Oscillator Peak


     Overlaying the oscillator over the chart doesn't help? You could create a signal for
    the peak like:
    a1:=oscillator;
    a2:=(a1<Ref(a1,-1))*(Ref(a1,-1)>Ref(a1,-2));
    a3:=ValueWhen(1,a2=1,C);
    a4:=ValueWhen(2,a2=1,C);
    a5:=ValueWhen(3,a2=1,C);
    a3;a4;a5;
    a3,a4,a5 should be previous 3 closes of the peaks in the oscillator.

View as RSS news feed in XML