renko + prescribedTrades and tradeList linked

This commit is contained in:
David Brazda
2023-11-09 13:44:33 +01:00
parent b7f148fadd
commit aead08a2c9
9 changed files with 275 additions and 48 deletions

View File

@ -5,7 +5,7 @@ def populate_cbar_tick_price_indicator(data, state: StrategyState):
conf_bar = data['confirmed']
#specifická sekce pro CBARVOLUME, kde vzdy máme nova data v confirmation baru (tzn. tickprice pocitame jak pri potvrzenem tak nepotvrzenem)
if state.rectype == RecordType.CBARVOLUME:
if state.rectype in (RecordType.CBARVOLUME, RecordType.CBARRENKO):
try:
tick_price = data['close']
tick_delta_volume = data['volume'] - state.vars.last_tick_volume