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.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
2000100010010010010025
Posts: 3433

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

User Profile
 
Subject : RE: Scan lookback
Posted : 1/2/2021 8:42 PM
Post #31336 - In reply to #31335

Sum(-(V>100000 and C>O), 126) >= 1

The and-condition being true results in (-1), otherwise it’s zero. Negative sign converts it to positive one. Sum function processes that rule for 126 days and adds the results. If it was true for one or more of those days, the sum will report the number of days it was true for.

[Edited by Jim Dean on 1/2/2021 8:43 PM]

Deleting message 31336 : RE: Scan lookback


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.