Rank: Advanced Member
Groups: Registered, Registered Users Joined: 10/16/2009(UTC) Posts: 33 Location: Redcliffe, QLD Australia
Thanks: 4 times Was thanked: 1 time(s) in 1 post(s)
|
The price is typically in a downtrend when it reverses into an uptrend. The object is to locate the (first) Initial High after 23 periods. Daily periodicity. What is the code to do that? The method is from a Leon Wilson book. Edited by user Thursday, January 8, 2015 11:53:21 AM(UTC)
| Reason: To provide more information.
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
This would be a simple formula. The first step would be to identify the proper function to use and then make a simple True/False condition out of it. The Highest High Value function would be the one to use here.
H=HHV(H,23)
Note that this function does include the current bar in its periods value.
If you are looking for the First Time this happens within a data sample, you could just cumulate the condition and identify when this is equal to a value of 1 (indicating the first time the condition is true):
Cum(H=HHV(H,23))=1 Edited by user Thursday, January 8, 2015 4:07:50 PM(UTC)
| Reason: Not specified
|
1 user thanked MS Support for this useful post.
|
|
|
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.