OmniTrader Forum - OmniScan
Help required with scan logic

^ Top
Rean

Posts: 105

Joined: 8/30/2013
Location: Johannesburg, South Africa

User Profile
 
Subject : Help required with scan logic
Posted : 8/26/2021 2:28 PM
Post #48248

Hallo good people

I'm trying to create a scan that scans for the following:

Stock price is 70% above the 52week low (showing that the stock as been improving)

Stock price is 5% lower than the 20-day high (showing that the stock has recently retraced)

These are my attempts, I'll appreciate if you can correct me where it's wrong:

h >= llv(250) [1]*.70
h >= hhv(20) [1]*.95
^ Top
Jim Dean

Posts: 3022

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

User Profile
 
Subject : RE: Help required with scan logic
Posted : 8/26/2021 2:38 PM
Post #48249 - In reply to #48248

Should be:

H >= llv(250)[1] *1.70

L <= hhv(20)[1] *0.95

I removed spaces before the ['s, and changed the LLV formula multiplier.

I'd suggest using C >= and C <= rather than H's and L's ... up to you.

^ Top
Rean

Posts: 105

Joined: 8/30/2013
Location: Johannesburg, South Africa

User Profile
 
Subject : RE: Help required with scan logic
Posted : 8/26/2021 2:41 PM
Post #48250 - In reply to #48248

You're the best, thanks Jim.


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