C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 大盘抄底(主图)
- Z:=MA(C,120);
- VAR3:=(MA(C,5)-Z)/Z;
- VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);
- D1:DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,0.99*LOW ,'★B'),COLORRED;
- D2:DRAWTEXT(REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1,0.99*LOW ,'★B'),COLORGREEN;
- D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.3,0.99*LOW ,'★B'),COLORBLUE;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 大盘逃顶(主图)
- Z:=MA(C,120);
- VAR3:=(MA(H,5)-Z)/Z;
- VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
- D1:DRAWTEXT(CROSS(95,VAR4) AND VAR3>0.3,1.01*HIGH ,'★S'),COLORRED;
- D2:DRAWTEXT( CROSS(93,VAR4) AND HHV(H,30)/LLV(L,30)>1.1 AND REF(Z,1)/Z>0.997 ,1.01*HIGH ,'★S'),COLORGREEN;
- D3:DRAWTEXT(CLOSE<Z AND Z<REF(Z,1) AND REF(VAR4,1)>90 AND VAR4<REF(VAR4,1) AND REF(VAR4,1)>REF(VAR4,2) ,1.01*HIGH,'★S'),COLORBLUE;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 大盘涨跌预测(附图)
- WR1:=100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
- WR2:=100*(HHV(HIGH,20)-HIGH)/(HHV(HIGH,20)-LLV(LOW,20));
- 偏离:(CLOSE/MA(CLOSE,120)-1)*100,COLORSTICK;
- X:0,STICK,LINETHICK3;
- 反弹:IF(WR1>97 ,偏离,0),STICK,LINETHICK3;
- 调整:IF(WR1<3 ,偏离,0),STICK,LINETHICK3;
-
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 主力成本(主图)
-
- ZJ:=(O+H+L+C)/4;
- YZ:=IF(BARSCOUNT(C)>60,VOL/SUM(VOL,60),VOL/SUM(VOL,BARSCOUNT(C)));
- 超短期:DMA(ZJ,YZ/0.125);
- 短期:DMA(ZJ,YZ/0.25);
- 中期:DMA(ZJ,YZ/0.50);
- 长期:DMA(ZJ,YZ);
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 仓位风险(附图)
- RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
- K:=SMA(RSV,3,1);
- ZJ:=(O+H+L+C)/4;
- YZ:=IF(BARSCOUNT(C)>60,VOL/SUM(VOL,60),VOL/SUM(VOL,BARSCOUNT(C)));
- CYC50:=DMA(ZJ,YZ/0.50);
- CYC0:=DMA(ZJ,YZ);
- KPXS:=(CYC50/CYC0-1)*100;
- KP:=IF(KPXS<0,85,IF(KPXS>=0 AND KPXS<5,60,IF(KPXS>=5 AND KPXS<15,35,IF(KPXS>=15,15,90))));
- 风险:(K+KP)/2;
- 仓位:100-风险;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 短线操盘(主图)
- N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
- STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORYELLOW;
- STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE;
- DRAWKLINE(H,O,L,C);
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 中线操盘(主图)
- N:=IF(BARSCOUNT(C)>=45,45,BARSCOUNT(C));
- STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.78),4,0),COLORYELLOW;
- STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.78),4,0),COLORBLUE;
- DRAWKLINE(H,O,L,C);
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 个股操盘(附图)
- Z:=MA(C,120);
- VAR3:=(MA(C,5)-Z)/Z;
- VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
- 波段进场:IF(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2),80,50);
- 反弹进场:IF(REF(VAR4,1)<5 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.3,80,50);
- 超跌进场:IF(CROSS(VAR4,5) AND VAR3<-0.4,80,50);
- STICKLINE(C>=MA(C,10),VAR4,REF(VAR4,1),4,0),COLORRED;
- STICKLINE(C<MA(C,10),VAR4,REF(VAR4,1),4,0),COLORGREEN;
-
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 个股抄底(主图)
- Z:=MA(C,120);
- VAR3:=(MA(C,5)-Z)/Z;
- VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);
- VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);
- D1:DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,LOW ,'★B'),COLORRED;
- D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) AND REF(VAR5,1)<REF(VAR5,2) AND VAR3<-0.3,LOW ,'★B'),COLORGREEN;
- D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.4,LOW ,'★B'),COLORBLUE;
-
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 个股逃顶(主图)
- Z:=MA(C,120);
- VAR3:=(MA(C,5)-Z)/Z;
- VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);
- VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);
- D1:DRAWTEXT(CLOSE<Z AND Z<REF(Z,1) AND REF(VAR4,1)>80 AND VAR4<REF(VAR4,1) AND REF(VAR4,1)>REF(VAR4,2),HIGH,'★S'),COLORBLUE;
- D2:DRAWTEXT(CROSS(90,VAR4) AND VAR5>0.2,HIGH,'★S'),COLORGREEN;
- D3:DRAWTEXT(CROSS(95,VAR4) AND VAR3>0.5,HIGH ,'★S'),COLORRED;
-