首页 > 解决方案 > 尝试在 thinkscript 中创建警报

问题描述

我尝试使用以下条件创建警报,但似乎不起作用。任何帮助是极大的赞赏。这些基于使用 5,3 以及 %K 和 %D 的 5 分钟时间范围内的随机完整指标。

这是支持在 5 分钟图上的 20sma 上方、%k 超过 %D、%D 低于 70 时发出警报。

bid() 大于 SimpleMovingAvg("length" = 20)."SMA" 和 StochasticFull("over buy" = 70, "over sell" = 30, "k period" = 5, "d period" = 3)。 "FullD" 小于等于 StochasticFull("over buy" = 70, "over sell" = 30, "k period" = 5, "d period" = 3)."OverBought" and StochasticFull("over buy" = 70, "over sell" = 30, "k period" = 5, "d period" = 3)."FullK" 大于等于 StochasticFull("over buy" = 70, "over sell" = 30, “k 周期” = 5,“d 周期” = 3).“FullD”

这是支持在 5 分钟图上低于 20sma、%k 低于 %D、%D 高于 30 时发出警报。

ask() 小于 SimpleMovingAvg("length" = 20)."SMA" 和 StochasticFull("over buy" = 70, "over sell" = 30, "k period" = 5, "d period" = 3)。 "FullD" 大于 StochasticFull("over buy" = 70, "over sell" = 30, "k period" = 5, "d period" = 3)."OverSold" 和 StochasticFull("over buy" = 70, "over sell" = 30, "k period" = 5, "d period" = 3)."FullK" 小于等于 StochasticFull("over buy" = 70, "over sell" = 30, "k period " = 5, "d period" = 3)."FullD" 和 SimpleMovingAvg()."SMA" 小于或等于 SimpleMovingAvg("length" = 20)."SMA"

标签: thinkscript

解决方案


推荐阅读