大智慧金银双收指标源码[大智慧公式]
[code]{大智慧金银双收指标源码}
银钱:EMA(CLOSE,6),COLOR00FFFF,LINETHICK2;
VARC:=SMA(MAX(C-ref(C,1),0),6,1)/SMA(ABS(C-ref(C,1)),6,1)*100;
DRAWICON(CROSS(82,VARC),HIGH,2);
VAR6:=ref(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(84,VAR7),H*1.01,'逃'),COLORGREEN ;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
DEA:=EMA(DIFF,9);
MACD:=0.90*(DIFF-DEA);
TJ:=(DIFF>=DEA);
TJ1:=(DIFF>=0);
VAR1:=(CLOSE*2+HIGH+LOW)/4;
SK:= EMA(VAR1,13)-EMA(VAR1,73);
SD:= EMA(SK,2);
DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-ref(C,1))/ref(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/ref(C,1)>0.035)) ,L*0.99,''),COLORGREEN;
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-ref(C,1))/ref(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/ref(C,1)>0.035)),H,L,0.0,0),COLORRED;
CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
WARNING('',CURRENTTIME>180000 and (CXH=4 OR CXH=9));
DRAWTEXTREL(10 ,10 ,'');
STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-ref(C,1))/ref(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/ref(C,1)>0.035)),O,C,2,0),COLORYELLOW;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34)
AND EMA(X1,13)>ref(EMA(X1,13),1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<ref("MACD.MACD"(12,26,9),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := ref(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
BB13:=ATAN(EMA(X1,13)-ref(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
JL01:=MA(C,3);
LJL07:=(3*C+L+O+H)/6;
金线:(20*LJL07+19*ref(LJL07,1)+18*ref(LJL07,2)+17*ref(LJL07,3)+16*ref(LJL07,4)+15*ref(LJL07,5)+14*ref(LJL07,6)+13*ref(LJL07,7)+12*ref(LJL07,8)+11*ref(LJL07,9)+10*ref(LJL07,10)+9*ref(LJL07,11)+8*ref(LJL07,12)+7*ref(LJL07,13)+6*ref(LJL07,14)+5*ref(LJL07,15)+4*ref(LJL07,16)+3*ref(LJL07,17)+2*ref(LJL07,18)+ref(LJL07,20))/210,COLORRED,LINETHICK3;
[/code]
页:
[1]