Smart Components
Smart Components are a new paradigm that let users create a self-executing, encapsulated piece of logic that can be used in any Script.
Position Executor¶
The first Smart Component is the PositionExecutor, part of the Directional Framework introduced in version 1.13.0 that combines this feature along with Candles Feed to let users create TA-based strategies.
This component receives as input the strategy and PositionConfig
, a new data type that includes the information needed to start a directional position on a perpetuals exchange that utilizes the triple barrier method popularized in Advances in Financial Machine Learning by Martin Prado.
In future releases, we aim to extend this component to spot exchanges.
Watch this recording from a recent community call to learn how to use this feature: