财富侦探
横向参数:CLOSE/MA(CLOSE,13)-INDEXC/MA(INDEXC,13);
VAR1:=EMA(MA(IF(CLOSE>OPEN,(CLOSE-OPEN)*VOL,IF(CLOSE
VAR5:=EMA(MA(IF(CLOSEREF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1);
VAR6:=EMA(MA(IF(OPENREF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1);
VAR7:=CLOSE>OPEN;
VAR8:=CLOSE>REF(CLOSE,1);
VAR9:=OPEN>REF(CLOSE,1);
VARA:=VAR7 OR VAR8 OR VAR9;
VARB:=(VAR1+VAR2+VAR3)/3/100;
VARC:=(VAR4+VAR5+VAR6)/3/100;
VARD:=EMA((COUNT(VAR8,12)/12+COUNT(VAR7,12)/12+COUNT(VAR9,12)/12)/3*MA(VARB,5)*2*1.1,2);
VARE:=VARC>0 OR VARB
VAR10:=VARC<0 AND CROSS(VARB,VARD);
VAR11:=VARC>0 AND CROSS(VARB,VARD);
VAR12:=VARC<0 AND VARB>VARD AND (CLOSE+OPEN)/2>MA(CLOSE,5);
VAR13:=VARE AND (CLOSE+OPEN)/2
VAR15:=ABS(VARB-VARC);
VAR16:=ABS(VARD-VARC);
VAR17:=ABS(-VARC);
VAR18:=ABS(-VARD);
VAR19:=IF(VARC<0 AND VARB>VARD AND (CLOSE+OPEN)/2>MA(CLOSE,5),ABS(VARB-VARC),0);
VAR1A:=IF(VARE AND (CLOSE+OPEN)/2
VAR1C:=MAX(VAR1B,MAX(VAR19,VAR1A));
VAR1D:=MAX(VAR15,MAX(VAR16,MAX(VAR17,VAR18)));
VAR1E:=MIN(VAR15,MIN(VAR16,MIN(VAR17,VAR18)));
VAR1F:=MAX(VARB,MAX(VARC,VARD));
VAR20:=MIN(VARB,MIN(VARC,VARD));
VAR21:=(VARB+VARC+VARD)/3;
VAR22:=VAR15 OR VAR17 OR VAR18;
VAR23:=VAR16 OR VAR17;
VAR24:=VAR16;
VAR25:=VARC<0 AND VARB>VARD AND (CLOSE+OPEN)/2>MA(CLOSE,5);
VAR26:=VARE AND (CLOSE+OPEN)/2
VAR28:=REF(VAR1A,1)<>0 OR REF(VAR1B,1)<>0;
VAR29:=REF(VAR1A,1)<>0 AND REF(VAR1B,1)<>0;
VAR2A:=VAR1B=VAR1C AND REF(VAR19,1)<>0;
VAR2B:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR2C:=(15*VAR2B+14*REF(VAR2B,1)+13*REF(VAR2B,2)+12*REF(VAR2B,3)+11*REF(VAR2B,4)+10*REF(VAR2B,5)+9*REF(VAR2B,6)+8*REF(VAR2B,7)+7*REF(VAR2B,8)+6*REF(VAR2B,9)+5*REF(VAR2B,10)+4*REF(VAR2B,11)+3*REF(VAR2B,12)+2*REF(VAR2B,13)+REF(VAR2B,14))/120;
VAR2D:=(20*VAR2C+19*REF(VAR2C,1)+18*REF(VAR2C,2)+17*REF(VAR2C,3)+16*REF(VAR2C,4)+15*REF(VAR2C,5)+14*REF(VAR2C,6)+13*REF(VAR2C,7)+12*REF(VAR2C,8)+11*REF(VAR2C,9)+10*REF(VAR2C,10)+9*REF(VAR2C,11)+8*REF(VAR2C,12)+7*REF(VAR2C,13)+6*REF(VAR2C,14)+5*REF(VAR2C,15)+4*REF(VAR2C,16)+3*REF(VAR2C,17)+2*REF(VAR2C,18)*REF(VAR2C,19))/210;
VAR2E:=3*VAR2C-2*VAR2D;
VAR2F:=(5*VAR2E+4*REF(VAR2E,1)+3*REF(VAR2E,2)+2*REF(VAR2E,3)+REF(VAR2E,4))/15/50+4-3;
多空量能:VAR2F,POINTDOT,LINETHICK0;
VAR30:=EMA(0.667*REF(VAR2F,1)+0.333*VAR2F,2);
VAR31:=VAR2F*1;
VAR32:=VAR30*1;
VAR33:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),10);
VAR34:=HIGH-REF(HIGH,1);
VAR35:=REF(LOW,1)-LOW;
VAR36:=SUM(IF(VAR34>0 AND VAR34>VAR35,VAR34,0),10);
VAR37:=SUM(IF(VAR35>0 AND VAR35>VAR34,VAR35,0),10);
VAR38:=VAR36*100/VAR33;
VAR39:=VAR37*100/VAR33;
VAR3A:=(VAR38-VAR39)/30;
VAR3B:=CLOSE/REF(EMA(CLOSE,30),30);
VAR3C:=INDEXC/REF(EMA(INDEXC,30),30);
相对强度:VAR3B/VAR3C*10-10;
STICKLINE(VAR3A>=0,VAR3A-5,-5,3,0),LINETHICK1,colorFF;
STICKLINE(VAR3A<0,REVERSE(VAR3A)-5,-5,3,0),LINETHICK1,colorFFFF00;
VAR3D:=(HIGH+LOW)/2;
VAR3E:=SMA(VAR3D,5,1)-SMA(VAR3D,34,1);
VAR3F:=SMA(VAR3E-SMA(VAR3E,5,1),5,1);
VAR40:=VAR3E>REF(VAR3E,1) AND VAR3F>REF(VAR3F,1);
VAR41:=VAR3E
VAR42:=VAR3E>REF(VAR3E,1) AND VAR3F
VAR43:=VAR3EREF(VAR3F,1);
混沌多空:STICKLINE(VAR40,VAR2F,VAR2F*1.1,2,0),LINETHICK2;
STICKLINE(VAR41,VAR2F,VAR2F*1.1,2,0),LINETHICK2,colorFF00;
STICKLINE(VAR42,VAR2F,VAR2F*1.2,2,0),LINETHICK2,colorFFFF;
STICKLINE(VAR43,VAR2F,VAR2F*1.1,2,0),LINETHICK2,colorFFFF00;
STICKLINE(横向参数>=0,REVERSE(横向参数)*30+5,5,3,0),LINETHICK1,colorFF;
STICKLINE(横向参数<0,横向参数*30+5,5,3,0),LINETHICK1,colorFFFF00;
STICKLINE(VAR25,VARB/50,VARC/50,3,0),LINETHICK1,colorFFFF;
STICKLINE(NOT(VAR14),VARD/50,VARC/50,3,0),LINETHICK1,colorFF;
STICKLINE(VAR26,VARD/50,VARC/50,3,0),LINETHICK1,colorFFB61B;
STICKLINE(VAR26 AND NOT(VAR14) AND REF(VAR19,1),VARD/50,VARC/50,3,0),LINETHICK1,colorFF;
STICKLINE(VAR12 AND CLOSE>MA(CLOSE,5),0,VARC/50,3,0),LINETHICK1,colorFF;
STICKLINE(VARF,0,VARD/50,3,0),LINETHICK1,colorFFB61B;
STICKLINE(VAR2A,VAR1F/50,VAR20/50,3,0),LINETHICK1,colorFF00;