C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- VAR1:=MA(CLOSE,30);
- 海底: VAR1-2*STD(CLOSE,60),COLORCYAN,LINETHICK2;
- 水平面:DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL),POINTDOT,colorgreen;
- 天际: VAR1+2*STD(CLOSE,60);
- 人间:(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10,colorwhite;
- 地狱:MA(人间,6),COLORYELLOW;
- SW1:= (EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;
- pp:=sum((close-sw1)/SW1*100+20,1);
- gg:=sum((h-sw1)/SW1*100+20,1);
- dd:=sum((l-sw1)/SW1*100+20,1);
- gc:=sum(pp-gg,1);
- dc:=sum(pp-dd,1);
- 明天买入:=IF((gc<-7),-10,-20);
- 明天卖出:=IF((dc>7),10,20);
- 逢低买入:=ref(明天买入,1);
- 逢高卖出:=ref(明天卖出,1);
- drawtext(逢低买入=-10 ,l-0.2,'低买反弹');
- drawtext(逢高卖出=10 ,H+0.4,'风险');
- pp1:=sum(close-sw1,1);
- ll:=ma(pp1,10);
- tt:=(c-SW1)/SW1*100;
- 超短强买:=IF(CROSS(pp1,ll) and 人间<地狱 and ll<0 and pp1>0 ,50,0);
- 中线买入:=IF((tt<-10),30,0);
- 底部:=ref(中线买入,1);
- drawtext(底部=30,l-0.8,'大底来临');
- drawtext(超短强买=50,l-0.5,'底部启动');
- TTJ:=BARSLAST((VOL=HHV(VOL,20)));
- K0:=TTJ=0;
- K1:=SUMBARS(K0,1);
- K2:=SUMBARS(K0,2);
- K3:=SUMBARS(K0,3);
- K4:=SUMBARS(K0,4);
- K5:=SUMBARS(K0,5);
- K6:=SUMBARS(K0,6);
- K7:=SUMBARS(K0,7);
- K8:=SUMBARS(K0,8);
- K9:=SUMBARS(K0,9);
- K10:=SUMBARS(K0,10);
- C1:=REF(C,K1-1);
- AA:STICKLINE(K1<=30,REF(C,K1-1)*1.002,REF(C,K1-1),10,0),COLORYELLOW;
- BA:STICKLINE(K2<=30,REF(C,K2-1)*1.002,REF(C,K2-1),10,0),COLORWHITE;
- CA:STICKLINE(K3<=30,REF(C,K3-1)*1.002,REF(C,K3-1),10,0),COLORBLUE;
- DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;
- EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;
- FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;
- GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;
- HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;
- IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;
- JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;