多空趨勢(主图 源码)
VAR0:=(3*CLOSE+LOW+OPEN+HIGH)/6;
多頭線:(20*VAR0+19*REF(VAR0,1)+18*REF(VAR0,2)+17*REF(VAR0,3)+16*REF(VAR0,4)+15*REF(VAR0,5)+14*REF(VAR0,6)+13*REF(VAR0,7)+12*REF(VAR0,8)+11*REF(VAR0,9)+10*REF(VAR0,10)+9*REF(VAR0,11)+8*REF(VAR0,12)+7*REF(VAR0,13)+6*REF(VAR0,14)+5*REF(VAR0,15)+4*REF(VAR0,16)+3*REF(VAR0,17)+2*REF(VAR0,18)+REF(VAR0,20))/210,CIRCLEDOT,colorFF;
空頭線:MA(多頭線,10),CIRCLEDOT,colorFF00;
STICKLINE(多頭線>空頭線,多頭線,空頭線,10,10),colorFF;
STICKLINE(多頭線<空頭線,多頭線,空頭線,10,10),colorFF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,7,0),colorFF;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),colorFF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),colorFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0),color2020FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),colorB0B0FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),colorFFFF;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),colorFFFF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),colorFFFF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),colorFFFF80;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),colorFFFF80;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),CLOSE,OPEN,7,0),color2020FF;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),CLOSE,HIGH,0.5,0),color2020FF;
STICKLINE(CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,LOW,0.5,0),color2020FF;
CB:=AMOUNT/VOL/100;
VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR16:=EMA(VAR15,13);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR1E:=AMOUNT/VOL/100;
VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=EMA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=EMA(VAR25,5);
VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));
VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90));
VAR2A:=((VAR29+VAR28+VAR27+VAR26+VAR20)/5+165)/4;
VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2+VAR21;
VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2D:=EMA(VAR2C,13);
VAR2E:=(VAR2A+VAR2C)/2/1.1;
VAR2F:=VAR2E;
VAR30:=(VAR2B+VAR2D)/2;
DRAWTEXT(VAR2F<5 AND VAR2F>REF(VAR2F,1) AND REF(VAR2F,1)<REF(VAR2F,2),LOW,'↑'),colorFF;
DRAWTEXT(VAR30>100 AND VAR30<REF(VAR30,1) AND REF(VAR30,1)>REF(VAR30,2),HIGH,'↓'),colorFF00;
- 上一篇公式:股票箱(最好的箱体)
- 下一篇公式:先胜二指禅(主图 源码)