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
Intrinsic Trend 2 Direction indicator
Last Activity 7/6/2025 3:47 AM
1 replies, 974 viewings

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

^ Top
kmcintyre

Veteran
10025
Posts: 132

Joined: 9/12/2007
Location: Valley Center, CA

User Profile
 
Subject : Intrinsic Trend 2 Direction indicator
Posted : 5/28/2021 7:59 PM
Post #31507

Since watching last weeks Market Pulse dot Live, I have been working with Intrinsic Trend 2.

I really like the module, but I found a limitation in the OLang support.

The Intrinsic Trend Slope has two lines, long and short. The long line is drawn when IT2 senses an uptrend. The short line is drawn when IT2 detects a downtrend.

Unfortunately, there is only one function exposed in OLang - IT_Slope. It only exposes the long line. And it doesn't signal when the long trend ends.

So I created an indicator that determines the direction of the Intrinsic Trend.

The code is pretty simple, but it took me a while to figure out how to determine the IT direction. (I hope it works in all instances, but no guarantees...)

indITDirection.txt is attached. It returns 1 if the IT is up, -1 if the IT is down, and 0 if warming up.

Happy Memorial Day!
Freedom has never been free.
Remember those who died protecting freedom for all races, colors, and creeds around the world.
Remember the hundreds of thousands of Americans who died putting an end to slavery in our country.
Those who were so morally offended they left their families behind and paid the ultimate price
Slavery we inherited from European and African slave traders.
(Yes, black men sold black men into slavery...)
For the record, those brave patriots were (with rare exception) white males,
White males who died to free black men and women from an evil practice that had existed since the earliest days of civilization.
Slavery was not an American invention. Yet America put an end to slavery.
And while I had nothing to do with slavery, or the demise of slavery, I am thankful for those who did.
I am proud to be an American.
God Bless America!



Attached file : indITDirection.txt (0KB - 246 downloads)

^ Top
Jim Dean

Sage
2000100010010010010025
Posts: 3433

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

User Profile
 
Subject : RE: Intrinsic Trend 2 Direction indicator
Posted : 5/29/2021 3:55 AM
Post #31508 - In reply to #31507

Nicely done!

And, well stated!
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.