C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,1);
- obve:=ema(obv,3);
- {FILLRGN(K1,D1,K1>D1,RGB(255,0,0),K1<D1,rgb(0,255,0));}
- rsv2:=(obve-LLV(obve,120))/(HHV(obve,120)-LLV(obve,120))*100;
- K2:=SMA(RSV2,40,1);
- D2:=SMA(K2,40,1);
- dk:1.5*(k2-d2),linethick0;
- stickline(dk>0,50+2*dk,50,0.8,0),colorred;
- stickline(dk<0,50,50+2*dk,0.8,0),colorgreen;
- RSV:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*200-100)/2;
- k:SMA(SMA( RSV,3,1),3,1);
- D:MA(EMA(k,3),3);
- J:3*k-2*D,COLOR3D,COLORffff00;
- 空头:(-(3*k-2*D)),DOTLINE,COLOR00ff00;
- DIFF:=EMA(CLOSE,13)-EMA(CLOSE,26)*100;
- DEA:=EMA(DIFF,3);
- 多头MACD:(-3*(DIFF-DEA)),LINETHICK2,COLOR0000ff;
- STICKLINE(多头MACD>0,多头MACD,0,2,1),COLORRED,LINETHICK2;
- STICKLINE(多头MACD<0,多头MACD,0,2,1),COLOR00ff00,LINETHICK1;
- 短买:IF((CROSS(k,d) and k<0 ),10,0),color005aff,LINETHICK0;
- DRAWICON((CROSS(k,d) and k<0 ),k,12),ALIGN1,VALIGN0;
- 追击:IF(CROSS(多头MACD,空头),25,0),color00ffff,LINETHICK2;
- VAR1:="DMI.PDI"(12,6);
- VAR2:="DMI.MDI"(12,6);
- VAR3:=VAR1>65 AND VAR1>REF(VAR1,1);
- VAR4:=LLV(VAR1,0);
- VAR5:=BARSLAST(VAR4=VAR1);
- VAR6:=(0-REF(VAR2,4))/(VAR4-REF(VAR2,VAR5))>2;
- VAR7:=VAR1>REF(VAR1,1);
- VAR8:=VOL>2*MA(VOL,30);
- VAR9:="DMI.ADX"(12,6);
- VARA:="DMI.ADXR"(12,6);
- VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
- VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
- VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
- VARE:=0-"MACD.DIFF"(7,21,3);
- VARF:=TROUGHBARS(3,15,1)<4;
- VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
- VAR11:=IF(VARF=1,50,0);
- VAR12:=CROSS(VAR2,VAR1) AND CROSS(VARA,VAR9);
- VAR13:=CROSS(VAR2,VAR1) AND CROSS(VAR9,VARA);
- VAR14:=VARB AND VARC AND VARD AND VAR10 AND VAR6 AND VAR7 AND VAR8*50;
- VAR15:=BARSLAST(CROSS(VAR2,VAR1)=1);
- VAR16:=BARSLAST(CROSS(VAR1,VAR2)=1);
- VAR17:=HHV(VAR1,VAR16);
- VAR18:=BARSLAST(VAR1=VAR17);
- 多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
- 0,COLORRED;
- STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,15,0),colorf00ff0;
- STICKLINE(FILTER(VARF=1,5),50,0,8,0),COLORYELLOW;
- VAR19:=VAR3 OR VAR12 OR VAR13*100;
- VAR1A:=VAR13*100;
-
- DRAWTEXT(FILTER(VARF=1,3),25,'未来★之星'),COLORGREEN ;
-
- STICKLINE(多空<-10,0,多空,0.85,0),COLORyellow;