Why does convert or open to Code based from Rules based strategy generate duplicate DataSeries?
In the code below which is the code generated going from Rules based to Code based, the conversion generated a duplicate CCI DataSeries. The CCI DataSeries is used twice in the trading loop. The second time it is used, a duplicate CCI is used, not the first one.
Is there some internal reason for this? Do I need to adhere to this, or should I ignore it and eliminate the duplicate and use the first DataSeries for both occasions? Why is this?
CODE:
Please log in to see this code.
Thanks for any help in understanding.
Size:
Color:
Answer: this is by design. You should ignore this.
Size:
Color: