Data storage
While running trading algorithms, Gunbot processes strategy code for each currency pair. As a result, the variables assigned within the strategy are reinitialized each time your algorithm executes.
For preserving data consistently throughout the trading process, consider saving it using this object: gb.data.pairLedger.customStratStore