- 精华
- 2
- 在线时间
- 2808 小时
- UID
- 4130
- 积分
- 20901
- 帖子
- 6519
- 阅读权限
- 200
- 注册时间
- 2009-4-15
- 最后登录
- 2019-4-12
- 精华
- 2
- UID
- 4130
- 积分
- 20901
- 帖子
- 6519
- 主题
- 17
- 阅读权限
- 200
- 注册时间
- 2009-4-15
- 最后登录
- 2019-4-12
|
回复 3# yd111070
以下两个条件分别输出,看看在那根bar上,哪个满足,哪个不满足?
PlotBool("sad", (Highest(high,BarsSinceLastEntry)-buyposition>30))
PlotBool("sad", close < ama and close[1]<ama and ama<ama5)
另外,你还可以这样使用,查看条件是否满足
commentary("条件:"+iifstring((Highest(high,BarsSinceLastEntry)-buyposition>30)&&close < ama and close[1]<ama and ama<ama5,"True","False"));
commentary("条件:"+iifstring((Highest(high,BarsSinceLastEntry)-buyposition>30),"True","False"));
commentary("条件:"+iifstring(close < ama and close[1]<ama and ama<ama5,"True","False")); |
|