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 : Thursday, June 4, 2009 12:08:29 PM(UTC)
Flexi

Rank: Advanced Member

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

Have this indicator that plot 1 or 0. But now want the indicator to plot 0 (even there is a signal) whenever the month is > 30 days. The indicator is not base on calendar month. In other word only wan the indicator to plot signal in month <= 30 days and ignore months > 30 days. Possible?
wabbit  
#2 Posted : Thursday, June 4, 2009 3:59:10 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Show us your attempt using AND, and DayOfMonth()


wabbit [:D]

Flexi  
#3 Posted : Friday, June 5, 2009 12:36:18 AM(UTC)
Flexi

Rank: Advanced Member

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

aa:=barssince(dayofmonth()=0);

bb:=if(max(aa,aa)<=30,ind1,0);

cc:=if(max(aa,aa)>30,ind2,0);

bb+cc;

but the code above does not seems to plot rite

wabbit  
#4 Posted : Friday, June 5, 2009 2:33:35 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Flexi wrote:
Have this indicator that plot 1 or 0. But now want the indicator to plot 0 (even there is a signal) whenever the month is > 30 days. The indicator is not base on calendar month. In other word only wan the indicator to plot signal in month <= 30 days and ignore months > 30 days. Possible?


Try:

Code:
ind:={your indicator logic goes here};

(dayofmonth() <=30) * ind;



wabbit [:D]


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.