Cyan Spring ATS
Open Source Algorithmic Trading Software
Develop Your SystemThis section is to discuss the key components in Cyan Spring framework and how to develop your system based on those components
Cyan Spring ATS provides a strategy framework for Single-instrument Strategies and Multi-instrument Strategies. You may click on the links Single-instrument Strategies and Multi-instrument Strategies to understand what they are.
To implement your own strategy in Cyan Spring ATS, you should choose either SingleInstrumentStrategy or MultiInstrumentStrategy as your parent class. Due to OO inheritance, your class immediately can do all sorts of things that parent class can do and you may add your business logic by overriding certain parent class methods.
In this section, we are going to discuss some key features the strategy framework provides. If you think the information is too dry you may skip it and go tutorial section for some immediate action. You may also look into the sample project in the source distribution package for several examples of strategies.
Common Strateigy methods
Both SingleInstrumentStrategy and MultiInstrumentStrategy inherit from com.cyanspring.strategy.Strategy class. com.cyanspring.strategy.Strategy contains some methods are common to all strategies in Cyan Spring ATS: