thinkscript - 尝试在 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"
解决方案
推荐阅读
- python - 在 python 数据框中拆分 2 列或更多列的字符串内容并附加到 Python 中的新行
- python - 反向引用组在 python 正则表达式中不起作用
- swift - iOS并发:如何使用信号量而不是屏障?
- tkinter - 将特定命令分配给新创建的按钮
- html - 错误:DIV[#map_canvas] 太小。必须大于 100x100
- c++ - ReadConsole 和 fgets 有什么区别?
- python - 基于复杂字典为数据框创建新列
- html - 使用 Angular 访问引导轮播(不使用 ng-bootstrap)
- python - 使用 python 完成 LeetCode 问题 #2
- css - 一个标签或 css 属性,它将使标签对 flex 不可见