Rank: Newbie
Groups: Registered, Registered Users Joined: 9/5/2008(UTC) Posts: 1
|
Hi all,
I am quite new in the Forum. So first I would like to say hello to all!!
I am trying to make this formula work but it always gives me 0 as answer:
BarsSince(L=Trough(2 ,L ,15 ))
What I want to get is the days that have passed since the market made a trough of 15%, not the last time but the time before, ie not the previous low but the low before.
Is rare because if i asked the level like this: valuewhen(1,(L=Trough(2 ,L ,15 )),L), it will give me the correct value, but it doesn't give the days that have ellapsed since that.
Any help please??
thanks
Javier
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 7/12/2007(UTC) Posts: 134 Location: Perth Western Australia
|
Hi Javier,
There are two functions which are useful when referencing the bars since or the value of a data array when using Peak or Trough and they are as follows:-
Trough(Nth, Data Array, % Minimum Change);
TroughBars(Nth, Data Array, % Minimum Change);
Peak(Nth, Data Array, % Minimum Change);
PeakBars(Nth, Data Array, % Minimum Change);
CAUTION - The Peak and Trough functions use the ZigZag function (i.e. hindsight) so read the warnings in your MetaStock manual regarding their use.
oz
|
|
|
|
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.