Error processing symbol XXX Bar number must be YYY or greater
Author: Bionian
Creation Date: 11/14/2009 8:29 AM
profile picture

Bionian

#1
I ran the below strategy (same one as my last post) and got the following order messages. There is plenty more history available than the number of bars in the error message. Why am I getting this message? Please keep in mind in your answer that I am totally new to C#.

Error processing symbol DBC Bar number must be 140 or greater
Error processing symbol DBN Bar number must be 69 or greater
Error processing symbol DBO Bar number must be 115 or greater
Error processing symbol DBS Bar number must be 504 or greater
Error processing symbol DIG Bar number must be 120 or greater

Thanks-
Rick

Edited 11-14-09 10:35am to add:
Sorry- I think I have found the answer. I had the strategy set to run allowing multiple positions rather than a single position.
profile picture

Eugene

#2
QUOTE:
Sorry- I think I have found the answer. I had the strategy set to run allowing multiple positions rather than a single position.

Actually, the reason is slightly different. IMO, the way the code was constructed made it close positions one bar earlier than they were open.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).