Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
B
@kam-dorra said in line value behaviour:
when I add print (BV[0]), i get: IndexError: array index out of range
And you expect us to know where you do that ... because we will see it using tea leaves?
https://pythontips.com/2013/08/07/the-self-variable-in-python-explained/
@ab_trader said in IndexError: array index out of range:
In the __init()__ indexing should be done with (), not with [] brackets, ref Docs - Lines: DELAYED indexing:
Pointed out some days ago by @ab_trader
The strategy getposition method relies always on the information provided by the broker instance. It's in the broker code.
@backtrader thank you very much for your time and assistance, you have been very helpful.