Metastock Formula

#91
Open Metastock, Click on Tools->Expert Advisor->New and enter whatever name you want to give.

Then Click the Highlights tab -> New -> enter Bullish as name. Under condition add:
Mov(C, 5, E ) > Mov(O, 6, E ), Select colour as Blue. Click Ok.

Then similarly add an another condition under Highlights called Bearish under it add:
Mov(O, 6, E ) > Mov(C, 5, E ), select colour as Red and click ok.


For the BUY and SELL arrows:

Add the following two conditions under Symbol.

BUY

Cross( Mov(C, 5, E ) , Mov(O, 6, E ))

Select the appropriate symbol.

SELL

Cross( Mov(O, 6, E ) , Mov(C, 5, E ))

Select the symbol.

Click ok -> ok.

TO display this expert advisor, open any chart, then right click, select Expert Advisor -> Attach. Select the Expert Advisor you had jus made then click on Ok.
Hi TraderJi,

Could you please advise how can this formula be amended to show buy signal when 5 Day SMA crosses 6 day SMA and sell when its other way around??

Awaiting reply,
Regards
Hardik
 
#92
If you're like most people, even though you've invested in this powerful charting package, you probably don't use MetaStock formula to its full potential. Granted, almost anybody can open a chart and plot some indicators, but for too many this is the extent of their proficiency. Sounds crazy doesn't it? I think so too.
 
#93
Hi,

Can someone please guide me to write a formula to show the below buy/sell signals in Metastock EOD Version 9.

Buy - 6 SMA crosses 20 SMA + 50 SMA (either could be crossed first, buy when both has been crossed/50 and 20 SMA are below 6 SMA)

Sell - 20 SMA crosses either 6 SMA or 50 SMA

[IN OTHER WORDS, BUY EVERY TIME THE 6 SMA IS ABOVE OTHER 2 AND SELL EVERY TIME THE 6 SMA GOES BELOW ANY ONE OF THE TWO]

Help with this request would be greatly appretiated...

Thanks in advance,

Hardik
 
#94
MS Function Help

Hi Fellow traders, I am searching for the function in MS, for eg( MOV avg 13 has crossed above MOV avg 26 and I would MS to return the results even if it has crossed within the past 5 days.. ) I am aware of the ref function but I think if used it gives results X periods ago and not within the x periods or 5 days in the example) can somebody please guide me through this function .. thanks in advance.. :)
 
#95
Re: Point and Figure Signals

"I was amazed by simplicity of P&F chart and ease of identification of trading signals.
I use this in finding the signals.
Hope this helps. I will be happy to share my experience /knowledge on this."
--------------------------------------------------------------------------

I am also using point and figure in Metastock but have been using it only visually. So it is ad-hoc and have been looking to refine this within my Metastock system.

Would you care to guide me on how to use Metastock Explorers/Formulas/Experts to automate the process of uncovering P&F signals?
 
Last edited:

SwamiNathan

Well-Known Member
#96
sundeepgoyal , Metastock does not have an option to use Metastock Explorers/Formulas/Experts to automate the process of uncovering P&F signals.
 

SwamiNathan

Well-Known Member
#97
Hi hardik_b_shah ,

For generating a signal with ease you need latch function. Check out in indicator builder whether you have latch function. Otherwise Login to www.forum.equis.com , go to FILES, download forum DII 200 and paste that in C:\Program Files\Equis\MetaStock\External Function DLLs then you will get that function. After getting that function paste the following codes in a indicator builder and you will get the signal.

ExtFml( "Forum20.Latch", Mov(C,6,S)> Mov(C,20,S) AND Mov(C,6,S)> Mov(C,50,S) ,Mov(C,6,S)< Mov(C,20,S) AND Mov(C,6,S)< Mov(C,50,S) ,Mov(C,6,S)< Mov(C,20,S) AND Mov(C,6,S)< Mov(C,50,S) , Mov(C,6,S)> Mov(C,20,S) AND Mov(C,6,S)> Mov(C,50,S))

{If u cannot login the equis forum, u write to me I will write the codes for u without latch function}
 

SwamiNathan

Well-Known Member
#98
hi vikas2659 ,
We cannot do codings when an indicator is about to cross. Logically moving average(close,expo) 20 shud cross moving average(close,expo) 30 before it crosses moving average(close,expo) 40. So we will write an exploration to find out the securities for which the MA 20 has crossed MA 30. It will guide to find out the securites for which the signal is "about to trigger". The folowing are the codes.

New Exploration
{Copy and paste the following in the Correspnding tabs}
{Column A - this is used to find out "About to buy" securities" - Name the column as ABT BUY}

If(Mov(C,20,E)>Mov(C,30,E),1,0)

{Column B - this is used to find out "About to Sell" securities"}

If(Mov(C,20,E)<Mov(C,30,E),1,0)

{Column Filter - For filtering}

( Mov(C,20,E)>Mov(C,30,E) ) OR (Mov(C,20,E)<Mov(C,30,E))
 
Hi Fellow Traders.. I am testing on a Day trading strategy ( which at least for now seems profitable at the r/r ratio) And I would like to share it with all fellow traders once i Complete the back test, however to make it efficient and fast I am unable to write an exploration formula to test this condition and provide results. The screen shot is posted below.
I would request if anybody can provide me with an exploration formula in metastock which can identify this sudden move within a bar or two. Thanks in Advance

 

Similar threads