在一个时间范围内购买信号,然后从另一个时间出售信号,TradingView
我的突破趋势以下模型使用每周蜡烛来发出初始买入或出售短路信号,但我的停止损失(仅在我的入境价格低时)是基于2天蜡烛的。无论如何,是否有编写脚本来在每周蜡烛派生的每周图表上产生我的停止损失?
谢谢,布伦登
my breakout trend following model uses weekly candles to initiate an initial buy or sell short signal but my stop loss (only when below my entry price) is based on 2day candles. Is there anyway to write a script to generate my stop losses on the weekly chart that are derived from 2 day candles?
Thanks, Brenden
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不支持较低时间范围的数据,也不建议。请参阅这个。
您可以在
“ 2D”
时间范围内使用您的脚本,并从那里索取每周数据以找出您的买卖条件。然后使用当前的时间范围(“ 2D”
)来计算SL。Requesting data from lower timeframes is not supported and not recommended. Please see this.
You can use your script on the
"2D"
timeframe and request weekly data from there to figure out your buy and sell conditions. Then use the current timeframe ("2D"
) to calculate the SL.