C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- MA1:EMA(CLOSE,6),COLOR00FF00;
- MA2:EMA(CLOSE,25),COLORRED ;
- 顶:MA(CLOSE,20) + 2*STD(CLOSE,55), LINETHICK2 , COLORFF9933;
- 底:MA(CLOSE,20) - 2*STD(CLOSE,55) ,LINETHICK2 , COLOR77AAFF;
- 买线:=EMA(C,2);
- 卖线:=EMA(SLOPE(C,21)*20+C,42);
- BU:=CROSS(买线,卖线);
- SEL:=CROSS(卖线,买线);
- DRAWTEXT(BU,LOW*0.996,'B'),COLORYELLOW,LINETHICK3;
- DRAWTEXT(SEL,HIGH*1.028,'S'),COLOR00FF00,LINETHICK3;
- STICKLINE(买线>=卖线,LOW,HIGH,1,0),COLORRED;
- STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),COLOR0000AA;
- STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),COLOR0000CC;
- STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLOR0000CC;
- STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),COLOR0000EE;
- STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),COLORAAAA00;
- STICKLINE(买线<卖线,CLOSE,OPEN,4,0),COLORBBBB00;
- STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORCCCC00;
- STICKLINE(买线<卖线,CLOSE,OPEN,2,0),COLOREEEE00;
- STICKLINE(买线<卖线,LOW,HIGH,1,0),COLORFFFF00;