C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- LOWV:=LLV(LOW,9);
- HIGHV:=HHV(HIGH,9);
- RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);
- K:EMA(RSV,3);
- D:MA(K,3);
- VAR12:=(CLOSE+HIGH+LOW)/3;
- VAR23:=EMA(VAR12,10);
- VAR32:=REF(VAR23,1);
- 绿探底震仓:IF(VAR23,10,DRAWNULL),COLORGREEN,LINETHICK9;
- 红买: IF(VAR23>VAR32,10,DRAWNULL), COLORRED,LINETHICK9;
- 蓝卖: IF(VAR23<VAR32,10,DRAWNULL),COLORFFFF00,LINETHICK9;
- A1AA:=9;
- A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
- DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.03),'小心变盘'),COLORFFFFFF;
- DRAWTEXT(CROSS(83,RSI),H*1.04,' 逃顶')COLORYELLOW;
- VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
- VAR3:=SMA(VAR0,3,1);
- VAR1:=SMA(VAR3,4,1)-10;
- VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
- VAR5:=SMA(VAR4,3,1);
- VAR2:=SMA(VAR5,4,1)-90;
- STICKLINE(REF(VAR1,1)<VAR1,VAR1,REF(VAR1,1),10,0),COLOR0000FF;
- 0, CIRCLEDOT;
- STICKLINE(REF(VAR1,1)>VAR1,VAR1,REF(VAR1,1),5,0),COLOR00FF00;
- 0,COLOR0000FF;
- 上穿买:K,COLORRED;
- 下穿卖:D,COLORFFFF00;
- C4:=CROSS(K,D)AND VAR23>VAR32 AND VAR23>10 ;
- C5:=CROSS(D,K);
- DRAWICON(C4,LOW-0.2,7);
- DRAWICON(C5,HIGH+0.2,8);
- 买入指示:C4*10,COLORWHITE;