Which is better / easier.... list or array?
Ex: I have 4 separate entry conditions and want to test if any is better than the others or if a combination is better.
Buy if A
Buy if B
Buy if C
Buy if D
and additional combinations, for ex:
Buy if ABCD
Buy if AC
Buy if BC
etc.
Since there are 4 bool conditions, there is a total of 16 combinations and15 possible buy conditions from FFFF to TTTT (16 minus FFFF).
Which is more effective a list or an array? Is one more effective than the other? Is one easier to implement than the other? In another EA I used a list and had over 30 if statements per side for each possible buy or sell.
What's the most logical approach for an array in this case?
Ex: I have 4 separate entry conditions and want to test if any is better than the others or if a combination is better.
Buy if A
Buy if B
Buy if C
Buy if D
and additional combinations, for ex:
Buy if ABCD
Buy if AC
Buy if BC
etc.
Since there are 4 bool conditions, there is a total of 16 combinations and15 possible buy conditions from FFFF to TTTT (16 minus FFFF).
Which is more effective a list or an array? Is one more effective than the other? Is one easier to implement than the other? In another EA I used a list and had over 30 if statements per side for each possible buy or sell.
What's the most logical approach for an array in this case?