我购买了一个比特币指标(无源代码),该指标给出了买卖警报。我正在尝试使用警报来触发漫游器在我的交易所中进行买卖。设置BOT的说明如下:
在TradingView中打开您的策略。在您的pine脚本中,您将必须在“ strategy.entry()”中添加注释; “ strategy.order()”; “ strategy.exit()”; “ strategy.close()”。从您的Wunderbit Trading机器人设置中复制您的评论。
示例代码 /// 长 strategy.entry(“ long”,true,当= entry_long,comment =“ 插入打开的长注释 ”) strategy.exit(“ long”,当= exit_long,stop = long_stop_level,limit = long_take_level,comment =“ 插入近距离评论 ”时)) strategy.close(“ long”,when = exit_long,comment =“ 插入密切长评论 ”)
///短 strategy.entry(“ short”,false,当= entry_short,comment =“ 插入打开的简短评论 ”) strategy.exit(“ short”,当= exit_short,stop = short_stop_level,limit = short_take_level,comment =“ 插入简短评论 ”时) strategy.close(“ short”,when = exit_short,comment =“ 插入关闭简短评论 ”)
TradingView警报详细信息 •WebHook URL:https://trading.wunderbit.co/bot/exchange •开多头: youremail @ mail.com_ENTER-LONG_BINANCE_BTC / USDT_youremail @ mail.com-BTC_1H •平仓多头: youremail @ mail.com_EXIT-LONG_BINANCE_BTC / USDT_youremail @ mail.com-BTC_1H •空头: youremail @ mail.com_ENTER-SHORT_BINANCE_BTC / USDT_youremail @ mail.com-BTC_1H •关闭短线: youremail @ mail.com_EXIT-SHORT_BINANCE_BTC / USDT_youremail @ mail.com-BTC_1H 注意! 小心地将消息插入字段,并确保已将其链接到适当的信号。否则可能会导致策略执行不正确。 香港专业教育学院试图将webhook和上面的代码复制到我的指标生成但不起作用的警报的消息部分。我认为,警报必须在警报中包含“长”或“短”字样,机器人才能识别它。 当我的指标生成“购买”警报时。有没有办法让Pine读取“购买”警报并生成新的“多头”策略。与卖出/卖空警报相同。同样,我没有该指标的源代码。