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

Notification

Icon
Error

Options
Go to last post Go to first unread
ClaudeBrunet  
#1 Posted : Wednesday, June 27, 2012 5:12:15 AM(UTC)
ClaudeBrunet

Rank: Member

Groups: Registered, Registered Users
Joined: 5/22/2012(UTC)
Posts: 19

Hi, Can you help me to code this with formula metastock: If(dayofmonth()=5,high,??????????) i don't like to plot anything if dayofmonth is different from 5.
henry1224  
#2 Posted : Wednesday, June 27, 2012 10:57:56 AM(UTC)
henry1224

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/29/2004(UTC)
Posts: 1,394
Location: Glastonbury, CT

Was thanked: 2 time(s) in 2 post(s)
ValueWhen(1,dayofmonth()=5,H)
wabbit  
#3 Posted : Wednesday, June 27, 2012 8:17:23 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)
ClaudeBrunet wrote:
Hi, Can you help me to code this with formula metastock: If(dayofmonth()=5,high,??????????) i don't like to plot anything if dayofmonth is different from 5.

With MS, once an indicator (or a variable within an indicator) starts returning values, then it has to keep returning values until "switched off"; but if switched off then it cannot be switched back on again; much to just about everyone's chagrin, there are no NULL returns in MS (except for some N/A errors)

So, you have to plot something... even if it's zero and the use Roy's ValueWhen(1,0,1) trick to avoid rescaling the price axis.


wabbit [:D]

ClaudeBrunet  
#4 Posted : Friday, June 29, 2012 2:44:32 AM(UTC)
ClaudeBrunet

Rank: Member

Groups: Registered, Registered Users
Joined: 5/22/2012(UTC)
Posts: 19

thanks for your replay it's work fine
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.