log in     sign up for free
 
You can't make money if you're not willing to lose. It's like breathing in, but not being willing to breathe out. Various types of exits will help you do this (i.e., breathe fully), including trailing stops and the percent retracement stop.
Van K. Tharp
 
 
Home
systems (284)
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Time and Money Indicators

Formula for: TradeStation

indicator


 

 

Views:  1536

Added: August 06, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: TradeStation, indicator
 
Your Ad Here
The EasyLanguage code presented here reproduces the time and money charts described in Stuart Belknap's May 2003 article in STOCKS & COMMODITIES.
The time and money chart displays a simple moving average and six volatility bands around price, as defined in the article. Since TradeStation can show a maximum of four plots in a single indicator, we broke the code into two pieces: a ChanLinesHi indicator and a ChanLinesLo indicator.

Also displayed is the code for Belknap's volatility index as discussed in the article, and finally, the stochastic momentum indicator.

The code will also be available for download from the EasyLanguage Exchange on TradestationWorld.com at https://www.tradestationworld.com/discussions/default.asp?Group=8.

--Ian MacAuslan
EasyLanguage Specialist , TradeStation Securities, Inc.
A subsidiary of TradeStation Group, Inc. www.TradeStationWorld.com

 

 



Code:

Type : Indicator, Name : T&M - Volatility Indicator

{ "T&M - Volatility Indicator"
from "Time and Money Charts" by Stuart Belknap }

inputs:
Period( 25 ) ;

variables:
yom( 0 ),
avyom( 0 ),
varyyom( 0 ),
som( 0 ),
sigom( 0 ),
HalfPeriod( 0 ) ;

HalfPeriod = Period /2 ;
yom = 100 * (Close - Average( Close, Period ) /
Average( Close, Period ) );
avyom = Average( yom, 50 ) ;
varyyom = Average( yom*yom, 50 ) - ( avyom*avyom ) ;
som = squareroot( varyyom[ -HalfPeriod ] ) ;
sigom = Average( som, Period ) ;
plot1( sigom, "som" ) ;







Type : Indicator, Name : T&M - Stochastic Momentum Indicator

{ "T&M ? Stochastic Momentum Indicator"
from "Time and Money Charts" by Stuart Belknap }

inputs:
Length( 12),
Smooth1( 25 ),
Smooth2( 2 ) ;

value1 = 100 * ( XAverage( XAverage( Close - (.5 *
( Highest( High, Length ) + Lowest( Low, Length ) ) ),
Smooth1), Smooth2) /
(.5 * XAverage( XAverage( Highest( High, Length )-
Lowest( Low, Length ), Smooth1 ), Smooth2 ) ) ) ;

plot1( value1, "StochMom") ;
plot2( Average( value1, Smooth1 ), "SM Avg" ) ;
plot3( 50, "+50" ) ;
plot4( -50, "-50" ) ;








Type : Indicator, Name : T&M - ChanLinesHi Indicator

{ "T&M - ChanLinesHi Indicator" from "Time and Money Charts" by Stuart Belknap
Plots the minor term average and the three upper channel lines }

inputs:
Period( 25 ) ;

variables:
Arm( 0 ),
Level1( 0 ),
Level2( 0 ),
Level3( 0 ) ;

Arm = Average( C, Period ) ;
Level1 = (1 + (1.0 * 5/100 ) ) * Arm ;
Level2 = (1 + (2.0 * 5/100 ) ) * Arm ;
Level3 = (1 + (3.0 * 5/100 ) ) * Arm ;

plot1( Level1, "+L1" ) ;
plot2( Level2, "+L2" ) ;
plot3( Level3, "+L3" ) ;
plot4( Arm, "Arm" ) ;





Type : Indicator, Name : T&M - ChanLinesLo Indicator

{ "T&M - ChanLinesLo" Indicator" from "Time and Money Charts" by Stuart Belknap
Plots the minor term average and the three lower channel lines }

inputs:
Period( 25 ) ;

variables:
Arm( 0 ),
Level1( 0 ),
Level2( 0 ),
Level3( 0 ) ;

Arm = Average( C, Period ) ;
Level1 = (1 - (1.0 * 5/100 ) ) * Arm ;
Level2 = (1 - (2.0 * 5/100 ) ) * Arm ;
Level3 = (1 - (3.0 * 5/100 ) ) * Arm ;

plot1( Level1, "-L1" ) ;
plot2( Level2, "-L2" ) ;
plot3( Level3, "-L3" ) ;
plot4( Arm, " Arm " ) ;


 






Author: Stuart Belknap
Source: http://www.traders.com

 

View similar (indicator for TradeStation):

## Retr Indicator
Bond Futures LR Surfing Indicator
Dunn's Density Indicator II
VIDYA Variation
Point of Balance Oscillator
Volatility Quality Index
Swing Trader Trendline
ZigZag
Donchian Channel
CC_Counter Indicator
...
 
 
all formulas for TradeStation
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012