PureBytes Links
Trading Reference Links
|
Hello All,
I currently have a layout in Metastock which contain 2 windows.
Window 1 contains a modified price oscillator (with 2 lines - a
short-term indicator & a medium-term indicator) and Window 2
contains Price data and a 50 day simple MA.
I would like to write an exploration that selects stocks where ALL 3
lines (the 2 in the price oscillator and the 50day MA) are all
moving in the SAME direction.
The formula "code" I currently have for the price oscillator is as
follows:
sp:=Input("Yellow Line (SL): Short MA (days)",1,50,3);
ip:=Input("Yellow Line (SL): Long MA (days)",5,100,10);
lp:=Input("Light Blue Line (ML): Oscillator MA (days) ",5,100,16);
factor:= 2.43;
sl:= (Mov(CLOSE,sp,S)-Mov(CLOSE,ip,S))/(((((Mov(CLOSE,ip,S)
+factor*Mov(CLOSE,ip,S)
)*0.333)-Mov(CLOSE,ip,S))/100));
ml:= Mov(sl,lp,S);
ml;
sl;
The code for the MA is:
Pd1:=Input("Moving Average Period (days)",1,100,50);
MA:=Mov(CLOSE,Pd1,SIMPLE);
MA;
Can anyone offer any help on how I can write such an Exploration?
Many Thanks,
Chorlton
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|