Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 3/5/2009(UTC) Posts: 5
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
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.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.