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

Notification

Icon
Error

Options
Go to last post Go to first unread
astrowillie  
#1 Posted : Tuesday, January 8, 2008 2:43:31 AM(UTC)
astrowillie

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/8/2008(UTC)
Posts: 3

Hi. I am completely new to the forum, to metastock, and to programming . If anyone could offer some help, I would really appreciate it.

Because I was unable to locate any functional Demark Sequential code on the internet, I am trying to program my own. So far, I have created a functional buy setup, properly preceded by a flip day, as well the intersection, the first countdown day, and some of the second countdown day.

However, as I began working on the second countdown day, I realized that I might have to make hundreds of "symbols" entries to come up with a working Countdown, as the countdown does not have to be succsessive., especially as intersection isn't restricted to any specific day. I am already nearing 50 entries.

Really, if I just knew how to properly reference a certain condition, defined by an indicator, I would save a lot of hours.

For the second countdown day, I would like to make the condition, "if this day is preceded by countdown day 1 {which is already defined by a functioning indicator}, and if this day's close is lower than the low 2 days prior, then label this countdown day 2." Or, if this day is preceded by countdown day 1 two days ago, then "...", et cetera.

After reading the primer and the metastock "help" manual, and after trying countless variations using both ref(fml"") and Prev, I am still not certain how to write what I am trying to write, or if this can be written at all.

Again, any input whatsoever is greatly appeciated.

Thanks, Brian
hayseed  
#2 Posted : Tuesday, January 8, 2008 5:08:53 AM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey brian..... to be new to programing but still attempt to code demark implies you aim high..... real high.... i like your style.....

we did some work on the sequential a while back.... wabbit is handy at reducing code to it's lowest denominator, check his ideas for improving our code here..... h

astrowillie  
#3 Posted : Tuesday, January 8, 2008 11:55:41 PM(UTC)
astrowillie

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/8/2008(UTC)
Posts: 3

Hey, thanks for the help.
Ashok  
#4 Posted : Saturday, February 2, 2008 3:03:51 AM(UTC)
Ashok

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 10/1/2006(UTC)
Posts: 2

Hi Hayseed,

Impressed with your effort on MS coding. Need some help if possible, i had left a different post as well check if you help me with this

Hi,

I am aware this post is an old one but i just got introduced to Tom demark's sequential indicator. I have used your programming and coding skills and got this on my Metastock. Thanks for the effort.

Just wanted to check the code you have written is for Setup have you attempted the code for countdown? stop loss.Correct me if i am wrong i guess the concept of set up and countdown are different right?

Secondly i wanted a clarificaiton

What is the entry signal in the setup? Is it close above the 8th or 9th bar is it? and stop loss is close below the entry bar is it?

Can we use the set up as an indicator in itself without using the count down.

Thanks for your support and assistance.

Cheers Ashok

astrowillie  
#5 Posted : Thursday, May 1, 2008 10:47:44 AM(UTC)
astrowillie

Rank: Newbie

Groups: Registered, Registered Users
Joined: 1/8/2008(UTC)
Posts: 3

I gave up on programming this in MS for some time. However, after I had written numerous spreadsheets for Demark indicators in Excel, I was feeling pretty confident.

I came back and had it written in a day's time. So, I am pretty pleased with my performance.

The function I was looking for originally is (ref(fml("Indicator"),-periods)

I used that to sum a few things and, voila, I was good to go.

It took 8 indicators, which is a lot less than I had anticipated.

Despite my joy at having been able to successfully write it, I am a bit unhappy with just how long it takes to calculate. When I attach the expert, it takes a good 5 minutes for one issue with only 6 months of data.
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.