I am using two different entry strategies and do not want to open more than two positions at a time. I coded the following which seems logically should work but keep getting an index out of range error in this piece of code. Obviously doing something wrong but do not understand what. Any help is appreciated.
CODE:
Please log in to see this code.
Size:
Color:
When there is 1 active position, its index is 0 in the list:
CODE:
Please log in to see this code.
The snippet seems a little nonsensical, but maybe that's because it's taken out of context.
Size:
Color:
Cone,
Thanks, should have figured that out. In the stone age the default value for index arrays started at 1.
Size:
Color: