log in     sign up for free
 
My percentage of winners is only about 50/50, because I cut my losers very quickly. The maximum loss I allow is 7 percent, and usually I am out of a losing stock a lot quicker. I make my money on the few stocks a year that double and triple in price.
David Ryan
 
 
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

Triangle Pattern Indicator

Formula for: TradeStation

indicator


 

 

Views:  3766

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
Origin: omega-list
Written by: Walt Downs
Date found: 1 dec 97

Indicator calculates triangles based on SwingHighs and lows of a 10 day range, and with a swing strength of "1". Larger
triangles can be calculated by increasing the strength and/or HighestBar/LowestBar range settings. The indicator plots
a simple "spike" graph, alerting the trader to the presence of a triangle. The trader can then apply logical trendlines to establish break-out points.

 

 



Code:

Type : Function, Name : Triangle Pattern Indicator

input:
OccurH1(numericsimple),OccurH2(numericsimple),OccurL1(numericsimple),
OccurL2(numericsimple),PriceH1(numericseries),PriceH2(numericseries),
PriceL1(numericseries),PriceL2(numericseries),StrenH(numericsimple),
StrenL(numericsimple),Len(numericsimple);

value1 = SwingHighBar(OccurH1,PriceH1,StrenH,Len);
value2 = SwingHighBar(OccurH2,PriceH2,StrenH,Len);
value3 = SwingLowBar(OccurL1,PriceL1,StrenL,Len);
value4 = SwingLowBar(OccurL2,PriceL2,StrenL,Len);


Condition1 = high of value2 bars ago > high of value1 bars ago;
Condition2 = low of value4 bars ago < low of value3 bars ago;
Condition3 = HighestBar(H,Len) = value2;
Condition4 = LowestBar(low,Len) = value4;

if
Condition1 and
Condition2 and
Condition3 and
Condition4
then Triangle = true
else Triangle = false;





Type : Indicator, Name : Triangle Pattern Indicator

input:
OccurH1(1),
OccurH2(2),
OccurL1(1),
OccurL2(2),
PriceH1(high),
PriceH2(high),
PriceL1(low),
PriceL2(low),
StrenH(1),
StrenL(1),
Len(10);

if
Triangle(OccurH1,OccurH2,OccurL1,OccurL2,PriceH1,
PriceH2,PriceL1,PriceL2,StrenH,StrenL,Len)
= true then plot1(10,"TriFinder")
else plot1(0,"TriFinder");

if
Triangle(OccurH1,OccurH2,OccurL1,OccurL2,PriceH1,PriceH2,
PriceL1,PriceL2,StrenH,StrenL,Len)
= true then Alert = true;


 






Author: Walt Downs
Source: http://home.iae.nl

 

View similar (indicator for TradeStation):

Swing Trader Trendline
R-Squared
Nonlinear Ehlers Filter
Volume Weighted Average Price - SMA
## Retr Indicator
DotDisp
Pivot Bar
Donchian Channel
Seasonal SB
Double Smoothed Exponential Moving Average
...
 
 
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