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

Notification

Icon
Error

Options
Go to last post Go to first unread
Ray.  
#1 Posted : Monday, August 20, 2007 8:03:40 PM(UTC)
Ray.

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/13/2007(UTC)
Posts: 3

I am newbie towards msl coding and I had spent hours simply trying to draw simple parallel lines representing daily gap on daily chart. Your valuable input will be appreciated.

My code is OK to draw gap, however not capable to get rid of non-gap days. In simple word, draw gap range parallel lines for only gap days.
wabbit  
#2 Posted : Tuesday, August 21, 2007 8:18:51 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)
Hi Ray.

Welcome to the Forum.

One of the issues you are going to be confronted with often is the fact that MetaStock doesn't deal with NULL values very well. Once you have started returning values for a function, a value must be returned on every bar after. In your case, you don't have to have any lines drawn until the first instance of the gap code, but for every bar after there will be values returned and lines drawn. All you can do is assign a value that will not cause too many clarity issues for reading the chart or rescaling issues.



Hope this helps.

wabbit [:D]

Ray.  
#3 Posted : Wednesday, August 22, 2007 4:00:09 AM(UTC)
Ray.

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/13/2007(UTC)
Posts: 3

Got! Thanks Wabbit!

btw, i enjoy lots of your great posts such as "RMO Shape & Size Doesn't Matter? Why Not?". I'd come back to you with new puzzles later.
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.