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
OmniTrader Pro General Discussion
HRS_Diff Formulas
Last Activity 10/8/2021 3:12 PM
6 replies, 463 viewings

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

^ Top
sdb721

Member

Posts: 12

Joined: 5/2/2016
Location: Cypress, TX 77429

User Profile
 
Subject : HRS_Diff Formulas
Posted : 1/8/2021 12:29 AM
Post #31340

HI OT, in the settings for HRS_Difference (HRS_Diff) it has 2 line settings- Diff and MA. In Omniscript is there variable that represents these lines separately? In the formula building blocks I only see HRS_Diff.
^ Top
Barry Cohen

Idol
20001002525
Posts: 2151

Joined: 1/1/1900

User Profile
 
Subject : RE: HRS_Diff Formulas
Posted : 1/8/2021 8:57 AM
Post #31341 - In reply to #31340

The Filter block for HRS Trend has this formula:

HRS_DIFF(14,3,"SPY") > EMA(HRS_DIFF(14,3,"SPY"),3)

Meaning, HRS_DIFF from OmniScript for the first part & an EMA of HR_DIFF for the second part.

^ Top
sdb721

Member

Posts: 12

Joined: 5/2/2016
Location: Cypress, TX 77429

User Profile
 
Subject : RE: HRS_Diff Formulas
Posted : 1/12/2021 12:32 AM
Post #31350 - In reply to #31340

Perfect- thank you!!! BTW if HRS_Diff(14,3,"SPY") > 0 AND LNREG_SLOPE(C,14) > 0 is "Green" in the Chart Options, and HRS_Diff(14,3,"SPY") < 0 AND LNREG_SLOPE(C,14) < 0 is "Red". Does HRS_Diff(14,3,"SPY") = 0 AND LNREG_SLOPE(C,14) = 0 define blank or "White" space?
^ Top
Barry Cohen

Idol
20001002525
Posts: 2151

Joined: 1/1/1900

User Profile
 
Subject : RE: HRS_Diff Formulas
Posted : 1/12/2021 2:36 PM
Post #31351 - In reply to #31350

Yes, that goes for any formula that uses > and < instead of >= and <=
^ Top
Jim Dean

Sage
20001000100100100252525
Posts: 3387

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

User Profile
 
Subject : RE: HRS_Diff Formulas
Posted : 1/12/2021 2:40 PM
Post #31352 - In reply to #31350

If any or all of those three and-pair of conditions are used, a blank/white region could mean what you suggested.

BUT IT COULD ALSO MEAN that only one of the two “anded” conditions is true, while the other one isn’t.

[Edited by Jim Dean on 1/12/2021 2:41 PM]

^ Top
sdb721

Member

Posts: 12

Joined: 5/2/2016
Location: Cypress, TX 77429

User Profile
 
Subject : RE: HRS_Diff Formulas
Posted : 1/13/2021 8:22 PM
Post #31353 - In reply to #31340

Well, initially just to be sure I wrote the expression this way-
NOT (HRS_Diff(14,3,"SPY") > 0 AND LNREG_SLOPE(C,14) > 0) AND
NOT (HRS_Diff(14,3,"SPY") < 0 AND LNREG_SLOPE(C,14) < 0)

So I was just checking to see if there was a simpler way to express the same function.
^ Top
Jim Dean

Sage
20001000100100100252525
Posts: 3387

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

User Profile
 
Subject : RE: HRS_Diff Formulas
Posted : 1/13/2021 8:56 PM
Post #31354 - In reply to #31353

That’s probably THE most elegant correct way.
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.