我使用成交价作为入场价,但当酒吧关闭时,入场价将获得关闭的酒吧的价值。在下面的代码中正在更改入门价格。有人能帮我打招呼吗?
if(bought_long == false and barssince(crossover(ema9, ema20)) == 0 and low[2] < open and low[2] <
low[1] and ema9 > ema20)
stop_loss_long := low[2]
entry_price_long := close发布于 2021-06-01 02:11:04
您可以使用此命令根据您的条件在栏上获取open的价格:
cond bought_long == false and barssince(crossover(ema9, ema20)) == 0 and low[2] < open and low[2] < low[1] and ema9 > ema20
if cond[1]
stop_loss_long := low[3]
entry_price_long := openhttps://stackoverflow.com/questions/67688810
复制相似问题