Have a Google for how to use a binary switch in programming.

For MS and BC: Give each indicator condition an integer number (x:2^(0-5)) then, for each bar add the scores:

x0:=MACD()>0;

x1:=RSI(14)>30;

x2:=RSI(14)>30;

...

x5:=Stoch(5,3,3)>80;

score := (32*x5) + ... + (4*x2) + (2*x1) + (1*x0);

This is the same as setting in binary: 111111 if all conditions were true, or 000000 if all the conditions were false.

So if your score:

=1, then in binary this would be 000001, or only the condition x0 was true.

=5, binary = 000101, or both conditions x0 and x2 are true.

=40, binary 101000, or conditions x5 and x3 were true.

=63, binary = 111111, or all the conditions were true

Doing the simple conversion from decimal to binary will tell you which bits (flags) were set or not set. (BTW: MS calculator does binary<-->decimal conversions

)

wabbit

P.S. "There are 10 types of people; those who can count in binary and those who cannot!"

## Bookmarks