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

Notification

Icon
Error

Options
Go to last post Go to first unread
Flexi  
#1 Posted : Friday, August 1, 2014 1:18:19 PM(UTC)
Flexi

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
Flexi  
#2 Posted : Saturday, August 2, 2014 3:13:34 PM(UTC)
Flexi

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/27/2006(UTC)
Posts: 135

Anyone would try?
JeffreyG  
#3 Posted : Wednesday, August 6, 2014 4:54:12 PM(UTC)
jeffreyg

Rank: Newbie

Groups: Guests
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.