C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- TT:=BARSCOUNT(CLOSE);
- CC:(CLOSE);
- 均线:MA(CC*V,TT)/MA(V,TT);
- 上均:均线 + AVEDEV(C,TT)*2;
- 下均:均线 - AVEDEV(C,TT)*2;
- 时长:=IF(HOUR>=13 AND HOUR<15 ,1,0);
- 涨幅:=(CLOSE>DYNAINFO(3))>1.02;
- 跌幅:=(CLOSE/DYNAINFO(3))<0.98;
- 横盘:=((HHV(CLOSE,TT)-LLV(CLOSE,TT))/CLOSE)<0.03;
- YY:=SMA(VOL,30,1);
- 放量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.92;
- 涨跌幅:=涨幅 OR 跌幅;
- 横涨:=涨跌幅=0 AND 横盘 AND 时长 AND 放量 AND CROSS(CC,上均);
- 横盘上涨:DRAWTEXT(CROSS(横涨,0),C,'上涨'),COLORRED;
-
- DRAWTEXT(HOUR=9 AND MINUTE=31,均线,'09:31'),COLORRED;
- DRAWTEXT(HOUR=9 AND MINUTE=45,均线,'09:45'),COLORWHITE;
- DRAWTEXT(HOUR=10 AND MINUTE=00,均线,'10:00'),COLORMAGENTA;
- DRAWTEXT(HOUR=10 AND MINUTE=30,均线,'10:30');
- DRAWTEXT(HOUR=11 AND MINUTE=00,均线,'11:00'),COLORMAGENTA;
- DRAWTEXT(HOUR=13 AND MINUTE=00,均线,'13:00'),COLORWHITE;
- DRAWTEXT(HOUR=13 AND MINUTE=15,均线,'13:15'),COLORWHITE;
- DRAWTEXT(HOUR=13 AND MINUTE=30,均线,'13:30');
- DRAWTEXT(HOUR=14 AND MINUTE=00,均线,'14:00'),COLORMAGENTA;
- DRAWTEXT(HOUR=14 AND MINUTE=15,均线,'14:15'),COLORWHITE;
- DRAWTEXT(HOUR=14 AND MINUTE=30,均线,'14:30');
- DRAWTEXT(HOUR=14 AND MINUTE=40,均线,'14:40'),COLORWHITE;
- DRAWTEXT(HOUR=14 AND MINUTE=50,均线,'14:50'),COLORWHITE;