C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 买线:EMA(C,2),color000999;
- 卖线:EMA(SLOPE(C,21)*20+C,42),pointdot,coloryellow;
- BUY1:=cross(买线,卖线);
- SEL1:=cross(卖线,买线);
- drawtext(buy1,LOW-0.1,'Ψ '),colorf00ff0,linethick5;
- drawtext(sel1,HIGH+0.1,'◎'),colorwhite,linethick5;
- stickline(买线>=卖线,low,high,0.1,1),colorred;
- stickline(买线>=卖线,close,open,8,1),colorred;
- stickline(买线>=卖线,close,open,10,1),colorbrown;
- stickline(买线<卖线,close,open,10,0),colorffff00;
- stickline(买线<卖线,close,open,8,0),color00ff00;
- stickline(买线<卖线,low,high,0.1,1),color00ff00;
- stickline(cross(买线,卖线) or cross(卖线,买线),open,close,6,0),coloryellow;
-
- 限制:=EMA((((H+C)/2+L+(C+L)/2)/3-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2))/(EMA(HHV (((H+C)/2+L+(C+L)/2)/3,21),2)-EMA(LLV(((H+C)/2+L+(C+L)/2)/3,89),2)),8)*100;
- 平衡:=SMA(EMA(SMA((C+L)/2,3,1),3),5,1);
- DRAWTEXT(FILTER(平衡>REF(平衡,1)AND HHV(MA((H+C)/2,13),10)<REF(HHV(MA((H+C)/2,13),10),1)AND((C+L)/2)>REF((C+L)/2,1),5)AND 限制<88,L*0.98,' ------'),colorcyan;
-
- N:=20;
- N1:=7;
- N2:=69;
- T1:=IF((DATE<=1341231),1,0);
- M3:=EMA(CLOSE,3);
- M8:EMA(CLOSE,8),CoLor008000;
- M13:EMA(M8,13),CoLor0000FF;
- M62:EMA(M8,55),CoLorF0F000;
- VAR1:=EMA(M13,62);
- M81:EMA(M62,81),CoLor00FFFF;
- M144:EMA(VAR1,144),Linethick2,CoLor0000FF;
- M250:EMA(VAR1,250),POINTDOT,Linethick2,CoLorF00FF0;
- VAR2:=(CLOSE+HIGH+LOW)/(3);
- VAR3:=(EMA(VAR2,10))*(T1);
- VAR4:=(REF(VAR3,1))*(T1);
- STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),CoLor00FFFF;
- STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),CoLorFF0000;
- VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
- VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
- DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),CoLor00FFFF;
- DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),CoLor008000;
- VAR7:=REF(CLOSE,1);
- VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
- VAR9:=CROSS(N2,VAR8);
- VARA:=(FILTER(VAR9,4))*(T1);
- DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),CoLorFFFFFF;
- VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
- VARC:=LLV(LOW,34);
- VARD:=HHV(HIGH,34);
- VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
- VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
- DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),CoLorFF00FF;
- DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),CoLor00FFFF;
- VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
- DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;