指标说明:krrK线密码—破译K线的密码
krrK线密码—破译K线的密码
副图指标,红色带趋势做多,蓝色带趋势做空。绿色方块大趋势(月线级别)空,紫色多,出现量化柱信号绝地抄底。krrK线密码—破译K线的密码
指标例图:krrK线密码—破译K线的密码
krrK线密码—破译K线的密码
krrK线密码—破译K线的密码
指标源码:krrK线密码—破译K线的密码
krrK线密码—破译K线的密码
RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
量能:IF(CAPITAL< 1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRAW;
趋势:IF(CAPITAL< 1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW;
STICKLINE(VAR3>0,50,100,5,0),COLOR990099;
STICKLINE(VAR3< -100,0,50,10,0),COLOR009900;
DRAWICON(CROSS(VAR44,VAR55) AND VAR55< 30,2,1);
DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);
DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));
DRAWTEXT_FIX(C>O,1,1,0,''),COLORRED;
KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;
DD:SMA(KK,3,1),COLOR00FFFF;
DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'研究所共振'),COLOR00FFFF;
研究所共振:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));
STICKLINE(研究所共振,0,85,0,1)COLORYELLOW;
STICKLINE(吸筹,0,25,2,0)COLORRED;
STICKLINE(金,100,85,2,0)COLORYELLOW;
均线:=MA(C,5)>REF(MA(C,5),1) AND MA(C,10)< REF(MA(C,10),1) AND MA(C,20)< REF(MA(C,20),1);
不破价顶:=(C>=RC3) AND RC1>=RC3 AND RC2>=RC3;
不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;
阳柱:=C>=O OR (C< O AND 均价>RC1);
价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2);
量渐减:=V< RV1 AND RV1<=RV2;
均量减:=((V+RV1+RV2)/3)<=RV3;
日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);
基前跳空:=RO3>RC4 AND RC4>RO4;
量化柱1T:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶 AND 不破价底 AND 基前跳空;
BACKSET101T:=BACKSET(量化柱1T,5);
FILTER101T:=FILTER(BACKSET101T,4);
量化柱1:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶 AND 不破价底 ;
BACKSET101:=BACKSET(量化柱1,4);
FILTER101:=FILTER(BACKSET101,3);
量化柱11:=量化柱1 AND REF(量化柱1,1);
BACKSET1011:=BACKSET(量化柱11,4);
FILTER1011:=FILTER(BACKSET1011,3);
量化柱12:=量化柱1 AND REF(量化柱1,2);
BACKSET1012:=BACKSET(量化柱12,4);
FILTER1012:=FILTER(BACKSET1012,3);
量化柱13:=量化柱1 AND REF(量化柱1,3);
BACKSET1013:=BACKSET(量化柱13,4);
FILTER1013:=FILTER(BACKSET1013,3);
量化柱2T:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(量化柱1) AND NOT(量化柱1T);
BA201T:=BACKSET(量化柱2T,5);
FILTER201T:=FILTER(BA201T,4);
量化柱2:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(量化柱1) AND NOT(量化柱1T);
BACKSET201:=BACKSET(量化柱2,4);
FILTER201:=FILTER(BACKSET201,3);
量化柱21:=量化柱2 AND REF(量化柱2,1);
BACKSET2011:=BACKSET(量化柱21,4);
FILTER2011:=FILTER(BACKSET2011,3);
量化柱22:=量化柱2 AND REF(量化柱2,2);
BACKSET2012:=BACKSET(量化柱22,4);
FILTER2012:=FILTER(BACKSET2012,3);
量化柱23:=量化柱2 AND REF(量化柱2,3);
BACKSET2013:=BACKSET(量化柱23,4);
FILTER2013:=FILTER(BACKSET2013,3);
量化柱3T:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(量化柱1) AND NOT(量化柱2) AND NOT(量化柱1T) AND NOT(量化柱2T);
BACKSET301T:=BACKSET(量化柱3T,5);
FILTER301T:=FILTER(BACKSET301T,4);
量化柱3:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶 AND 不破价底 AND NOT(量化柱1) AND NOT(量化柱2) AND NOT(量化柱1T) AND NOT(量化柱2T);
BACKSET301:=BACKSET(量化柱3,4);
FILTER301:=FILTER(BACKSET301,3);
量化柱31:=量化柱3 AND REF(量化柱3,1);
BACKSET3011:=BACKSET(量化柱31,4);
FILTER3011:=FILTER(BACKSET3011,3);
量化柱32:=量化柱3 AND REF(量化柱3,2);
BACKSET3012:=BACKSET(量化柱32,4);
FILTER3012:=FILTER(BACKSET3012,3);
量化柱33:=量化柱3 AND REF(量化柱3,3);
BACKSET3013:=BACKSET(量化柱33,4);
FILTER3013:=FILTER(BACKSET3013,3);
量化柱4T:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(量化柱1) AND NOT(量化柱1T) AND NOT(量化柱2) AND NOT(量化柱2T) AND NOT(量化柱3) AND NOT(量化柱3T);
BACKSET401T:=BACKSET(量化柱4T,5);
FILTER401T:=FILTER(BACKSET401T,4);
量化柱4:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶 AND 不破价底 AND NOT(量化柱1) AND NOT(量化柱2) AND NOT(量化柱3) AND NOT(量化柱1T) AND NOT(量化柱2T) AND NOT(量化柱3T);
BACKSET401:=BACKSET(量化柱4,4);
FILTER401:=FILTER(BACKSET401,3);
量化柱41:=量化柱4 AND REF(量化柱4,1);
BACKSET4011:=BACKSET(量化柱41,4);
FILTER4011:=FILTER(BACKSET4011,3);
量化柱42:=量化柱4 AND REF(量化柱4,2);
BACKSET4012:=BACKSET(量化柱42,4);
FILTER4012:=FILTER(BACKSET4012,3);
量化柱43:=量化柱4 AND REF(量化柱4,3);
BACKSET4013:=BACKSET(量化柱43,4);
FILTER4013:=FILTER(BACKSET4013,3);
量化柱5T:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(量化柱1) AND NOT(量化柱2) AND NOT(量化柱3) AND NOT(量化柱4) AND NOT(量化柱1T) AND NOT(量化柱2T) AND NOT(量化柱3T) AND NOT(量化柱4T);
BACKSET501T:=BACKSET(量化柱5T,5);
FILTER501T:=FILTER(BACKSET501T,4);
量化柱5:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶 AND 不破价底 AND NOT(量化柱1) AND NOT(量化柱2) AND NOT(量化柱3) AND NOT(量化柱4) AND NOT(量化柱1T) AND NOT(量化柱2T) AND NOT(量化柱3T) AND NOT(量化柱4T);
BACKSET501:=BACKSET(量化柱5,4);
FILTER501:=FILTER(BACKSET501,3);
量化柱51:=量化柱5 AND REF(量化柱5,1);
BACKSET5011:=BACKSET(量化柱51,4);
FILTER5011:=FILTER(BACKSET5011,3);
量化柱52:=量化柱5 AND REF(量化柱5,2);
BACKSET5012:=BACKSET(量化柱52,4);
FILTER5012:=FILTER(BACKSET5012,3);
量化柱53:=量化柱5 AND REF(量化柱5,3);
BASET5013:=BACKSET(量化柱53,4);
FILTER5013:=FILTER(BASET5013,3);
量化柱6T:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(量化柱1) AND NOT(量化柱2) AND NOT(量化柱3) AND NOT(量化柱4) AND NOT(量化柱5) AND NOT(量化柱1T) AND NOT(量化柱2T) AND NOT(量化柱3T) AND NOT(量化柱4T) AND NOT(量化柱5T);
BACKSET601T:=BACKSET(量化柱6T,5);
FILTER601T:=FILTER(BACKSET601T,4);
量化柱6:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND NOT(量化柱1) AND NOT(量化柱2) AND NOT(量化柱3) AND NOT(量化柱4) AND NOT(量化柱5) AND NOT(量化柱1T) AND NOT(量化柱2T) AND NOT(量化柱3T) AND NOT(量化柱4T) AND NOT(量化柱5T);
BACKSET601:=BACKSET(量化柱6,4);
FILTER601:=FILTER(BACKSET601,3);
量化柱61:=量化柱6 AND REF(量化柱6,1);
BACKSET6011:=BACKSET(量化柱61,4);
FILTER6011:=FILTER(BACKSET6011,3);
量化柱62:=量化柱6 AND REF(量化柱6,2);
BACKSET6012:=BACKSET(量化柱62,4);
FILTER6012:=FILTER(BACKSET6012,3);
量化柱63:=量化柱6 AND REF(量化柱6,3);
BACKSET6013:=BACKSET(量化柱63,4);
FILTER6013:=FILTER(BACKSET6013,3);
FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));
FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 AND NOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));
FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));
FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));
FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));
FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));
FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6,COLOR0099FF;
量化柱:=FIL AND NOT(REF(FIL,4));
FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));
FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));
FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));
FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));
FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));
FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));
FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;
元帅柱:=FILT AND NOT(REF(FILT,5));
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
阻力:=L1+P1*7/8,COLORGREEN;
支撑:=L1+P1*0.5/8,COLORRED;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3),LINETHICK2,COLORLIMAGENTA;
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备买入:=STICKLINE(趋势线< 11,趋势线,11,5,0),COLORYELLOW;
AA:=(趋势线< 11) AND FILTER((趋势线<=11),15) AND C< 中线;
BB0:=REF(趋势线,1)< 11 AND CROSS(趋势线,11) AND C< 中线;
BB1:=REF(趋势线,1)< 11 AND REF(趋势线,1)>6 AND CROSS(趋势线,11);
BB2:=REF(趋势线,1)< 6 AND REF(趋势线,1)>3 AND CROSS(趋势线,6);
BB3:=REF(趋势线,1)< 3 AND REF(趋势线,1)>1 AND CROSS(趋势线,3);
BB4:=REF(趋势线,1)< 1 AND REF(趋势线,1)>0 AND CROSS(趋势线,1);
BB5:=REF(趋势线,1)< 0 AND CROSS(趋势线,0);
BB:=BB1=1 OR BB2=1 OR BB3=1 OR BB4=1 OR BB5=1;
LTP:=CAPITAL*100/100000000;
挂帅:COUNT(买入,帅距)>1 AND (EVERY(量化柱,3) OR COUNT(元帅柱,10)>1),NODRAW;
STICKLINE(挂帅,0,100,0.1,0)COLORLIMAGENTA;