松脚本,qty_percent停止下订单

时间:2020-06-14 01:21:14

标签: pine-script

我试图在strategy.exit()中使用qty_percent = 50卖出一半头寸,但是当我设置qty_percent时,图表上没有定单,但是如果我删除qty_percent,定单就会出现在图表上

// This doesn't place the order
strategy.exit("Exit1", "Short", qty_percent=50, stop=short_Stop_Loss_Level, limit=Short_Take_Prof_Level_50)

// This works fine
strategy.exit("Exit1", "Short", stop=short_Stop_Loss_Level, limit=Short_Take_Prof_Level_50)

不确定我在做什么错吗?

0 个答案:

没有答案