Traders' Tips from TASC Magazine
Boosting Profitability - the AIM Indicator
Lawrence Chan and Louis Lin's article, "Boosting Profitability," includes the Neoticker code for their AIM indicator. The MetaStock code is listed below. This formula uses the Security Data function which is only available in MetaStock version 8.01 or later;
or any versions of MetaStock Professional.
To enter this indicator into MetaStock:
- In the Tools menu, select Indicator Builder.
- Click New to open the Indicator Editor for a new indicator.
- Type the name of the formula.
- Click in the larger window and type in the formula.
Name: AIM
Formula:
x:=Input("Momentum Periods",1,200,10);
(Security("ONLINE:AA", Mo(x)>100))+
(Security("ONLINE:AXP", Mo(x)>100))+
(Security("ONLINE:BA", Mo(x)>100))+
(Security("ONLINE:C", Mo(x)>100))+
(Security("ONLINE:CAT", Mo(x)>100))+
(Security("ONLINE:DD", Mo(x)>100))+
(Security("ONLINE:DIS", Mo(x)>100))+
(Security("ONLINE:EK", Mo(x)>100))+
(Security("ONLINE:GE", Mo(x)>100))+
(Security("ONLINE:GM", Mo(x)>100))+
(Security("ONLINE:HD", Mo(x)>100))+
(Security("ONLINE:HON", Mo(x)>100))+
(Security("ONLINE:HPQ", Mo(x)>100))+
(Security("ONLINE:IBM", Mo(x)>100))+
(Security("ONLINE:INTC", Mo(x)>100))+
(Security("ONLINE:IP", Mo(x)>100))+
(Security("ONLINE:JNJ", Mo(x)>100))+
(Security("ONLINE:JPM", Mo(x)>100))+
(Security("ONLINE:KO", Mo(x)>100))+
(Security("ONLINE:MCD", Mo(x)>100))+
(Security("ONLINE:MMM", Mo(x)>100))+
(Security("ONLINE:MO", Mo(x)>100))+
(Security("ONLINE:MRK", Mo(x)>100))+
(Security("ONLINE:MSFT", Mo(x)>100))+
(Security("ONLINE:PG", Mo(x)>100))+
(Security("ONLINE:SBC", Mo(x)>100))+
(Security("ONLINE:T", Mo(x)>100))+
(Security("ONLINE:UTX", Mo(x)>100))+
(Security("ONLINE:WMT", Mo(x)>100))+
(Security("ONLINE:XOM", Mo(x)>100))
The formula is written to use online data. It can be modified to use data stored locally by replacing the text ONLINE: with the path to the local data. For example, if the local data was stored in the folder C:\ MetaStock Data \ Dow 30, the second line of the formula would look like this:
(Security("C:\ MetaStock Data \ Dow 30\AA", Mo(x)>0))+
The same change would be made to all the other lines which start with the word security. Please note that the path entered must be correct or the formula will return errors. Also, since custom indicators are limited to 2500 characters, there is a limit to the number of securities this indicator can reference. This limit will vary based on the length of the path specified for the security's data files. Using a short path or online data will allow for more securities to be used.
The system test presented in the article can be created with the following formulas:
Buy Order:
pi:= Fml( "AIM");
Ref(Sum(pi<Ref(pi,-1),2)=2,-1) AND
(pi>Ref(pi,-1)) AND
((pi-Ref(pi,-1))<5) AND
(pi<20)
Sell Order:
pi:= Fml( "AIM");
Ref(Sum(pi>Ref(pi,-1),2)=2,-1) AND
(pi<Ref(pi,-1)) AND
((Ref(pi,-1)-pi)<5) AND
(pi<20)
William Golson
Equis International
Contents
- Affine transformation
- Anticipating Moving Average Crossovers
- At Last! A Trend-Friendly Oscillator
- Average True Range or Standard Deviation
- Balance of Market Power
- Between Price and Volume
- Bollinger Band Targets
- BONUS ISSUE: Mutual Fund Screen
- Boosting Profitability - the AIM Indicator
- Breakout_Range2
- Bridging the Gap, Linking Point & Figure and Bar Charts
- Buff Up Your Moving Averages
- Bull and Bear Balance Indicator
- Candlestick Filtering
- Coding Candlesticks (II)
- Confirming the Price Trend
- Creating Multi-Colored Indicators in MetaStock
- Darvas-Style Trading and Something Darvas
- Deviation Oscillator
- Directional Breakout
- Ehlers Filters
- Elastic Volume Weighted Moving Average
- Finding Key Reversals
- Fisher Transform
- FVE - %b
- FVE - lin reg slope
- FVE - Storz's divergence
- FVE w/ linear regression slope
- High Low Strategy
- High Tech Mesa Adaptive Moving Averages
- Hilbert Indicators Tell You When to Trade
- Holding Overnight Positions
- Hot Zones
- How Smooth is Your Data Smoother
- Ichimoku Charts
- Index of Chart Sentiment
- Laguerre Filter
- Laguerre RSI
- MACD of Relative Strength
- Moving Average Crossovers
- Moving Average: Long on Talk, Sort on Action
- Normalization
- Now's The Time To Trade Crude
- Pivot point Strategy
- Profit with ETFs
- Quicken Your Averages
- Red-Green Strategy
- Refining the Hilbert Indicator
- Regularization
- Relative Performance Charting
- RSI Bands
- Squelch Those Whipsaws
- sRSI - Original
- sRSI - Using Wilders
- Stochastics
- Tandem Studies on Market Movement
- Targeting Your Pattern
- TC 2000 Scans
- The Average Peak Excursion
- The Cocked Gun Revisited
- The Inverse Fisher Transform
- The Self-Adjusting RSI
- The Truth about Volatility
- The Wilson Relative Price Channel
- Thrust Oscillator
- Trade Against the Gap
- Trade Into the Gap
- Trade the Swing Price
- Trend Continuation Factor
- Trend Quality Indicator
- Trend Trigger Factor
- TrendIV & Volume - Buy Signal
- TrendIV & Volume - Sell Signal
- Triggering Your Trading System
- Using Money Flow to Stay with the Trend
- Using Volume to Detect Shifts In Power
- Volatility System
- VWAP for Support and Resistance
- When and When not to Trade