[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: TRIANGLE pattern Indicator]



PureBytes Links

Trading Reference Links

For those that missed it the first time, here is a re-post of the
"triangle" indicator.

Walt Downs
CIS Trading
Message-ID: <3482FE02.34CC@xxxxxxxxxxxx>
Date: Mon, 01 Dec 1997 13:12:18 -0500
From: Walt Downs <knight@xxxxxxxxxxxx>
Reply-To: knight@xxxxxxxxxxxx
Organization: Commodity InfoSystems <http://www.cistrader.com>
X-Mailer: Mozilla 3.0 (Win95; U)
MIME-Version: 1.0
To: omega-list@xxxxxxxxxx
Subject: TRIANGLE pattern Indicator
Content-Type: multipart/mixed; boundary="------------36D954B477D6"

Omega list,

Many people were interested in the triangle pattern indicator, so 
here it is. Everyone feel free to chop up the code and make it better
if you see a simpler way. :)

I have included the "text" version of the code, as well as an .ELA
file. Have fun.

Walt Downs
CIS Trading
http://cistrader.com

**************************************************************
Triangle Function code starts Here....Function Name: Triangle
**************************************************************

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;

********************************************************************
Triangle Indicator Code starts here........Indicator Name: Triangle
********************************************************************

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;

{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}

Attachment Converted: "c:\eudora\attach\Triangle.ela"