|
|||||||||||||||||||||||||||||||
| Special offer: buy AmiBroker and EOD+Real-Time Data |
|
NOTE: I posted the following to the Omega List back in 1998. This is the SUM TOTAL of my knowledge about Dale Legan's "Confluence" indicator. I do not have ANY further background or understanding about what Dale was trying to accomplish, and Dale has apparently disappeared. If you're interested in this and want more information, you're on your own. Hi O-listers, I'm glad to see that the list seems to be getting back to a few trading discussions. In the hopes of sparking a bit more trading discussion and less bashing, I'm appending some code I've been playing with using Dale Legan's recently-posted Confluence indicator. Thanks for sharing this with us, Dale, and I hope you come through your surgery OK. I've done several things: * I moved the core Confluence computations into a Confluence function. Since the Confluence indicator returned several "states" (bull, bear, yellow, and zero), I modified the return value a bit: -9 to -1 = Bearish, -0.9 to 0.9 = "yellow" (and zero), 1 to 9 = Bullish. The "yellow" range corresponds to the "yellow" values plotted by Dale's indicator, but they're divided by 10. So -0.4 is equivalent to "yellow -4" in Dale's indicator. * I got rid of a bit of extra computation in the function. I didn't try to do a hard-core Pierre-style optimization :-), but I noticed several significant chunks of calculation were being done several times each bar, and I commented them out and replaced them with an intermediate variable. It still calls sine/cosine a dozen times on each bar, which accounts for the bulk of the processing time, but I think it's a bit easier to understand what the code is doing this way. (It also seems to work better -- see below.) For the most part I didn't try to use mnemonic names for these intermediate variables, because I don't understand exactly what the values represent!! * I'm appending a simplified Confluence indicator using the function. * I've also appended a simple Confluence system. This system sets an entry stop above/below the current bar if Confluence goes into bull/bear mode, and similarly sets an exit stop below/above the bar where it exits bull/bear mode. There's also an optional "aggressive" stop mode that tightens the stops if the market moves in your direction; for example, if the high is 1000 and your "Trigger" offset is 2, the initial stop is set at 1002. If the next bar has a high of 997, the stop is tightened to 997+2=999. The system has its MaxBarsBack property set to 150, which works for values of Harmonic up to about 15. If you experiment with large values of Harmonic, you will have to change MaxBarsBack to roughly 10*Harmonic. Interestingly, when I first wrote this system, I ran into a strange MaxBarsBack problem. The Confluence indicator worked just fine with a MaxBarsBack setting of "Auto-Detect." But systems don't have a setting like that -- you have to specify a fixed value. But NO fixed value (up to the maximum of 999) worked for either the system OR the indicator! And I couldn't see anywhere that it was looking back that many bars. Then, when I did the optimization on the Confluence code, the MaxBarsBack problem mysteriously disappeared. Sometimes TradeStation is just spooky... Any ideas what happened? I've appended a sample system report for the system on SPX, using the default parameters. The system actually does pretty well. It probably won't make anyone rich, but I thought some folks might enjoy playing with it. There are some other things you could do with it -- e.g. it might be interesting to change it to look for long opportunities when Confluence hits -9, and short when it hits 9. If I get a chance to throw that together, I'll post it to the list. The ELA code is appended (assuming it makes it through the list's size filters). The source and the ELA are also available in my FTP directory, ftp://ftp.frii.com/pub/fritz . Have fun, To: "'metastock@xxxxxxxxxxxxx'" <metastock@xxxxxxxxxxxxx> Subject: RE: Confluence Indicator (simplified) From: Mark Jurik <mark@xxxxxxxxxxxx> Date: Fri, 7 Apr 2000 19:01:44 -0600 Reply-To: metastock@xxxxxxxxxxxxx Sender: owner-metastock@xxxxxxxxxxxxx The function DerivativeMA, as posted with the following EL code... --------------------------------------------- can be simplified to the following equivalent code... -------------------------------------------- We now see that it simply the current price reduced by the price change that occurred Length-1 bars ago. What is the rationale behind combining these two numbers? Mark Jurik [22059] Code:{ Function: DerivativeMA -- used by Confluence function } Inputs: Price(numeric), Length(Numeric); Type : Function, Name : Confluence Written by Dale Legan <dlegan@xxxxxxxxx> } Input: price(Numeric),Harmonic(Numeric); vars: STL(0),ITL(0),LTL(0),HOFF(0),SOFF(0),IOFF(0),LTOFF(0),Phase(1); {Calculate Lengths} HOFF=intportion(harmonic/2); {3} { Averages } Havg = average(price, Harmonic); {Cycle Momentum} value2 = Savg - Havg[HOFF]; momsig = value2 + value3 + value12; {Momentum Signal Line} value5= ((summation(price,harmonic-1) + derivativema(price,harmonic))/harmonic); value9 = value6 - value5[HOFF]; { harmonic =6 was 5 may use harmonic -1 } { { Sum= HT+ST+IT; {Est in Cyc Estimator/ Cycle Est Err = Sum - Err } {phase detect} Condition2= (Sum > Sum[SOFF] ErrSum = (Sum - Err)*phase; { ERROR OF THE CYCLE} {Trend Catcher} value68=value5; value70 = value68-value69; { EST W Der} TC =value70; {Begin Counting Bars} If ErrSum > 0 then begin If Mom > 0 THEN begin If TC > 0 THEN begin value42= ErrNum + MomNum+TCNum; Type : Indicator, Name : Confluence Input: price(close),Harmonic(10);
all formulas for TradeStation all formulas
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. |
||
|
||
|