This commit is contained in:
Ichinga Samuel
2025-01-23 18:18:18 +01:00
parent 12f61f3b6e
commit 28811df0ce
20 changed files with 284 additions and 157 deletions
+8
View File
@@ -13,6 +13,7 @@ The base class for creating strategies.
- [backtest_strategy](#strategy.backtest_strategy)
- [trade](#strategy.trade)
- [test](#strategy.test)
- [initialize](#strategy.initialize)
<a id="strategy.strategy"></a>
@@ -134,3 +135,10 @@ Runs the strategy in live mode.
async def live_strategy()
```
Runs the strategy in backtest mode.
<a id="strategy.initialize"></a>
### initialize
```python
async def initialize()
```
Initialize a strategy
+13 -1
View File
@@ -7,6 +7,7 @@ Symbol class for handling a financial instrument.
- [symbol_select](#symbol.symbol_select)
- [info](#symbol.info)
- [initialize](#symbol.initialize)
- [initialize_sync](#symbol.initialize_sync)
- [book_add](#symbol.book_add)
- [book_get](#symbol.book_get)
- [book_release](#symbol.book_release)
@@ -94,7 +95,7 @@ Get data on the specified financial instrument and update the symbol object prop
<a id="symbol.initialize"></a>
### init
### initialize
```python
async def initialize() -> bool
```
@@ -105,6 +106,17 @@ Initialized the symbol by pulling properties from the terminal
|--------|--------------------------------------------------------|
| `bool` | Returns True if symbol info was successful initialized |
<a id="symbol.initialize_sync"></a>
### initialize_sync
```python
def initialize_sync() -> bool
```
Initialized the symbol by pulling properties from the terminal
#### Returns:
| Type | Description |
|--------|--------------------------------------------------------|
| `bool` | Returns True if symbol info was successful initialized |
<a id="symbol.book_add"></a>
### book_add