淘宝上卖的公式
先知秘籍分时副图 先知秘籍分时主图 尊享版
先知秘籍幅分
{填充背景}
DRAWGBK(C 0, RGB(1,1,1),RGB(1,1,1),0,'0',0);
DRAWGBK(C 0,RGB(0,0,0),RGB(00,0,0),0,'EM',0);
{SHENLONG}
JJ:'神龙KDJ.J';
底1:10,DOTLINE;
顶1:90,DOTLINE;
{}
X_1:=1160130;
X_2:=IF(DATE X_1,1,0);
X_3:=1;
X_4:=WINNER(CLOSE)*100;
X_5:=EMA((-100)*(HHV(HIGH,134)-CLOSE)/(HHV(HIGH,134)-LLV(LOW,134)),14)*X_3;
X_6:=(CLOSE-LLV(LOW,600))/(HHV(HIGH,600)-LLV(LOW,600))*100;
贤内助1:=SMA(X_6,5,1)*X_3,COLORMAGENTA,LINETHICK3;
DRAWBAND(JJ{贤内助1},0,10,RGB(255,255,71));
能量:SMA(X_6,5,1)*X_3,COLORRED,LINETHICK3;
趋势:(X_5+100)*X_3,COLORYELLOW,LINETHICK2;
X_7:=SMA((CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100,2,1);
位置:=SMA(X_7,2,1)*X_3,COLORCYAN;
X_8:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
X_9:=100+(-ABS(X_8));
X_10:=ABS(X_8);
红柱:STICKLINE(CROSS(位置,X_10)*X_3,0,10,2,0),COLORRED;
{绿柱:STICKLINE(CROSS(位置,X_9)*X_3,70,100,2,0),COLORGREEN;}
DRAWICON(X_4 10 AND 趋势 10 AND 能量 5 AND CROSS(X_4 REF(X_4,1) AND X_3,0.618),20,1);
{DRAWICON(趋势 90 AND 能量 90 AND CROSS(趋势 REF(趋势,1) AND 能量 REF(能量,1),0.382) AND X_3,80,2);}
{DRAWICON(TIME2 94500 AND TIME2 130000 AND 趋势 3 AND 能量 3 AND 位置 3 AND X_3,20,24);}
{DRAWICON(TIME2 130000 AND 趋势 3 AND 能量 3 AND 位置 3 AND X_3,20,25);}
{DRAWICON(TIME2 94000 AND 趋势 97 AND 能量 97 AND 位置 97 AND X_3,50,15)NODRAW;}
{DRAWICON(TIME2 130000 AND 趋势 2 AND 能量 1 AND 位置 1 AND X_3,60,7);}
{DRAWICON(TIME2 94000 AND 趋势 98 AND 能量 99 AND 位置 99 AND X_3,60,8)NODRAW;}
危险:=100,COLORCC6633,LINETHICK2;{原版90}
警戒:=80,COLORFF80FF;
次险:=85,COLORGREEN;{原版75}
过渡:=15,COLORGREEN;{原版20}
安全:=10,COLORFF80FF,LINETHICK2;
底部:=0,COLORCC6633,LINETHICK2;
{新加NB全息}
XA_1:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
XA_2:=SMA(XA_1,14,1);
XA_3:=SMA(XA_2,5,1);
XA_4:=3*XA_2-2*XA_3;
顶:=90,COLORGREEN;
底:=10,COLORYELLOW;
全息:=EMA(XA_1,14),COLORLIGRAY,LINETHICK1;
STICKLINE(CROSS(10,全息),0,10,2,0)NODRAW,COLORRED;
STICKLINE(CROSS(全息,90),100,90,2,0)NODRAW,COLORGREEN;
{分时轨道}
X_1A:=CONST(REF(CLOSE,480));
X_2A:=CONST(HHV(HIGH,480));
X_3A:=CONST(LLV(LOW,480));
X_4A:=MAX(X_1A,X_2);
X_5A:=MIN(X_1A,X_3);
X_6A:=X_4A-X_5A;
X_7A:=(EMA(CLOSE,5)+EMA(CLOSE,15))/2;
X_8A:=(EMA(CLOSE,30)+EMA(CLOSE,60))/2;
X_9A:=SUM(CLOSE*VOL,BARSSINCE(VOL 0)+1)/SUM(VOL,BARSSINCE(VOL 0)+1)+(BARSSINCE(VOL 0)+1)*0;
X_10A:=(X_9A+DYNAINFO(5))/2;
X_11A:=(X_9A+DYNAINFO(6))/2;
X_12A:=EMA(EXPMA(CLOSE,20),13);
均价:=X_9A,COLORYELLOW;
上轨:=X_10A,COLORRED;
下轨:=X_11A,COLORGREEN;
回调认同:=X_12A,COLORMAGENTA;
阻力:=X_5A+X_6A*7/8,COLORCYAN;
支撑:=X_5A+X_6A*1/8,COLORMAGENTA;
当前价格:=CLOSE,COLORWHITE;
{分时量比VS换手}
分时换手:SUM(IF(VOL,VOL,0),0)/CAPITAL*100,COLORRED,LINETHICK2,NODRAW;
W:=VOL*CLOSE/100;
A2:=SUM(IF(W/8 20 AND CLOSE REF(CLOSE,1),W,0),0);
A3:=SUM(IF(W/8 20 AND CLOSE REF(CLOSE,1),W,0),0);
机构买:=A2;
机构卖:=A3;
机构买卖比:=A2/A3,COLORMAGENTA;
内外盘比:=DYNAINFO(22)/DYNAINFO(23),NODRAW;
TDXSTEP177:=1.7,COLORRED;
昨高:=SUPAMO.主力资金线#DAY;
TT:=IF(HOUR 12,(HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);
分时量比:SUM(VOL,0)/TT/DYNAINFO(16),COLORRED,NODRAW;
当日量比:DYNAINFO(17)NODRAW,COLORYELLOW;
当日换手率:SUM(V,FROMOPEN)/CAPITAL*100,NODRAW,COLORYELLOW;
最高量:=HHV(分时量比,480),DOTLINE,COLORCYAN;
量比突破1:=分时量比=最高量 AND 最高量
T预警:=IF(FILTER(分时量比 1/100 AND CLOSE 昨高,240) AND 机构买 机构卖 AND CLOSE 30 AND CLOSE 5 AND 最高量 5,最高量+0.025,0),COLORGREEN;
一飞冲天:=IF(FILTER(CROSS(量比突破1,最高量),240) AND 机构买 机构卖 AND CLOSE 30 AND CLOSE 5,分时量比+0.3,0),COLORMAGENTA;
{资金分时}
资金流入:=SUM(IF(C REF(C,1),C*V,0),FROMOPEN),LINETHICK2,COLORRED;
资金流出:=SUM(IF(C REF(C,1),C*V,0),FROMOPEN),LINETHICK2,COLORGREEN;
进出:=资金流入-资金流出,COLORYELLOW;
WW:=进出
QQ:=进出
涨停基因:分时换手 0.2 AND 分时量比 量比基数 AND WW AND (DYNAINFO(20)-DYNAINFO(21) C*涨停基数),COLORMAGENTA;
涨停基因*20,COLORMAGENTA;
STICKLINE(FILTER(涨停基因,500),危险,底部,2,0)COLORMAGENTA;
DRAWTEXT(FILTER(涨停基因,500),25,' 涨停确定')COLORYELLOW;
DRAWICON(FILTER(涨停基因,500),25, 27);
关注基因:分时换手 0.05 AND 分时量比 预量基数 AND WW AND (DYNAINFO(20)-DYNAINFO(21) C*预涨基数),COLORMAGENTA;
STICKLINE(FILTER(关注基因,240),危险,底部,2,0)COLORMAGENTA;
DRAWTEXT(FILTER(关注基因,240),10,' 涨停初现')COLORYELLOW;
DRAWICON(FILTER(关注基因,240),10, 27);
{机构}
成交额:=V*C/100,NODRAW;{万元}
JGA2:=SUM((IF(((成交额/8 20) AND (CLOSE (REF(CLOSE,1)))),成交额,0)),0);
JGA3:=SUM((IF(((成交额/8 20) AND (CLOSE (REF(CLOSE,1)))),成交额,0)),0);
JGA4:=SUM((IF(((成交额/8 20) AND (CLOSE (REF(CLOSE,1)))),成交额,0)),0);
JGA5:=SUM((IF(((成交额/8 20) AND (CLOSE (REF(CLOSE,1)))),成交额,0)),0);
JGA6:=((JGA2+JGA3)+JGA4)+JGA5;
JGA7:=IF((ISLASTBAR),((100*JGA2)/JGA6),0);
JGA8:=IF((ISLASTBAR),((100*JGA3)/JGA6),0);
JGA9:=IF((ISLASTBAR),((100*JGA4)/JGA6),0);
JGA10:=IF((ISLASTBAR),((100*JGA5)/JGA6),0);
机构买A:=(JGA2),LINETHICK6,COLORRED;
机构卖A:=(JGA3),LINETHICK6,COLORFFFF55;
机构进出A:=机构买A-机构卖A,NODRAW;
散户买A:=(JGA4),COLOR5555FF;{细红线}
散户卖A:=(JGA5),COLOR55FF55;{细绿线}
强势:=((100*JGA2)/JGA6
强势画黄线:=STICKLINE(强势,机构买A*1.02,机构买A*1.1,1,0),COLORYELLOW,NODRAW;
拉升:=((100*JGA2)/JGA6-(100*JGA3)/JGA6) 18 AND (100*JGA2)/JGA6-(100*JGA5)/JGA6
拉升画红线:=STICKLINE(拉升,机构买A*1.1,机构买A*1.2,1,0),COLORFF00FF;
JGM:=DRAWTEXT(ISLASTBAR=1,机构买A*0.95,'●机构买'),LINETHICK2,COLORRED,NODRAW;
JGW:=DRAWTEXT(ISLASTBAR=1,机构卖A*0.95,'○机构卖'),LINETHICK2,COLORFFFF55,NODRAW;
JGM1:=DRAWTEXT(机构进出A 0 AND REF(机构进出A,1) =0,机构买A*1.02,'●机买'),COLORRED,NODRAW;
JGM2:=DRAWTEXT(机构进出A 0 AND REF(机构进出A,1) =0,机构买A*0.98,'○机卖'),COLORFFFF55,NODRAW;
总:=(机构买A+机构卖A+散户买A+散户卖A);
分机构买:=机构买A/总*100,COLORWHITE;
分机构卖:=机构卖A/总*100,COLORGRAY;
分散户买:=散户买A/总*100;
分散户卖:=散户卖A/总*100;
心电图:分机构买,COLORWHITE;
电波:分机构卖,COLORGRAY;
DRAWTEXT(CROSS(分机构买,分机构卖) AND 分机构买 分散户买 AND 分机构买 分散户卖,分机构买,'金叉')COLORWHITE;
强势背离:=分机构买 REF(分机构买,1) AND 分机构卖 REF(分机构买,1);
强心剂A:IF(强势画黄线 AND 拉升画红线,分机构买,DRAWNULL)COLORMAGENTA,LINETHICK2;
强心剂B:IF( 强势背离,分机构买,DRAWNULL)COLORRED,LINETHICK2;
DRAWTEXT(FILTER(CROSS(分机构买,分机构卖),100),分机构买,'-----------庄家介入')COLORWHITE;
曙光初现1:=LONGCROSS(分机构买,1,60);
STICKLINE(曙光初现1 AND 分机构买 分机构卖,0,25,2,0)COLORMAGENTA;
STICKLINE(曙光初现1 AND 分机构买 分机构卖,8,16,2,0)COLORLIBLUE;
DRAWTEXT(曙光初现1 AND 分机构买 分机构卖 ,17,'---曙光出现速买')COLORWHITE,COLORYELLOW;
{夜龙分时}
平均价:=(SUM((VOL * CLOSE),0) / SUM(VOL,0)),COLORYELLOW;
木子1:=MAX(DYNAINFO(3),DYNAINFO(5));
木子2:=MIN(DYNAINFO(3),DYNAINFO(6));
木子3:=(木子1 - 木子2);
压力线:=(木子2 + ((木子3 * 7) / 8)),COLORRED;
{DRAWTEXT((CURRBARSCOUNT = 1),压力线,4),COLORRED;}
支撑线:=(木子2 + ((木子3 * 0.5) / 8)),COLORGREEN;
{DRAWTEXT((CURRBARSCOUNT = 1),支撑线,5),COLORGREEN;}
中线:=((支撑线 + 压力线) / 2),COLORWHITE;
现价:=CLOSE,COLORWHITE;
木子10:=((CLOSE 支撑线) AND CROSS(CLOSE,REF(CLOSE,2)));
{DRAWICON(((木子10 = 1) OR CROSS(现价,支撑线)),支撑线,36);}{红叉}
STICKLINE(CROSS(支撑线,现价),支撑线,(((支撑线 - 中线) / 5) + 支撑线),2,0),COLORRED;
木子13:=((CLOSE 压力线) AND CROSS(REF(CLOSE,2),CLOSE));
{DRAWICON(((木子13 = 1) OR CROSS(压力线,现价)),压力线,37);}{绿叉}
STICKLINE(CROSS(现价,压力线),压力线,(压力线 - ((支撑线 - 中线) / 5)),2,0),COLORGREEN;
{DRAWTEXT(ISLASTBAR,((支撑线 + 压力线) / 2),6),COLORWHITE;};
STICKLINE((木子10 = 1) OR CROSS(现价,支撑线),0,10,2,0)COLORLIRED;
STICKLINE((木子13 = 1) OR CROSS(压力线,现价),100,90,2,0)COLORLICYAN;
DRAWICON(分机构买 分机构卖 AND (木子10 = 1) OR CROSS(现价,支撑线),20,24);
绿钻:=分机构买 分机构卖 AND (木子10 = 1) OR CROSS(现价,支撑线);
乖离:=(分机构买-分机构卖) REF((分机构买-分机构卖),FROMOPEN);
DRAWICON(FILTER((EXIST(绿钻,FROMOPEN) AND C =HHV(C,FROMOPEN) AND 分机构买 分机构卖),FROMOPEN),20,25);
DRAWICON(EXIST(绿钻,FROMOPEN) AND 分机构买 分机构卖 AND 乖离,23,23);
加速:=(CONST(DYNAINFO(20)#DAY)-CONST(DYNAINFO(21)#DAY)) HHV((H-L)/2,FROMOPEN) AND C REF(C,FROMOPEN);
DRAWICON(FILTER(加速,FROMOPEN) ,35,23);
DRAWTEXT(FILTER(加速,FROMOPEN),35,'----加仓')COLORRED;
{多头}
FSMA5:= MA.MA1#DAY
FSMA30:= MA.MA3#DAY
STRCAT('多头强势',BARSLASTCOUNT(FSMA5 FSMA30))NODRAW;
DRAWTEXT(FILTER(FSMA5 FSMA30,FROMOPEN),90,STRCAT('多头强势',STR2CON(BARSLASTCOUNT(FSMA5 FSMA30))))COLORRED;
DRAWTEXT(FILTER(FSMA5 FSMA30,FROMOPEN),90,'多头弱势')COLORGREEN;
JJJ:JJ,COLORLICYAN;
底11:10,DOTLINE,COLORRED;
顶11:90,DOTLINE,COLORGREEN;