FOR IMMEDIATE RELEASE
(Hotfix - BREAKOUT mode) - This hotfix changes the linked-list object which kept track of all confirmed objects into a var array that will queue and dequeue items from the array when: They have been confirmed, and they have reached the end of their P/L lifespan. This was necessary because Linked-lists currently do not work in Pine as I thought they originally had (from a UDT perspective). I discovered that UDTs may not pass-by-reference, meaning their contents may not change when passed to a function meant to change those contents. The work around instead was to keep track of the number of candles that remain in a pattern that's been confirmed, and decrement this value on each passing candle. When this value is 0, the P/L calculation is conducted and appended to the set of returns for that pattern. This now allows multiple patterns to be confirmed on the same candle and have their returns placed at the same time (albeit this causes duplicate returns to be added into the matrix of returns for more than one pattern).
The end result is that the returns for all patterns are now properly kept track of in BREAKOUT mode, whereas before there were some returns which may have been skipped over, potentially causing the statistics presented for patterns to not be representative of the set of returns for those patterns. BREAKOUT mode should be re-enabled in the public release.