Traderji.com - Discussion forum for Stocks Commodities & Forex

Help Needed formula For Price Crossover Moving Average

Discuss Help Needed formula For Price Crossover Moving Average at the MetaStock within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Dear Jenious, I am new to Metastock. I like to get Formula for Below Condition. ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 10th October 2008, 09:08 PM
Member
 
Join Date: Oct 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
V.V. is on a distinguished road
Reputation: 11
Default Help Needed formula For Price Crossover Moving Average

Dear Jenious,
I am new to Metastock. I like to get Formula for Below Condition. Please Help Me.

Condition :
Buy Signal:-
i) I want create Buy Signal "When Moving average 50 Crossover the price & After the Price go above ten points"

[ Please Assume If Nifty Price is 3600. Movingaverage 50 is now crossover the price=3600, after then Nifty go up to 3610 now I want show Buy Signal in 3610. ]

I USE HERE ONLY ONE MOVING AVERAGE.

ii) I want create Sell Signal "When Moving average 50 Crossover the price & After the Price go Below ten points"

[ Please Assume If Nifty Price is 3600. Movingaverage 50 is now crossover the price=3600, after then Nifty go Down to 3590 now I want show Sell Signal in 3590. ]


I am waiting for yours reply.

Regards
V.V.
Reply With Quote
Sponsored Links
  #2  
Old 11th October 2008, 02:33 AM
Member
 
Join Date: Jan 2007
Posts: 327
Thanks: 103
Thanked 240 Times in 93 Posts
AW10 is a jewel in the roughAW10 is a jewel in the roughAW10 is a jewel in the rough
Reputation: 266
Default Re: Help Needed formula For Price Crossover Moving Average

VV,

I believe in "Teach a man fishing .." so giving you some pointers here.
Goto Metastock "Enhanced System Tester" ($ icon on panel). There is a sytem "Equis - Moving Average Crossovers" already provided for Metastock.
This generates buy sell signal, based on crossover of 2 moving averages.
Please play around with this. Add addition condition to see that closing price is > 10 from moving average value etc..
and you will have the new system with you..

Happy Trading.
Reply With Quote
  #3  
Old 11th October 2008, 09:46 AM
Member
 
Join Date: Oct 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
V.V. is on a distinguished road
Reputation: 11
Default Re: Help Needed formula For Price Crossover Moving Average

Dear Sir,
Thanks For Your Great Reply. I viewed "Enhanced System Tester" in metastock, after your command. But I couldn't Understand, B'cause I am new to this. Here I want Buy & Sell Signal Crossover only 1 Moving Average (Ma,50, S) . So can you help to give a formula for this condition? .

Thanks & regards
V.V.


Quote:
Originally Posted by AW10 View Post
VV,

I believe in "Teach a man fishing .." so giving you some pointers here.
Goto Metastock "Enhanced System Tester" ($ icon on panel). There is a sytem "Equis - Moving Average Crossovers" already provided for Metastock.
This generates buy sell signal, based on crossover of 2 moving averages.
Please play around with this. Add addition condition to see that closing price is > 10 from moving average value etc..
and you will have the new system with you..

Happy Trading.
Reply With Quote
  #4  
Old 12th October 2008, 02:57 AM
Member
 
Join Date: Jan 2007
Posts: 327
Thanks: 103
Thanked 240 Times in 93 Posts
AW10 is a jewel in the roughAW10 is a jewel in the roughAW10 is a jewel in the rough
Reputation: 266
Default Re: Help Needed formula For Price Crossover Moving Average

Please look at the help on "System Tester Tutorial" topic.
This helps has 7 steps to design a new system. And in step 2, you can find that they are using Moving average crossover..

Happy Trading.
Reply With Quote
  #5  
Old 12th October 2008, 01:11 PM
Member
 
Join Date: Sep 2004
Posts: 1,532
Thanks: 622
Thanked 921 Times in 385 Posts
rkkarnani is a splendid one to beholdrkkarnani is a splendid one to beholdrkkarnani is a splendid one to beholdrkkarnani is a splendid one to beholdrkkarnani is a splendid one to beholdrkkarnani is a splendid one to beholdrkkarnani is a splendid one to beholdrkkarnani is a splendid one to behold
Reputation: 982
Default Re: Help Needed formula For Price Crossover Moving Average

Am no expert in coding, but this may help you :

Open Meta stock
Click on Expert Advisor
Click New
Type Name :50SMAcrossover or whatever
Click on Highlight Tab
Click New
Name it : Buy
Type in Condition Window :
a:=Mov(C,50,S);
H >= a+10

Choose colour Blue or green whatever
Click : OK

Again click New
Name it Sell
Type in condition window :
a:=Mov(C,50,S);
L <= a-10

Choose colour : Red
Click : OK

Click OK again of the Main Window of the Expert Advisor

Now when you apply this Advisor on Nifty, the bars shall Turn Blue as and when the High of a Bar is 10 points above the 50 Period Simple moving average!!! And the bars shall be red when the Low is 10 points lower than 50 period SMA!!!
You may add Symbols etc in Symbol Tab under Main expert advisor window!!

Praying that it works!!! I tried it and to me it seems to be working alright!!! Give it a try!!! You can always delete it if it doesnt work!!!!
Reply With Quote
  #6  
Old 12th October 2008, 03:42 PM
Member
 
Join Date: Oct 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
V.V. is on a distinguished road
Reputation: 11
Default Re: Help Needed formula For Price Crossover Moving Average

Dear rkkarnani sir,

Thanks Thanks Thanks a Lot. I Tried Your Method.Please Find the Attachment File. I was Expecting for this . Its Good. But I like to Get Buy, Sell & Cover Signal for this below condition.

================================================== ========
Long :-
======
1) MA Crossover Above the Price (AND) After Price goto + 10 Points ===> Buy Signal
2) After I got Buy signal Price + 20 Points (Profit Booking) ===> cover Signal

Stoploss (Exit Long) :-
=================
1st condition true but second condition false then I should show Long Cover (Stoploss) Signal.
Condition : MA Crossover Below the Price -10 Points === Exit Long Signal

Short :-
======
1) MA Crossover Below the Price (AND) Price goto -10 Points ===> Sell Signal
2) After I got sell signal Price + 20 Points (profit Booking) ===> cover Signal

Stoploss (Exit Short) :-
=================
1st condition true but second condition false then I should show Short Cover (Stoploss) Signal.
Condition : MA Crossover Above the Price (AND) Price goto + 10 Points ===> Exit Short Signal
================================================== ========



Can you help to Create Expert fot this Condition ? Once again Thanks for your Valuble Information .


Regards,
V.V.
Attached Files
File Type: zip Nifty 5 Min.zip (17.3 KB, 24 views)

Last edited by V.V.; 12th October 2008 at 09:22 PM.
Reply With Quote
  #7  
Old 12th October 2008, 09:26 PM
Member
 
Join Date: Oct 2008
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
V.V. is on a distinguished road
Reputation: 11
Default Re: Help Needed formula For Price Crossover Moving Average

Quote:
Originally Posted by rkkarnani View Post
Am no expert in coding, but this may help you :

Open Meta stock
Click on Expert Advisor
Click New
Type Name :50SMAcrossover or whatever
Click on Highlight Tab
Click New
Name it : Buy
Type in Condition Window :
a:=Mov(C,50,S);
H >= a+10

Choose colour Blue or green whatever
Click : OK

Again click New
Name it Sell
Type in condition window :
a:=Mov(C,50,S);
L <= a-10

Choose colour : Red
Click : OK

Click OK again of the Main Window of the Expert Advisor

Now when you apply this Advisor on Nifty, the bars shall Turn Blue as and when the High of a Bar is 10 points above the 50 Period Simple moving average!!! And the bars shall be red when the Low is 10 points lower than 50 period SMA!!!
You may add Symbols etc in Symbol Tab under Main expert advisor window!!

Praying that it works!!! I tried it and to me it seems to be working alright!!! Give it a try!!! You can always delete it if it doesnt work!!!!

Dear rkkarnani Sir,


Can you give Amibroker AFL using with Above your formula ?


Regards,
V.V.
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


All times are GMT +5.5. The time now is 04:45 PM.

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