logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
RobV  
#1 Posted : Wednesday, August 11, 2010 11:35:56 AM(UTC)
RobV

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/10/2008(UTC)
Posts: 5

Can someone tell me how to best look back to get the price when an indicator has previously peaked? If I try to use Ref(C,-BarsSince(Peak(...))), the system doesn't seem to allow this dynamic argument in the Ref function. I am interested in getting this info to determine the current divergence in prices vs. the indicator's recent peak. Thanks!
RobV  
#2 Posted : Wednesday, August 11, 2010 12:28:33 PM(UTC)
RobV

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/10/2008(UTC)
Posts: 5

Solved my problem thanks to another post. For function f, use ValueWhen(1,Peak(1,f,%)=f,C). Didn't find a solution when I was looking before, but I hadn't checked recent posts. thanks!
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.