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

Notification

Icon
Error

Options
Go to last post Go to first unread
flywinds  
#1 Posted : Saturday, January 17, 2015 2:29:38 AM(UTC)
flywinds

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 1/17/2015(UTC)
Posts: 5

i want the formula "kd of 5 minutes“ to reference formula"kd of 30 minutes"

how to ......


flywinds  
#2 Posted : Sunday, January 18, 2015 1:22:54 AM(UTC)
flywinds

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 1/17/2015(UTC)
Posts: 5

just like tradestation has;   formula "OHLCPeriodsAgo" "CloseD"  "CloseW" "CloseM"

do the metastock has?

flywinds  
#3 Posted : Sunday, January 18, 2015 1:32:00 AM(UTC)
flywinds

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 1/17/2015(UTC)
Posts: 5

the value of kd of 5min  and the value of kd of 30min  in one indicator at the same time.

how to realize?

do I express clearly?

mstt  
#4 Posted : Sunday, January 18, 2015 4:31:36 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi flywinds BTW, thank you for responding to my email. Unless you post the KD MetaStock formula I cannot be absolutely certain that the two periodicities can be accessed in one single Multi-Frame formula. Nevertheless I'd be quite surprised if that was not possible. Posting the KD formula will at least get you an answer one way or the other, and at no cost. Roy
flywinds  
#5 Posted : Sunday, January 18, 2015 2:16:57 PM(UTC)
flywinds

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 1/17/2015(UTC)
Posts: 5

sorry,my english is not good.

kd is stochastic.

mstt  
#6 Posted : Sunday, January 18, 2015 8:03:53 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi flywinds Here are two Stochastic indicators that can plot a 30-minute stochastics on a 5 minute charts while including a standard Stoch() function (or other code). These are proprietary indicators and therefore are not available in the public domain. For this reason the "ID Timing" section of the MetaStock formula is not included. These tools provide the "how to" that you have asked for. Like most good tools they are not free. If you want more information then email me at rlarsen@quik.co.nz. Roy **************************************************** {Multi-Frame ID Stoch EMA} {EMA Smoothed Stochastic} {MSTT DLL by wabbit.com.au} {Uses Equis Forum DLL} {Roy Larsen, 2008-2014, 7/1/14} {User settings} Pd:=Input("Multi-Frame ID Stoch EMA, %K Periods",1,99,10); N:=Input("%K Slowing, Periods" ,1,99,3); U:=Input("%D EMA, Periods",1,99,3); J:=Input("Periodicity in Minutes, 1-1440",1,1440,30); Q:=Input("Mode, 0=Static 1=Dynamic 2=Delayed",0,2,0); {ID Timing} { 13 lines of code have been deleted } {End-of-frame prices} B:=HighestSince(1,M+(Z=1),H); Y:=LowestSince(1,M+(Z=1),L); B:=ValueWhen(1,J,If(J=1,B,ValueWhen(2-G,1,B))); Y:=ValueWhen(1,J,If(J=1,Y,ValueWhen(2-G,1,Y))); K:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C))); {Stochastic and %K slowing} J:=J>0; I:=Cum(J); A:=Z-ValueWhen(N+1,J,Z); X:=K-LowestSince(Pd,J,Y); X:=ExtFml("Forum.Sum",X*J,A); D:=HighestSince(Pd,J,B)-LowestSince(Pd,J,Y); D:=ExtFml("Forum.Sum",D*J,A); D:=ValueWhen(1,Cum(D>0)>0,D); K:=100*X/(D+(D=0)); K:=ValueWhen(1,I>=Pd+N,K); {%D EMA smoothing} R:=If(J,If(I<U,1,U),-1); D:=ExtFml("MSTT.EMA",K,R); D:=ValueWhen(1,I>=Pd+N,D); {Results} K; {%K} D; {%D} { insert standard Stochastic or in combination with Multi-Frame code here } **************************************************** {Multi-Frame ID Stoch SMA} {SMA-Smoothed Stochastic} {Uses Equis Forum DLL} {Roy Larsen, 2008-2014, 7/1/14} {User settings} K:=Input("Multi-Frame ID Stoch SMA, %K Periods",1,99,10); N:=Input("%K Slowing, Periods" ,1,99,3); U:=Input("%D SMA, Periods",1,99,3); J:=Input("Periodicity in Minutes, 1-1440",1,1440,30); Q:=Input("Mode, 0=Static 1=Dynamic 2=Delayed",0,2,0); {ID Timing} { 13 lines of code have been deleted } {Frame prices} Hm:=HighestSince(1,M+(Z=1),H); Lm:=LowestSince(1,M+(Z=1),L); Hm:=ValueWhen(1,J,If(J=1,Hm,ValueWhen(2-G,1,Hm))); Lm:=ValueWhen(1,J,If(J=1,Lm,ValueWhen(2-G,1,Lm))); Cm:=ValueWhen(1,J,If(J=1,C,ValueWhen(2-G,1,C))); {Stochastic and %K slowing} J:=J>0; I:=Cum(J); A:=Z-ValueWhen(N+1,J,Z); B:=Cm-LowestSince(K,J,Lm); B:=ExtFml("Forum.Sum",B*J,A); D:=HighestSince(K,J,Hm)-LowestSince(K,J,Lm); D:=ExtFml("Forum.Sum",D*J,A); D:=ValueWhen(1,Cum(D>0)>0,D); X:=100*B/(D+(D=0)); X:=ValueWhen(1,I>=K+N,X); {%D SMA smoothing} Z:=Z-ValueWhen(U+1,J,Z); Z:=ExtFml("Forum.Sum",J*X,Z); M:=ValueWhen(1,J,Z)/Min(I,U); Y:=ValueWhen(1,I>=K+N+U,M); X; {%K} Y; {%D} { insert standard Stochastic or in combination with Multi-Frame code here } ****************************************************
flywinds  
#7 Posted : Monday, January 19, 2015 2:04:22 AM(UTC)
flywinds

Rank: Newbie

Groups: Registered Users, Subscribers, Unverified Users
Joined: 1/17/2015(UTC)
Posts: 5

thank you.

but it is too complex.

Is there no a function or a formula in the metastock?  

just like “CloseD" return the value of close of day.

I know a function in other software.just like "macd.dea#min30" return the value dea of macd of 30min 

mstt  
#8 Posted : Monday, January 19, 2015 4:08:09 AM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi flywinds You asked for a solution, I gave you one, and it's too complex? If you're new to MetaStock then there are hundreds of things you won't understand. If you're planning to use MetaStock for the long term then you need to start overcoming one problem at a time. I've already written the hard part of the code (30 minute Stoch on 5 minute chart), it's extremely accurate, and yet you think it's "too complex". What's complex about dropping an indicator onto a chart? I don't understand your thinking. I hope your questions eventually get answered to your satisfaction. Sadly, however, you might have to wait a while. Roy
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.