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

Notification

Icon
Error

Options
Go to last post Go to first unread
claude  
#1 Posted : Tuesday, June 7, 2005 3:29:31 AM(UTC)
claude

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/6/2005(UTC)
Posts: 3
Location: Canada

How would I program reoccurring cycles. I have tried with prev but I cannot get it to start over when it reaches a certain number. What I am looking for is something in the lines of example If X=5 then count to five. Once five is reached, start over basically the formula would count 12345 and then would start over 12345 if X=3 the formula would count 123 and then would start over 123 and so on.
wabbit  
#2 Posted : Tuesday, June 7, 2005 4:15:08 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)
Have a look at the Using Latches file included in this thread: http://forum.equis.com/viewtopic.php?p=2531 Hope this helps. wabbit :D
claude  
#3 Posted : Tuesday, June 7, 2005 4:32:13 AM(UTC)
claude

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/6/2005(UTC)
Posts: 3
Location: Canada

Hello I do appreciate the file you posted in fact I have already read it. I was able to do a binary 1 or 0 but still was unable to make a cycle count. I know in trade stations I could use (for to loop) I am still unable to figure out how to do it in metastock.
wabbit  
#4 Posted : Tuesday, June 7, 2005 11:36:33 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)
Roy Larsen's document contained all the information you needed to know to create the indicator you wanted.... Reset:=5; Add(1,PREV)-If(PREV=Reset,Reset,0); Hope this helps. wabbit :D Give a man a fish... teach a man to fish etc.
claude  
#5 Posted : Tuesday, June 7, 2005 1:07:53 PM(UTC)
claude

Rank: Newbie

Groups: Registered, Registered Users
Joined: 6/6/2005(UTC)
Posts: 3
Location: Canada

I guess I have to reopen that document and reread it once again. Thank you Now who feel silly not the wabbit :)
wabbit  
#6 Posted : Tuesday, June 7, 2005 1:24:46 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)
Its not in the reading of the code that Roy creates, its in the understanding of it! I find red wine helps, a lot! wabbit :D
Marilyn  
#7 Posted : Tuesday, June 7, 2005 3:06:26 PM(UTC)
Marilyn

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/10/2004(UTC)
Posts: 863
Location: Salt Lake City, UT

:) That's my theory too! If I can't sort it out usually a glass of red wine helps my thinking process... :lol: Glad I am not the only one!
Users browsing this topic
Guest (Hidden)
Similar Topics
Cycle through instruments (MetaStock)
by peter@metastock 7/23/2020 10:15:02 AM(UTC)
Custom Indicator using Adaptive Cycle Toolkit (Formula Assistance)
by pantarhei 2/20/2019 10:43:56 PM(UTC)
MetaStock Off-Cycle Maintenance June 2nd and June 3rd (Product Alerts)
by MS Support 5/1/2018 3:58:25 PM(UTC)
MetaStock Off-Cycle Maintenance - April 14th - 15th 2018 (Product Alerts)
by MS Support 3/19/2018 3:56:12 PM(UTC)
Where is the Manual for Dr. Issy Bacher's Cycle Trends Plus Add-on Installed? (MetaStock Add-Ons)
by MS Support 5/9/2017 2:47:01 PM(UTC)
What versions of MetaStock will Dr. Issy Bacher's Cycle Trends Plus Add-on work with? (MetaStock Add-Ons)
by MS Support 5/9/2017 2:45:11 PM(UTC)
What is installed with the Dr. Issy Bacher's Cycle Trends Plus Add-on? (MetaStock Add-Ons)
by MS Support 5/9/2017 2:44:17 PM(UTC)
How much data is needed to run Dr. Issy Bacher's Cycle Trends Plus exploration? (MetaStock Add-Ons)
by MS Support 5/9/2017 2:33:56 PM(UTC)
Where is the Manual for the Adaptive Cycle Toolkit Add-on Installed? (MetaStock Add-Ons)
by MS Support 5/8/2017 9:45:26 PM(UTC)
What versions of MetaStock will the Adaptive Cycle Toolkit Add-on work with? (MetaStock Add-Ons)
by MS Support 5/8/2017 9:44:05 PM(UTC)
What is installed with the Adaptive Cycle Toolkit Add-on? (MetaStock Add-Ons)
by MS Support 5/8/2017 9:39:43 PM(UTC)
How much data is needed to run the Adaptive Cycle Toolkit exploration? (MetaStock Add-Ons)
by MS Support 5/8/2017 9:37:10 PM(UTC)
How do I cycle through open charts using the same template? (MetaStock RT and DC)
by MS Support 5/5/2017 10:31:51 PM(UTC)
Adaptive Cycle Toolkit (ACT), Trend Quality Indicator (TQI) formula (Plugins & Addons)
by jacquesj 4/27/2016 7:56:07 PM(UTC)
Homodyne Cycle Periods (Formula Assistance)
by Leverage 1/17/2015 3:52:04 PM(UTC)
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.