| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Triangle Pattern Indicator Code Not Working Here's the code, indicator's at the bottom, function at the top: Triangle Pattern Indicator by Walt Downs 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. Type : Function, Name : Triangle Pattern Indicator input: OccurH1(numericsimple),Oc curH2(numericsimple),Occu rL1(numericsimple), OccurL2(numericsimple),Pr iceH1(numericseries),Pric eH2(numericseries), PriceL1(numericseries),Pr iceL2(numericseries),Stre nH(numericsimple), StrenL(numericsimple),Len (numericsimple); value1 = SwingHighBar(OccurH1,Pric eH1,StrenH,Len); value2 = SwingHighBar(OccurH2,Pric eH2,StrenH,Len); value3 = SwingLowBar(OccurL1,Price L1,StrenL,Len); value4 = SwingLowBar(OccurL2,Price L2,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,S trenH,StrenL,Len) = true then plot1(10,"TriFinder") else plot1(0,"TriFinder"); if Triangle(OccurH1,OccurH2, OccurL1,OccurL2,PriceH1,P riceH2, PriceL1,PriceL2,StrenH,St renL,Len) = true then Alert = true; | ||
| |
|
| | #2 | ||
![]() | Re: Triangle Pattern Indicator Code Not Working | ||
| |
|
| | #3 | ||
![]() | Re: Triangle Pattern Indicator Code Not Working It will probably say the same thing for false once I fix true. What Arithmetic (numeric) expression should I use instead of true or false near the end of the function code? Thanks. Curtis | ||
| |
|
| | #4 | ||
![]() | Re: Triangle Pattern Indicator Code Not Working When you set up the new function, TS would ask you for the return type. Select TrueFalse. | ||
| |
|
| | #5 | ||
![]() | Re: Triangle Pattern Indicator Code Not Working Curtis | ||
| |
|
| | #6 | ||
![]() | Re: Triangle Pattern Indicator Code Not Working Quote:
| ||
| |
|
| | #7 | ||
![]() | Re: Triangle Pattern Indicator Code Not Working Curtis | ||
| |
|
| | #8 | ||
![]() | Re: Triangle Pattern Indicator Code Not Working Quote:
(another term for verify is "compile"). 2. please first delete the "Triangle" function from your computer. The function needs to be set to TrueFalse. This will be done automatically when you import from ELS. I have imported the above codes to MultiCharts and they compile with no problem. | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Triangle patterns | raven4ns | Technical Analysis | 3 | 08-25-2009 10:54 PM |
| Looking to Enhance Current *working* Trading Methodology | Susana | E-mini Futures Trading Laboratory | 36 | 01-05-2009 11:58 AM |
| NZD/USD Symmetrical Triangle | DannyBly | Forex Trading Laboratory | 0 | 07-07-2008 03:14 PM |
| Something that's been working | TinGull | Trading Psychology | 9 | 03-06-2007 04:49 AM |