OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


  Current location        Thread information  
OmniTrader Professional Forum
OmniLanguage Discussion
Correlation angle System
Last Activity 7/6/2025 3:47 AM
10 replies, 3234 viewings

Jump to page : 1
Now viewing page 1 [25 messages per page]
 
back reply
Printer friendly version

^ Top
Mel

Veteran
10010025
Posts: 235

Joined: 3/18/2006

User Profile
 
Subject : Correlation angle System
Posted : 6/1/2020 11:03 AM
Post #31144

I have turned the correlation angle indicator into a system. You can generate signals form zero line crossing (cycle mode signals) or you can generate start of trend signals, or both, depending on the parameter.

You need to set the period to shorter than the dominant cycle period to get anticipatory signals, a bar or two in advance, eliminating the lag that most cycle trades have. The 14 bar default works well at lea up to a 20 bar domcyc. This is on of the best ways to get start of trend signals I've seen. Not as much lag when you are signaling failure of cycle mode instead of waiting for trend mode to be apparent.
Attached file : eCorrelationAngleSys.txt (3KB - 350 downloads)

^ Top
THOMAS HELGET

Elite
500100
Posts: 610

Joined: 3/22/2006
Location: BALDWINSVILLE, NEW YORK

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/1/2020 1:37 PM
Post #31145 - In reply to #31144

Mel:

Thanks for doing this.

However, I am a little confused by the statement:

"The 14 bar default works well at lea up to a 20 bar domcyc"

Could you please clarify that?

Thanks,

Tom Helget
^ Top
LSJ

Veteran
100252525
Posts: 190

Joined: 7/23/2012
Location: Citrus Springs, FL

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/1/2020 2:02 PM
Post #31146 - In reply to #31144

Mel. Question: in your code there is:
#param "period", 14
#param "cycleOrTrendOrBoth", 1,1,3 'what signals do you want?
#param "Plotbars", 260,0,512"

Should the "cycleOrTrendOrBoth", 1,1,3 be:
"cycleOrTrendOrBoth", 1,2,3?

Thanks for furnishing this. I am giving it a try on my charts today and I think it offers some valuable information.
^ Top
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/1/2020 2:23 PM
Post #31147 - In reply to #31146

Param settings of “1,1,3” mean
1 is default
1 is min slider
3 is max slider

So, “1,2,3” would be a default outside of the slider range.
^ Top
LSJ

Veteran
100252525
Posts: 190

Joined: 7/23/2012
Location: Citrus Springs, FL

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/1/2020 3:50 PM
Post #31148 - In reply to #31144

Thanks. I misinterpreted the line "if cycleOrTrendOrBoth>=2 then" as needing a 2.

Not my strong suit.
^ Top
Mel

Veteran
10010025
Posts: 235

Joined: 3/18/2006

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/1/2020 6:33 PM
Post #31149 - In reply to #31145

Thomas,

The strength of the indicator is that it is much less sensitive to the period than an oscillator would be. Thus, if you are trading a monthly cycle (20 bars), if you set the period to less than that, you overcome the indicator lag and the signals are on time,or as I prefer, early. At 14 bars, you are early on on time for most signals. For oscillators, Ehlers triggers long RSI signals are the line passes down through the 20 line, signaling around three bars early. Especially for shorter period cycles, this is necessary to be profitable. In this indicator, you just reduce the period



[Edited by Mel on 6/1/2020 6:34 PM]

^ Top
ap·pren·ticeGuru

Veteran
100
Posts: 123

Joined: 10/22/2010
Location: Columbia, MD

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/2/2020 10:05 AM
Post #31150 - In reply to #31144

Kudos to Mel once again. Thank You for sharing.

Mel, one tidbit suggestion, is there any way the "Both" option can plot cycles and trend that can be distinguished, i.e., "cycles" plot in dots, while, "trend" plots the signals itself .. something to that effect.

Thank You again.
^ Top
Mel

Veteran
10010025
Posts: 235

Joined: 3/18/2006

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/2/2020 4:42 PM
Post #31151 - In reply to #31150

Right now the trends are colored red or green, everything else is cycles, regardless of the parameter. "Both" means signals for both trend start and cycles, or you can get only cycle signals or only trend start signals. Doesn't affect the plot. If you look, all the trend signals are at the first bar of a trend. All the cycle signals are at a zero crossing.



[Edited by Mel on 6/2/2020 4:44 PM]

^ Top
ap·pren·ticeGuru

Veteran
100
Posts: 123

Joined: 10/22/2010
Location: Columbia, MD

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/2/2020 8:53 PM
Post #31152 - In reply to #31144

Thanks for the feedback, well noted.

On side note, in past, I've needed to distinguish "signals" on the price pane as to which OL System triggered the red/green arrow, since as it stands now, its un-distinguishable.

What I am attempting to articulate, in general, and if Nirvana, in their next major OT update, may allow OL system code to plot " long/short signals" in multitude manner, i.e. (color, dots, arrows, etc.) that can separate and allow to distinguish "one System firing from another System as chosen" on the price pane / OT template without having to eyeball below at the Indicator pane.

There already is toggle for Strategy Signals to plot on price pane already, so, that would not intervene with OL System signals.

Thank You.
^ Top
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/3/2020 7:06 AM
Post #31155 - In reply to #31152

It is already possible to do this, albeit not with fancy symbols. You can plot a short vertical dash above or below the candle, using a command like this:

Plotpricetrendline(“BullEntry”, bar, L-ATR()/10, bar, L-ATR/2, Green, 5)
… or for shorts:
Plotpricetrendline(“BearEntry”, bar, H+ATR()/10, bar, H+ATR/2, Red, 5)

Of course you can adjust the ATR divisors to make the dash closer or further, or make it longer or shorter. Adjust the final width to make it fatter or thinner. It depends on how you view your chart (ie 3 mo vs 12 mo or whatever) as to how thick the dash should be. It is possible but tricky to come up with a generic solution that works for all different symbols (volatility, price) and x-axis settings. This is the easy method. If you are using it on a bunch of different symbols and x axis settings, I suggest that you use an input param to define the width, and another one to possibly adjust the heights.

PS: I’ve been asking for OLang symbol and alphanumeric plotting for many years. Don’t hold your breath. That’s why I developed this method.

[Edited by Jim Dean on 6/3/2020 7:07 AM]

^ Top
ap·pren·ticeGuru

Veteran
100
Posts: 123

Joined: 10/22/2010
Location: Columbia, MD

User Profile
 
Subject : RE: Correlation angle System
Posted : 6/3/2020 10:06 PM
Post #31156 - In reply to #31144

Thanks Jim ... this is a great starter, like the idea shall put to work on some other easie peasie systems :-).
Jump to page : 1
Now viewing page 1 [25 messages per page]
back reply

Legend    Action      Notification  
Administrator
Forum Moderator
Registered User
Unregistered User
E-Mail this thread to a friend
Toggle e-mail notification


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.