1
0
mirror of https://github.com/polakowo/vectorbt.git synced 2022-03-22 01:31:39 +03:00

Update website

This commit is contained in:
Oleg Polakow
2022-02-13 23:21:45 +01:00
parent be3ac88b7e
commit a22661b084
2 changed files with 2 additions and 1 deletions

View File

@@ -374,7 +374,7 @@ dtype: object
```pycon title="Parse 5 highest slippage values from logs" ```pycon title="Parse 5 highest slippage values from logs"
>>> price = vbt.YFData.download('BTC-USD').get('Close') >>> price = vbt.YFData.download('BTC-USD').get('Close')
>>> slippage = np.random.uniform(0, 0.005, size=close.shape[0]) >>> slippage = np.random.uniform(0, 0.005, size=price.shape[0])
>>> logs = vbt.Portfolio.from_random_signals(price, n=5, slippage=slippage, log=True).logs >>> logs = vbt.Portfolio.from_random_signals(price, n=5, slippage=slippage, log=True).logs
>>> req_price_ma = logs.map_field('req_price') >>> req_price_ma = logs.map_field('req_price')

View File

@@ -27,6 +27,7 @@ Note: you must run the notebook to play with the widgets.
### Articles ### Articles
- [Stop Loss, Trailing Stop, or Take Profit? 2 Million Backtests Shed Light](https://polakowo.medium.com/stop-loss-trailing-stop-or-take-profit-2-million-backtests-shed-light-dde23bda40be) - [Stop Loss, Trailing Stop, or Take Profit? 2 Million Backtests Shed Light](https://polakowo.medium.com/stop-loss-trailing-stop-or-take-profit-2-million-backtests-shed-light-dde23bda40be)
- [SuperFast SuperTrend](https://polakowo.medium.com/superfast-supertrend-6269a3af0c2a?source=friends_link&sk=2e7e3846b72a9e2283ade8b210664d1c)
### Getting Help ### Getting Help