Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/27/2006(UTC) Posts: 135
|
How to indicator doing counting backward bars to a specific reset condition?
Say count backward from third week of month dayfoweek()=5 at bar 1 backward to the previous month second week dayofweek()=1
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 5/27/2006(UTC) Posts: 135
|
|
|
|
|
Rank: Newbie
Groups: Joined: 8/4/2014(UTC) Posts: 1
|
I would do something using barssince as a substraction. So for example:
x := {the condition you want to start counting backwords}; Y:= {the number of days that you want to start counting back from};
y-barssince(x,1)
This should work. I didn't actually plug it into MetaStock. So I may have missed a ";" somewhere. This should give you the right idea.
|
|
|
|
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.