Tquant Lab, Python, Backpacking, Tejapi Application.
the Darvas Box Theory) if (curr_price > senkou_span_b) and (cloud_red == True) and (tenkan_sen > kijun_sen*1.01) and (context.buy_count[f'{i}'] <= 5): order_percent(i, 0.01) buy = True context.stop_loss[f'{i}'] = curr_price - (1.25 * stop_loss) context.last_buy_price[f'{i}'] = curr_price record(