Evaluate some but no all Conditions?
Author: lspinv
Creation Date: 3/5/2010 9:47 AM
profile picture

lspinv

#1
Is there a way, using Rules, to generate Trade Signals if some but not all Conditions are met?

For example, suppose I track six conditions (say, MACD, SMA=20, Williams %, EMA=60, AvePrice, and CPI), and want to BUY if any three of the six are True. Is there a way to do that?
profile picture

Eugene

#2
Not with any three, but it's possible by placing an OR divider in a way that certain "signal groups" are isolated. In other words, using just the rules you can group MACD, SMA and %R in one group [i.e. all the 3 conditions should be true], and EMA, AvgPrice & CPI in another, and trigger a signal if any of the groups becomes "true".

"Any three of the six" is easily possible using the code, however.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).