Traders' Tips from TASC Magazine
Breakout_Range2
The MetaStock code for the Breakout_Range2, by Mark Vakkur, M.D. is as follows:
For the Custom Indicator
To create the custom indicator select Indicator Builder from the Tools menu, click New and enter the following code:
Name: Breakout_Range2
Formula:
lb:=4;
{ number of periods in look back }
event:=H >
HHV(Ref(H,-1),lb);
If(event AND (Ref(BarsSince(event),-1)>=lb), Ref(BarsSince(event),-1), 0 )
For the System
To create the system, select System Tester from the Tools menu, click New and enter the following code:
Name: Breakout_Range2 System
Enter Long:
lb:=OPT1;
{ number of periods in look back }
event:=H >
HHV(Ref(H,-1),lb);
If(event AND (Ref(BarsSince(event),-1)>=lb),1, 0 )
Stops:
Inactivity:
Positions: Longs
Method: Percent
Minimum Change: 10000
Periods: OPT1
Optimization:
Name: OPT1
Minimum: 2
Maximum: 20
Step: 1
Note: to remove the optimization replace OPT1 in the formula and in the Inactivity stop with your desired look back period.
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