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

Notification

Icon
Error

Options
Go to last post Go to first unread
Joy55  
#1 Posted : Wednesday, June 2, 2010 3:03:36 AM(UTC)
Joy55

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 6/2/2010(UTC)
Posts: 18

Hi,
Can anyone guide me writing exploration of stochastic. My requirement-
Stochastic-
Time period-13
Slowing - 8
%D Parameters.
Time period -5
Method-Simple.

It's Buy and Sell signal.
Please guide how to paste in exploration.
Your guidence will be appriciated.
Regards.

vienna  
#2 Posted : Wednesday, June 2, 2010 5:09:12 AM(UTC)
vienna

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/14/2009(UTC)
Posts: 140
Location: Austria

Hi Joy,

I haven't worked with explorations until now, but there is already an explorer "Equis - Stochastic Osc - Expert System" in metastock. Maybe you can copy this Explorer and change it for your needs.
There is also a search function in this forum - where you can find a lot of threads about different stochastic explorers.
Additional the help function in metastocks gives you more information about the parameter-settings for different functions like Stoch(5,3)

best regards
ts


Joy55  
#3 Posted : Wednesday, June 2, 2010 7:59:07 AM(UTC)
Joy55

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 6/2/2010(UTC)
Posts: 18

Thanks Vienna
I tried in Explorer but I get erros An '(' must immediately follow a function name.
BTW my requirement is when Stoch cross it's mov avg from above a sell signal and vice vera.
Regards.
vienna  
#4 Posted : Wednesday, June 2, 2010 8:33:33 AM(UTC)
vienna

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 12/14/2009(UTC)
Posts: 140
Location: Austria

This error often comes if a space-character is between a function name and the "("
Maybe you can post your code here to see what the error in the formula is..?
Joy55  
#5 Posted : Thursday, June 3, 2010 4:45:06 AM(UTC)
Joy55

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 6/2/2010(UTC)
Posts: 18

After reading some materials about Stochastic I tried following cod-
Col A BUY
Cross(Stoch(%K,%D),(13-8,)5,S)20
Col B SELL
Cross(80,Stoch(%K,%D),(13-8,)5,S)
Filter
Col A OR Col B.
I am getting result as- This Constant is being used incorrectly.
Regards.

mstt  
#6 Posted : Thursday, June 3, 2010 1:49:37 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 Joy55

This might work a little better. Refer to the User Manual for the correct syntax of each function. MetaStock was telling you that you'd placed a constant inappropriately. If you compare the corrected lines of code with your own attempt you'll see that there are several differences. MetaStock will keep reporting an error until all syntax problems are corrected.

{ColA: BUY}
Cross(Mov( Stoch(13,8),5,S),20);

{ColB: SELL}
Cross(80,Mov( Stoch(13,8),5,S));

{Filter}
ColA OR ColB

Roy

Joy55  
#7 Posted : Friday, June 4, 2010 5:28:56 AM(UTC)
Joy55

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 6/2/2010(UTC)
Posts: 18

Thanks mstt,
I copied and paste to my explorer and it works perfectly.
Thank you for your valued help.
Regards.

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.