【双突破源码】【unity源码买断】【tsallis熵源码】支撑压力突破指标源码_支撑压力指标公式源码
1.֧?支撑指标支撑指标双突破源码?ѹ??ͻ??ָ??Դ??
֧??ѹ??ͻ??ָ??Դ??
突破:=REF(EMA(C,),1);
A1X:=(EMA(C,)-突破)/突破*;
多方:=IF(A1X>=0,REF(EMA(C,),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,,0),COLOR;
STICKLINE(A1X<0,空方,突破,,0),COLORCC;
EE:=(H+L+O+2*C)/5;
CRTP:=EE+(H-L);
CRZL:=2*EE-L;
CRZC:=2*EE-H;
CRFZ:=EE-(H-L);
顶:CONST(CRTP),COLORRED;
压:CONST(CRZL),COLORC7C9FF;
撑:CONST(CRZC),COLOR7C9CFF;
跳:CONST(CRFZ),COLORDDDD;
弹:MA(CLOSE,3);
支撑:EXPMA(CLOSE,);
起涨:MA(C,),COLORFFFF,LINETHICK2;
涨:IF(MA(CLOSE,)>REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORRED,LINETHICK2;
平:IF(MA(CLOSE,)=REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORFFFF,LINETHICK3;
跌:IF(MA(CLOSE,)<REF(MA(CLOSE,),1),MA(CLOSE,),DRAWNULL),COLORGREEN,LINETHICK2;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
DRAWTEXT(ISLASTBAR,跳 , '跳起'),LINETHICK1,COLORDDDD;
DRAWTEXT(ISLASTBAR,撑 , '撑力'),LINETHICK1,COLOR7C9CFF;
DRAWTEXT(ISLASTBAR,压 , '压力'),LINETHICK1,COLORC7C9FF;
DRAWTEXT(ISLASTBAR,顶 , '顶破'),LINETHICK1,COLORFF;
A:MA(C,)<MA(C,) AND COUNT(CROSS(MA(C,5),MA(C,)),) AND REF(L,1)<REF(MA(C,),1) AND REF(C,1)<REF(MA(C,5),1) AND C>REF(H,1) AND REF(C,1)<REF(H,2) AND COUNT(MA(C,)>REF(MA(C,),1),5)>1,NODRAW;
B:MA(C,)>MA(C,) AND REF(L,1)<REF(MA(C,),1)*1. AND C>REF(H,1) AND REF(C,1)<REF(H,2) AND REF(C,1)<REF(H,2),NODRAW;
DRAWICON(A,L-0.,);
DRAWICON(B,L-0.,);
HH:=LLV(L,7)*1.-0.;
STICKLINE(H>=HH,H,H*1.,1,0),COLORFFFF;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.),0.9);
TT1:=REF(EMA(TT2,3),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * );
FF:=EMA(CLOSE,3);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*>1.2;
DD1:=L<MA(C,5)*0.;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFFFF;
日跌:L*0.,NODRAW,COLORFFFF;
今小昨:=IF(C<REF(O,1) AND F<0,1,0);
P:=今小昨;
今小前:=IF(C<REF(O,2) AND F<0,1,0);
P:=今小前;
DL:=P=1 AND REF(P,1)=0 AND P=1 AND REF(P,1)=0;
STICKLINE(DL,O,C,0.1,0),COLORAAAAAA;
BB :=MAX(C,O)-(REF(MAX(C,O),2)-MAX(C,O))/2;
买点:=(H-(REF(H,2)-H)/2);
AA:MAX(BB,买点),NODRAW,COLORFFFF;
STICKLINE(C<O AND F<-3 AND F>-5,C+(O-C)/3,C+(O-C)/3,2.5,0),COLORRED;
STICKLINE(C<O AND F<-3 AND F>-5,C+2*(O-C)/3,C+2*(O-C)/3,2.5,0),COLORRED;
STICKLINE(C<O AND F<=-5 AND F>-7,C+(O-C)/2,C+(O-C)/2,2.5,0),COLORYELLOW;
STICKLINE(C<O AND F<=-7 AND F>-,C+2*(O-C)/3,C+(O-C)/3,2.5,1),COLORYELLOW;
STICKLINE(C<O AND F<=-9.9,O,C,2.5,0),COLORFF;
STICKLINE(C>O AND F>2.9 AND F<5,O+(C-O)/3,O+(C-O)/3,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>2.9 AND F<5,O+2*(C-O)/3,O+2*(C-O)/3,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>=5 AND F<7,O+(C-O)/2,O+(C-O)/2,2.5,0),COLORYELLOW;
STICKLINE(C>O AND F>=7 ,O+2*(C-O)/3,O+(C-O)/3,2.5,1),COLORYELLOW;
A1:=MA(CLOSE,)+ABS(MA(CLOSE,)-REF(MA(CLOSE,),1));
B1:=MA(CLOSE,)+MA(CLOSE,)-REF(MA(CLOSE,),1);
分水岭:IF(MA(CLOSE,)<B1,B1,MA(CLOSE,)),COLORFFFF,LINETHICK2;
操作线:分水岭-(EMA(C,3)-分水岭),COLORFFFF,LINETHICK2;
PM:MA(C,5),COLORWHITE,LINETHICK2;
IF(PM>REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED;
IF(PM<REF(PM,1),PM,DRAWNULL),COLORFF,LINETHICK2;
S:=(PM>操作线);
DD:=分水岭<REF(分水岭,1);
IF(DD,分水岭,DRAWNULL),COLORFF,LINETHICK2;
IF(S,分水岭,DRAWNULL),COLORFF,POINTDOT,LINETHICK4;
DRAWICON(CROSS(分水岭,操作线),分水岭-0.1,1);{ 买入红箭头};