|
sdb721
 Member
 Posts: 34
Joined: 5/2/2016
Location: Cypress, TX 77429
User Profile |
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.
|
|
Barry Cohen
 Idol
    Posts: 2309
Joined: 1/1/1900
User Profile |
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.
|
|
sdb721
 Member
 Posts: 34
Joined: 5/2/2016
Location: Cypress, TX 77429
User Profile |
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?
|
|
Barry Cohen
 Idol
    Posts: 2309
Joined: 1/1/1900
User Profile |
Yes, that goes for any formula that uses > and < instead of >= and <=
|
|
Jim Dean
 Sage
       Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
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]
|
|
sdb721
 Member
 Posts: 34
Joined: 5/2/2016
Location: Cypress, TX 77429
User Profile |
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.
|
|
Jim Dean
 Sage
       Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
That’s probably THE most elegant correct way.
|