- UID
- 2
- 积分
- 2869185
- 威望
- 1384620 布
- 龙e币
- 1484565 刀
- 在线时间
- 13082 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-14
|
标签: 公式 文华 财经 期货 专题短线提款机
需先设定参数N1, N2
源码:
- X1:=HHV(OPEN,N1);
- X2:=LLV(OPEN,N2);
- X3:(X1+X2)/2;
- TMP:=X3-CLOSE;
- DRAWLINE(TMP>0.00001,HIGH,TMP>0.00001,OPEN,COLORCYAN);
- DRAWLINE(TMP>0.00001,LOW,TMP>0.00001,CLOSE,COLORCYAN);
- DRAWLINE(TMP<-0.00001,HIGH,TMP<-0.00001,CLOSE,COLORRED);
- DRAWLINE(TMP<-0.00001,LOW,TMP<-0.00001,OPEN,COLORRED);
- DRAWLINE(ABS(TMP)<0.00001,LOW,ABS(TMP)<0.00001,OPEN,COLORWHITE);
- DRAWLINE(ABS(TMP)<0.00001,HIGH,ABS(TMP)<0.00001,OPEN,COLORWHITE);
- STICKLINE(TMP>0.00001,OPEN,CLOSE,COLORCYAN,1);
- STICKLINE(TMP<-0.00001,OPEN,CLOSE,COLORRED,1);
复制代码 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|