Customer Service
Technical Support
Trading Resources
Custom Formula Collection
Formula Primer
MetaStock Forum
MetaStock Monitor Newsletter
MetaStock User Groups
Online User Group
Technical Analysis from A to Z
Traders' Tips from TASC Magazine
Trading Strategies from Active Trader Magazine
Online Training

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)

Return to article list

Products Support Events Community Partners About