[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] Moving Average Crossovers



PureBytes Links

Trading Reference Links

Kevin

> Hello, I'm Kevin and I am new to MetaStock and this group. I would
> like to know if someone could please help me with a problem I am
> having trying to write an exploration. Simply...I would like to
> create an exploration with signal that will fire when a 50 period
> moving average of the volume crosses above a 200 period moving
> average of the volume. This is probably quite elementary to most of
> you but as I said I'm just learning and I'm confused about this. Does
> anyone have the code to create this exploration. I would greatly
> appreciate any help getting started.... Thank you


This should do it.

Cross(Mov(V,50,S),Mov(V,200,S));

Place the above code in the filter section, or place it in column A and put "colA" (without 
quotation marks) in the filter section. If you want to put the code in a different column then 
change the filter text accordingly (to match the column where the code is).

When you use "colA" MetaStock assumes you mean "colA=1", so the "=1" part of the expression is 
redundant. You can use "colA=1" for the sake of clarity, but remember that any value in MetaStock 
other than ZERO is treated as a logical TRUE. Zero is the only value treated as a logical FALSE. 
True and false in MetaStock are usually represented by ONE and ZERO, so a "1" appearing in an 
exploration column report signals that the required condition is true for that security on the 
current data bar.

If you want to change the moving averages to exponential, make sure that you set the number of 
periods to about 1000. If you run the exploration with "Use Minimum Records"  the results of your 
crossover will differ from that seen on a chart.


Kind regards

Roy Larsen
www.metastocktips.co.nz






------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/