Saving Strategy State in VeighNa Spread Trading Templates
Summary
A VeighNa community exchange answers whether the `self.sync_data()` method is available in version 2.5.7 spread-trading strategies. A user reports that the method works in CTA strategies but raises an error when called from a spread strategy while attempting to persist variables. The reply explains that the spread strategy template does not provide this function and recommends reading and writing a file directly to save state, such as the user's variables in JSON form.
The discussion is a narrow implementation note rather than a trading method or evaluation of a spread-trading strategy. It provides no code example, file-handling details, persistence guarantees, or comparison of storage approaches. Its practical lesson is that a method available in one VeighNa strategy template may not exist in another, so persistence needs to be implemented with the facilities available to the spread template. The post does not describe trading signals, instruments, risk controls, or performance evidence.
Key ideas
- The post concerns persistence of user variables in a VeighNa spread-trading strategy.
- The respondent says the spread strategy template does not provide `self.sync_data()`.
- Direct file reading and writing is suggested as an alternative for saving state.
- The discussion offers no code sample or guidance on file format and persistence reliability.
- It addresses framework behavior rather than trading logic or measured strategy performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.