StockFetcher Forums · Filter Exchange · MACD oscillator<< >>Post Follow-up
shaikhhali
42 posts
msg #42313
Ignore shaikhhali
3/22/2006 4:56:20 AM

Hi every 1
did you know how to make a filter for the MACD oscillator ?



nikoschopen
2,824 posts
msg #42322
Ignore nikoschopen
3/22/2006 9:45:56 AM

If I'm not mistaken, ure question should have read:

Did you know that SF currently supports MACD oscillator? Type "MACD Fast Line(12,26) crossed above the MACD Slow Line(12,26)"

For more info on MACD and the like, consult the "Indicators & Measures" section [http://www.stockfetcher.com/stockdb/fetcher?p=forum&fid=1006&qrid=1143038225]


shaikhhali
42 posts
msg #42422
Ignore shaikhhali
3/24/2006 2:34:03 PM

Thanks nikoschopen for your help
I was confused with the terminology which is used by SF
Anyway thanks again




shaikhhali
42 posts
msg #42423
Ignore shaikhhali
3/24/2006 2:55:36 PM

What abou MACD Composite?



nikoschopen
2,824 posts
msg #42425
Ignore nikoschopen
3/24/2006 4:07:14 PM

MACD Composite isn't currently supported by SF, but you can prolly code it ureself. Here's the MetaStock formula for MACD-C that I found on the net.
_________________________

{ MACD or Histogram based on multiple EMA's }
{ Incorporating automatic overbought/oversold
levels }
{ ©Copyright 2005 Jose Silva }
{ http://www.metastocktools.com }

{ User inputs }
plot1:=Input("[1]MACD, [2]Histogram",1,2,1);
plot2:=Input("[1]MACD/Hist, [2]Normalized",
1,2,1);
pds:=Input("Signal/Histogram EMA periods",
2,260,21);

{ Composite-EMA MACD/Histogram }
ema1:=
Mov(C,3,E)
+Mov(C,5,E)
+Mov(C,8,E)
+Mov(C,11,E)
+Mov(C,14,E)
+Mov(C,17,E);
ema2:=
Mov(C,30,E)
+Mov(C,35,E)
+Mov(C,40,E)
+Mov(C,45,E)
+Mov(C,50,E)
+Mov(C,56,E);
emaComp:=ema1-ema2;
signal:=Mov(emaComp,pds,E);
hist:=emaComp-signal;

{ Choose MACD or Histogram }
MacdH:=If(plot1=1,emaComp,hist);

{ Normalized MACD/Histogram }
normMod:=Highest(MacdH)-Lowest(MacdH);
normMod:=If(normMod=0,.000001,normMod);
MacdHnorm:=
((MacdH-Lowest(MacdH))/normMod-.5)*200;

{ Choose standard/normalized }
MacdComp:=If(plot2=1,MacdH,MacdHnorm);
signal:=Mov(MacdComp,pds,E);

{ MACD/Hist average }
avg:=Cum(MacdComp)/Cum(IsDefined(MacdComp));

{ MACD/Hist auto boundaries }
pk:=Ref(MacdComp,-1)>MacdComp
AND Ref(MacdComp,-1)>Ref(MacdComp,-2)
AND Ref(MacdComp,-1)>avg;
pkVal:=ValueWhen(1,pk,Ref(MacdComp,-1));
tr:=Ref(MacdComp,-1)<MacdComp
AND Ref(MacdComp,-1)<Ref(MacdComp,-2)
AND Ref(MacdComp,-1)<avg;
trVal:=ValueWhen(1,tr,Ref(MacdComp,-1));
Obought:=Cum(pkVal)/Cum(IsDefined(pkVal));
Osold:=Cum(trVal)/Cum(IsDefined(trVal));

{ Plot in own window }
Obought; { Red }
avg; { Grey }
Osold; { Blue }
If(plot1=1,signal,avg); { Green }
MacdComp { Yellow }


shaikhhali
42 posts
msg #42451
Ignore shaikhhali
3/25/2006 2:10:37 AM

i found the MACD composite too , but unfortunately I have little experience of SF .
I am still at the learning stage. However, i will try it and see if i can come up with macd composite filter using SF..
This will be a good exercise for me, I guess.
I might need your help, so do not go away.



StockFetcher Forums · Filter Exchange · MACD oscillator<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.