选择策略模板后显示参数
get_price(symbol, period)
get_volume(symbol)
buy(symbol, quantity)
sell(symbol, quantity)
close_position(symbol)
get_balance()
get_positions()
sma(data, period)
ema(data, period)
rsi(data, period)
macd(data)
bollinger_bands(data, period)
stochastic(high, low, close)
if price > sma_20:
buy('AAPL', 100)
set_stop_loss('AAPL', 0.05)
if rsi < 30:
buy_signal = True
运行策略后显示性能指标