Traderji.com - Discussion forum for Stocks Commodities & Forex

Metastock code

Discuss Metastock code at the MetaStock within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Dear Members, I will be grateful if the following code is explained in the trading ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > MetaStock

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 27th February 2007, 09:24 PM
Member
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
ume68 is on a distinguished road
Reputation: 20
Default Metastock code

Dear Members,

I will be grateful if the following code is explained in the trading terms as i am a novice in programming:

Buy=
Cross((Mov((RSI(12)-LLV(RSI(12),12)) / (HHV(RSI(12),12)- (LLV(RSI(12),12))),3,E)*100),8)
sell=
Cross(20,(Mov((RSI(14) -LLV(RSI(14),14)) / (HHV(RSI(14),14) - (LLV(RSI(14),14))),3,E)*100))

Regards
Reply With Quote
  #2  
Old 27th February 2007, 10:00 PM
Moderator
 
Join Date: Jul 2005
Location: kuwait
Posts: 1,413
Blog Entries: 5
Thanks: 30
Thanked 348 Times in 64 Posts
karthikmarar is just really nicekarthikmarar is just really nicekarthikmarar is just really nicekarthikmarar is just really nicekarthikmarar is just really nice
Reputation: 429
Default Re: Metastock code

Hi

It is nothing but the stochastic of RSI. The period used is 12. However there seems to be a typo here . I think 8 should read as 80.

However strangely the buy and sell conditions also seems to different from the standand. Here the buy signal is when the Stochastic of RSI (SOR) crosses above 80 and sell when it crosses below 20. The standard way is to buy when the SOR cross above 20 from below and sell when it crosses down below 80. If we wait for the signal to cross above 80 then it will be too late. because of this the entry is delayed. It seems to catch some nice moves but can create havoc ina sideways market.

regards

karthik
Reply With Quote
  #3  
Old 28th February 2007, 10:16 AM
Member
 
Join Date: Jul 2006
Posts: 252
Thanks: 0
Thanked 0 Times in 0 Posts
rkgoyal_98 is on a distinguished road
Reputation: 18
Default Re: Metastock code

Hello,


I am novice so this is just a thought.
This may be for Stochastic Pop where in Buy is when indicator just go above 80 to cash on momentum.

Rajeev
Reply With Quote
  #4  
Old 28th February 2007, 09:07 PM
Member
 
Join Date: Sep 2006
Location: Chennai
Posts: 913
Thanks: 6
Thanked 13 Times in 9 Posts
oxusmorouz will become famous soon enough
Reputation: 89
Default Re: Metastock code

Quote:
Originally Posted by ume68 View Post
Dear Members,

I will be grateful if the following code is explained in the trading terms as i am a novice in programming:

Buy=
Cross((Mov((RSI(12)-LLV(RSI(12),12)) / (HHV(RSI(12),12)- (LLV(RSI(12),12))),3,E)*100),8)
sell=
Cross(20,(Mov((RSI(14) -LLV(RSI(14),14)) / (HHV(RSI(14),14) - (LLV(RSI(14),14))),3,E)*100))

Regards
For buy:
A = 12 day RSI
B = 12 day low of "A"
C = 12 day high of "A"

It is made into an oscillator similar to stochastic but uses RSI as time series instead of price.
Let this be called "D"

D = 100 * (A - B)/(C - B)

F = 3 day exponential moving average of "D"
F here is the smoothed value which is created to eliminate voilent and frequent whipsaws.

Long Entry:- Buy when F crosses value 8 from below.

Repeat the same exercise for sell with the only exception being a 14 day RSI instead of 12.
Short Entry:- Short when F crosses value 20 from below

Quote:
It seems to catch some nice moves but can create havoc ina sideways market.

regards

karthik
Doesn't it always? []
Reply With Quote
  #5  
Old 28th February 2007, 10:30 PM
Member
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
ume68 is on a distinguished road
Reputation: 20
Default Re: Metastock code

Dear Senior members,

Thanks a lot for the explanation. It would be nice if i am also enlighten as to how to scan the whole stock in metastock for the buy and sell conditions as envisaged in the formula.It would be a great help.

Regards
Reply With Quote
  #6  
Old 1st March 2007, 07:52 AM
Member
 
Join Date: Sep 2006
Location: Chennai
Posts: 913
Thanks: 6
Thanked 13 Times in 9 Posts
oxusmorouz will become famous soon enough
Reputation: 89
Default Re: Metastock code

Tools ---> Explorer ---> New

Paste "Buy" input in coloumn A. Paste the "Sell" input in coloumn B.
Go to filter. Enter "ColA or ColB"

Please go through the metastock manual for further reference
Reply With Quote
Sponsored Links

Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads for: Metastock code
Thread Thread Starter Forum Replies Last Post
Metastock Code for Impluse system Ferdous MetaStock 2 6th January 2007 11:59 AM
What is the colour code? munchikana Your Feedback & Suggestions 7 3rd June 2006 01:21 AM
Code conversion (Need Help) dalalji Software 3 23rd December 2005 06:29 PM
need help for explorer code cmlee MetaStock 1 7th March 2005 08:04 AM


All times are GMT +5.5. The time now is 11:04 AM.

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com