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?
|
|
|
|
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]
|
|
|
|
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
|
|
|
|
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.