Discussions
»
Product and Service Development
»
Formula Assistance
»
How to dynamically look back for price at previous indicator peak?
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!
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
How to dynamically look back for price at previous indicator peak?
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.