Separate strategy subtemplates for better overview

This commit is contained in:
Matthias
2022-09-18 08:50:41 +02:00
parent ab78fb373a
commit faf84295a5
12 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
# Momentum Indicators
# ------------------------------------
# RSI
dataframe['rsi'] = ta.RSI(dataframe)
# Retrieve best bid and best ask from the orderbook
# ------------------------------------
"""
# first check if dataprovider is available
if self.dp:
if self.dp.runmode.value in ('live', 'dry_run'):
ob = self.dp.orderbook(metadata['pair'], 1)
dataframe['best_bid'] = ob['bids'][0][0]
dataframe['best_ask'] = ob['asks'][0][0]
"""