Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

How to Create OR Boolean Expression Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mojo98
Posted : Wednesday, August 8, 2018 1:46:10 PM
Registered User
Joined: 4/28/2016
Posts: 4
In order to consolidate the number of alerts, I would like to combine both of the expressions below into one formula using an OR.
 
For example, I would like to see alerts for either Formula # 1 OR Formula # 2 listed below.
 
 
Formula # 1
C1 >= O2 AND O3 >= O2 AND C3 >= C2 AND C1 > C2
 
Formula # 2
O3 >= O2 AND C3 >= C2 AND L2 <= L1 AND H2 >= H1

 

StockGuy
Posted : Wednesday, August 8, 2018 2:00:43 PM

Administration

Joined: 9/30/2004
Posts: 9,187

Just combine them into one formula:

 

(C1 >= O2 AND O3 >= O2 AND C3 >= C2 AND C1 > C2) OR (O3 >= O2 AND C3 >= C2 AND L2 <= L1 AND H2 >= H1)

 

mojo98
Posted : Wednesday, August 8, 2018 2:14:52 PM
Registered User
Joined: 4/28/2016
Posts: 4

Thanks StockGuy!  I had a feeling it would be something like that, but I just wanted to get confirmation. Thanks for responding!

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.