log in     sign up for free
 
I had to learn discipline and money management. I decided that I was going to become very disciplined and businesslike about my trading.
Paul Tudor Jones
 
 
Home
systems (284)
 
Special offer: buy AmiBroker and EOD+Real-Time 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

TrendArea Indicator

Formula for: TradeStation

indicator


 

 

Views:  1586

Added: August 13, 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


Code:

Type : Indicator, Name : TrendArea Indicator

{ TrendArea Indicator WAV 9/15/04 }

inputs: ThresholdArea(1500);

vars: BarCount(0),SlowMA(0),FastMA(0),
color(0),area(0);

SlowMA = average(close,15);
FastMA = average(close,5);

{ see if we have a new possible trend starting }
if FastMA crosses above SlowMA or
FastMA crosses below SlowMA then
begin
BarCount = 0;
area = 0;
end;

{ increment BarCount +1 if FastMA above SlowMA...
decrement BarCount -1 if FastMA below SlowMA}
BarCount = IFF(FastMA > SlowMA,BarCount + 1,BarCount);
BarCount = IFF(FastMA < SlowMA,BarCount - 1,BarCount);

{ multiply each individual area by its barcount }
area = area + AbsValue(BarCount) * (FastMA - SlowMA);

color = IFF(BarCount > 0,green,cyan);
color = IFF(BarCount < 0,red,color);

plot1(area,"Area",color);
plot2(0,"zero line");
plot3(ThresholdArea,"+Thresh");
plot4(-ThresholdArea,"-Thresh");


 





Source: https://www.tradestation.com

 

View similar (indicator for TradeStation):

Trend Continuation Factor
Measure Cycle Period
Pretty Weird Late Night Stuff
Klinger Volume Oscillator
HI LO Activator
Dunn's Density Indicator II
Better Bollinger Bands
Bull and Bear Balance Indicator
Keltner Price
Quarterly Pivots
...
 
 
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