I"ve got 4 variable shich can be one of the following states:
ignore
long
short
no trade
I need to do a bitwise type operation on the four variables and return true only if all of them match, excluding any that are "ignore".
Example:
var1: ignore
var2: short
var3: short
var4: short
Result: true
var1: long
var2: long
var3: short
var4: long
Result: false
Etc.
Any ideas?
ignore
long
short
no trade
I need to do a bitwise type operation on the four variables and return true only if all of them match, excluding any that are "ignore".
Example:
var1: ignore
var2: short
var3: short
var4: short
Result: true
var1: long
var2: long
var3: short
var4: long
Result: false
Etc.
Any ideas?