C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- VAR1:=(C+H+O+L)/4;
- 卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
- 买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
- 幅度:100*(卖出-买入)/买入,NODRAW;
- MA1:=MA(VAR1,3);
- STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
- STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
- STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
- STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
- STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
- STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;
- STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
- STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),COLORMAGENTA;
- STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
- STICKLINE(买入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
- DRAWTEXT(CROSS(C,买入) OR (L<买入),LOW*0.95,'B'),COLORRED,LINETHICK2;
- DRAWTEXT(CROSS(C,卖出) OR (H>卖出),HIGH*1.02,'S'),COLORGREEN;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 副图:薛斯2
- AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
- CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
- DD:=DMA(CLOSE,CC);
- 通道1:AA*102/100;
- 通道2:AA*(200-102)/100;
- 通道3:(1+7/100)*DD;
- 通道4:(1-7/100)*DD;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- N1:=7;
- N2:=27;
- RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
- 短K:SMA(RSV,3,1),COLORF580F5,LINETHICK0;
- 短D:SMA(短K,3,1),COLORCCDD33,LINETHICK0;
- RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;
- 中K:SMA(RSV1,5,1),COLORRED,LINETHICK0;
- 中D:SMA(中K,10,1),COLOR33AA33,LINETHICK0;
- 短:=3*短K-2*短D;
- 中:=3*中K-2*中D;
- 趋势线:(短+中)/2;
- 底线:10,COLORWHITE;
- 顶线:90,{COLOR00FFFF;},COLORWHITE;
- STICKLINE(短K>短D,短K,短D,3,1),COLORF580F5;
- STICKLINE(短K<=短D,短K,短D,3,1),COLORCCDD33;
- STICKLINE(中K>中D,中K,中D,0.1,0),COLORRED;
- STICKLINE(中K<=中D,中K,中D,0.1,0),COLORGREEN;
- 中J:=3*中K-2*中D,COLORFF00FF;
- 超跌:IF(中J<0,10,0),COLORLIGREEN;
- BDDD:=LLV(中J,2)=LLV(中J,8);
- 重启:IF(CROSS(中J,REF(中J+0.01,1)) AND BDDD AND 中J<20,10,-10),COLORLIRED;
- 加码:IF(CROSS(中J,REF(中J+0.01,1)) AND BDDD AND BETWEEN(中J,20,60),1,0),COLORRED,NODRAW;
- BDGD:=HHV(中J,2)=HHV(中J,8) AND 中J>80;
- 小心:IF(CROSS(REF(中J-0.01,1),中J) AND REF(BDGD,1),100,120),COLORYELLOW;
- DRAWICON(加码,中J,1);
- STICKLINE(加码,10,25,1,0),COLORYELLOW;
- MM:=短K>短D AND REF(短K,1)<REF(短D,1) AND 短K<40 ;
- DRAWICON(MM,0,25),COLORRED;
- DRAWICON(COUNT(MM,3) AND CROSS(趋势线,中D) AND 短D>中D,10,15),COLORRED;
- DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);
- DEA:=EMA(DIF,9);
- AAAA:=COUNT(MA(CLOSE,20)>MA(CLOSE,10),10)=10;
- GX:=MAX(MA(CLOSE,5),MAX(MA(CLOSE,20),MA(CLOSE,10)));
- DX:=MIN(MA(CLOSE,5),MIN(MA(CLOSE,20),MA(CLOSE,10)));
- BBBB:=ABS(GX/DX-1)*100<=15;
- MACD:=2*(DIF-DEA);
- CCCC:=COUNT(MACD<0,10)=10;
- DDDD:=IF(AAAA AND BBBB AND CCCC,5,0);
- A:STICKLINE(CROSS(0.1,DDDD) AND CROSS(MACD,0),0,15,1,0),COLORWHITE;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- A:EMA(CLOSE,9)-EMA(CLOSE,18);
- B:EMA(A,7),LINETHICK1;
- MACD:=2*(A-B);
- STICKLINE(MACD>=0,MACD,0,0,0),COLORF00FF0;
- STICKLINE(MACD<0,MACD,0,1,0),COLORF00FF0;
- STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLORFFFF00;
- STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFFFF00;
- IF(A<0,A,0),COLORRED,LINETHICK1;
- IF(A<0,0,A),COLORRED,LINETHICK1;
- IF(A<B,A,B),COLOR00FF00,LINETHICK1;
- IF(A>B,B,B),COLORWHITE,LINETHICK1;
-
-
- 机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,0.5,0),1),COLORGREEN;
- LC:=REF(CLOSE,1);
- RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
- E:=CROSS(83,RSI);
- STICKLINE( E,E,0.5,1,0),COLOR00FFFF;
- DRAWTEXT(E,0.85,' 逃顶'),COLORGREEN;
-
- 低位金叉:CROSS(A,B) AND A<-0.1,COLORRED;
- STICKLINE(低位金叉,0,0.5,2,0),COLORRED;
- JCCOUNT:=COUNT(CROSS(A,B),BARSLAST(B>=0));
- 二次金叉:CROSS(A,B) AND B<0 AND COUNT(JCCOUNT=2,21)=1,COLORYELLOW;
- STICKLINE(二次金叉,0,0.2,2,0),COLORYELLOW;
- DRAWICON(二次金叉,B*0.9,25) ;
-
- DRAWICON(LLV(MACD,4)>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2) AND REF(MACD,2)>REF(MACD,3),MACD,2);
- DRAWICON(HHV(MACD,4)<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3),MACD,1);
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- LFS ;
- IF(HHV(LFS,50)=LFS,80,0);
- BDGD:=LFS=HHV(LFS,10);
- GDSJ:=BARSLAST(BDGD);
- 前高:IF(GDSJ>0,REF(LFS,GDSJ),REF(LFS,GDSJ)),COLOR00FF00,LINETHICK1;