Thanks for these, dt. These will let the optimizer do easily some things that I have done laboriously by hand before. Great! And I can easily see some extensions of the bit flags to some other things I'm planning on translating from MT4.