Let's saw I want a buy signal when CCI(20) crosses above either -100, 0 or 100 at the same time CCI(40) crosses above -100, 0 or 100.
There are 9 combinations here that would produce a buy signal.
How can this be coded such that I don't have 9 different IF statements?
Thanks,
Jase
There are 9 combinations here that would produce a buy signal.
How can this be coded such that I don't have 9 different IF statements?
Thanks,
Jase
Comment