Strategy PropertiesΒΆ
Inside your strategy you can also get a lot of information about the state of the strategy and set specific variables to determine how the strategy works. Here is a list of those properties that you can use:
Returns the current cash. |
|
Returns the current portfolio value (cash + positions value). |
|
Returns True if this is the first iteration of the strategy (is True if the lifecycle method on_trading_iteration is being excuted for the first time). |
|
Returns True if the strategy is running in backtesting mode. |
|
Returns the quote asset for the strategy. |
|
Returns the name of the strategy. |
|
Returns the initial budget for the strategy. |
|
Get or set the number of minutes that the strategy will stop executing before market closes. |
|
Get or set the number of minutes that the strategy will start executing before the market opens. |
|
Get or set the current sleep time for the strategy. |
|
Returns the datetime of the last iteration. |
|
Returns the timezone of the data source. |
|
Returns the pytz object of the data source. |
|
Deprecated, will be removed in the future. |