- 精华
- 0
- 在线时间
- 55 小时
- UID
- 264906
- 积分
- 63
- 帖子
- 43
- 阅读权限
- 30
- 注册时间
- 2018-4-27
- 最后登录
- 2021-8-23
![Rank: 2](static/image/yeei_cn//star_level2.gif)
- 精华
- 0
- UID
- 264906
- 积分
- 63
- 帖子
- 43
- 主题
- 18
- 阅读权限
- 30
- 注册时间
- 2018-4-27
- 最后登录
- 2021-8-23
|
我用下面的语语句算出了一家范围内的最高值
IF(diff>0 and diff[1]>0 and diff[2]>0 and diff[3]>0 and diff[4]>0 and diff[5]>0 and diff[6]>0 and diff[7]<0){FLAG1=CurrentBar;}
IF(diff<0 and diff[1]<0 and diff[2]<0 and diff[3]<0 and diff[4]<0 and diff[5]<0 and diff[6]<0 and diff[7]>0){FLAG2=CurrentBar;}
x=flag2-FLAG1;
HH=Highest (H[1],x+7);
IF(diff<0 and diff[1]<0 and diff[2]<0 and diff[3]<0 and diff[4]<0 and diff[5]<0 and diff[6]<0 and diff[7]>0){HH1=HH;}Else{HH1=HH1[1]; }
想比较该值对应的BAR的均线值,请问版主如何实现? |
|