OmniTrader Forum - OmniScan
help with a criteria rule

^ Top
wiseone

Posts: 13

Joined: 1/13/2004
Location: Prescott, AZ

User Profile
 
Subject : help with a criteria rule
Posted : 10/14/2021 11:42 AM
Post #48346

I'd appreciate any help creating a new criteria rule that will filter for 3 trending weeks in a row on the weekly time frame.

for uptrend
current weekly close is higher than prior week;
prior week close is higher than 2nd prior week;
2nd prior week close is higher than 3rd prior week.

Thanks in advance!
^ Top
Jim Dean

Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: help with a criteria rule
Posted : 10/14/2021 11:53 AM
Post #48347 - In reply to #48346

C > C[1] and C[1] > C[2] and C[2] > C[3]

^ Top
wiseone

Posts: 13

Joined: 1/13/2004
Location: Prescott, AZ

User Profile
 
Subject : RE: help with a criteria rule
Posted : 10/14/2021 12:41 PM
Post #48350 - In reply to #48347

I'm looking for WEEKS; isn't this days?
^ Top
Jim Dean

Posts: 3022

Joined: 9/21/2006
Location: L'ville, GA

User Profile
 
Subject : RE: help with a criteria rule
Posted : 10/14/2021 2:13 PM
Post #48351 - In reply to #48350

You said you were using a Weekly timeframe. If that’s true, then OHLC applies to weekly bars. If you’re using a Daily timeframe but want a formula that analyses weeks, multiply all the [#] values by five.

C > C[5] and C[5] > C[10] and C[10] > C[15]
^ Top
wiseone

Posts: 13

Joined: 1/13/2004
Location: Prescott, AZ

User Profile
 
Subject : RE: help with a criteria rule
Posted : 10/14/2021 4:43 PM
Post #48352 - In reply to #48346

Perfect, thanks!!


https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=16480&posts=5