Trading Strategies from Active Trader Magazine

MAMA-FAMA

The MAMA and FAMA indicators cannot be calculated correctly using just the MetaStock formula language. Therefore, an external DLL was created to calculate these indicators. Only MetaStock 7.0 and later can use external DLL files. If you do not have this version, an upgrade will be required to use the formulas below.

Save the file, MAMA.DLL, in the "External Function DLLs" sub-folder inside the MetaStock Folder. Then, the below formulas can be entered into the system tester.

Enter Long:
fa:=ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
ma:=ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
Cross(ma,fa)

Close Long:
fa:=ExtFml("MAMA.FAMA", (H+L)/2, 0.5, 0.05);
ma:=ExtFml("MAMA.MAMA", (H+L)/2, 0.5, 0.05);
Cross(fa,ma)


Sign in to MetaStock.com