通达信【日出东方】完整版涨停王者系列 高胜率机构量化指标 源码附图
{日出点评副图源码如下}
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;
获利30:=10*WINNER(CLOSE*0.9*0.9*0.9),COLORYELLOW;
STICKLINE(获利30>=2,0,-获利30/20,8,0),COLORRED;
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:=(主力-均量);
操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORRED;
减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORYELLOW;
反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),0+2.2,主力能量/5+2.2,3,0),COLORGREEN;
寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORGREEN;
ACB1:=CLOSE/REF(CLOSE,1)>=1.098;
ACB22:=COUNT(ACB1,2)>=1 AND NOT(COUNT(ACB1,3)>=2);
日出点评:FILTER(ACB22,13),COLORDDDDDD;
DRAWICON(日出点评,1.01,5);
ACB23:=COUNT(ACB1,3)>=2 AND NOT(COUNT(ACB1,4)>=3);
妖股孕育:FILTER(ACB23,13),COLORGREEN;
ACB24:=COUNT(ACB1,4)>=3 AND NOT(COUNT(ACB1,5)>=4);
妖股初生:FILTER(ACB24,11),COLOR9933FF;
妖股长成:COUNT(ACB1,8)>=6.5,COLORRED;
STICKLINE(日出点评 AND COUNT(日出点评,18)=1,0,2,3,0),COLORDDDDDD;
STICKLINE(妖股孕育 AND COUNT(妖股孕育,18)=1,0,2,3,0),COLORGREEN;
STICKLINE(妖股初生 AND COUNT(妖股孕育,18)=1,0,1,3,0),COLOR9933FF;
STICKLINE(妖股长成 AND COUNT(妖股孕育,18)=1,0,1
,3,0),COLORRED;
ABC3:=MA(CLOSE,13);
ABC4:=100-ABS((CLOSE-ABC3)/ABC3*100);
筹码:=MA(WINNER(CLOSE*0.95)*100,1),COLORRED;
CBAD:=筹码>ABC4;
DRAWNUMBER(CBAD AND ABC4>REF(ABC4,1) AND REF(CBAD,1)>0,(ABC4+20-30)/80-1.2,ROUND(ABC4)) COLORCYAN;
DRAWNUMBER(CBAD,(ABC4+20-30)/80-1.2,ROUND(ABC4)) COLORCYAN;
STICKLINE(CBAD,(ABC4-30)/80-1.2,5/80-1.2,2,0),COLORMAGENTA;
STICKLINE(CBAD AND ABC4>REF(ABC4,1) AND REF(CBAD,1)>0,(ABC4-30)/80-1.2,5/80-1.2,2,0),COLORGREEN;
DRAWTEXT(CBAD AND ABC4>REF(ABC4,1) AND REF(CBAD,1)>0,(ABC4+30-30)/80-1.2,'风险'),COLORGREEN;
DRAWTEXT(CBAD AND ABC4>REF(ABC4,1) AND REF(CBAD,1)>0,(ABC4+60-30)/80-1.2,'注意'),COLORGREEN;
FFD:=EMA((C - REF(C,1)) / REF(C,3),10) * 100;
KJHU:=EMA(EMA(EMA(EMA(FFD,2),2),2),3);
A1:=SMA(MAX(C - REF(C,1),0),24,1) / SMA(ABS(C - REF(C,1)),24,1) * 100;
龙头启动:=(A1 > 65) * (A1 - 65) / 10 + 2,LINETHICK0;
控盘度:=CYW / 100,COLORSTICK,LINETHICK2,COLORRED;
STICKLINE(KJHU >= REF(KJHU,1) AND FFD>2,2.2,2.05,2,0),COLORRED;
STICKLINE(KJHU < REF(KJHU,1) AND KJHU > EMA(KJHU,4) AND FFD>2,2.2,2.05,2,0),COLOR00BBFF;
STICKLINE(KJHU < REF(KJHU,1) AND KJHU < EMA(KJHU,4) AND FFD>2,2.2,2.05,2,0),COLORGREEN;
DRAWTEXT(ISLASTBAR, 2.2,' 机构持仓'),COLORFF00FF;
{日出东方副图源码如下}
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;
获利30:=10*WINNER(CLOSE*0.9*0.9*0.9),COLORYELLOW;
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:=(主力-均量);
操盘:=STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORRED;
减仓:=STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORYELLOW;
反弹:=STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),0+2.2,主力能量/5+2.2,3,0),COLORGREEN;
寻底:=STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),0+2.2,主力能量/5+2.2,3,3),COLORGREEN;
ACB1:=CLOSE/REF(CLOSE,1)>=1.098;
ACB22:=COUNT(ACB1,2)>=1 AND NOT(COUNT(ACB1,3)>=2);
STICKLINE(ACB22,0,8,2,0);
STICKLINE(ACB22,8,10,2,0) COLORRED;
DRAWICON(ACB22,10,29);
DRAWICON(ACB22,11,29);
DRAWICON(ACB22,12,29);
{日出主图源码如下}
DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);X_1:=EMA(CLOSE,40);
N9:=89;
MA1:=MA(C,20);
JX1:=IF(CAPITAL=0,IF(PERIOD=7,1.11,IF(PERIOD=8,1.30,1.06)),IF(PERIOD=7,1.20,IF(PERIOD=8,1.38,1.14)));
JX2:=IF(CAPITAL=0,IF(PERIOD=7,1.09,IF(PERIOD=8,1.25,1.05)),IF(PERIOD=7,1.15,IF(PERIOD=8,1.33,1.11)));
JX3:=IF(CAPITAL=0,IF(PERIOD=7,0.985,IF(PERIOD=8,1.01,0.985)),IF(PERIOD=7,0.99,1.01));
JX4:=IF(CAPITAL=0,IF(PERIOD=7,0.88,IF(PERIOD=8,0.75,0.93)),IF(PERIOD=7,0.85,IF(PERIOD=8,0.75,0.90)));
JX5:=IF(CAPITAL=0,IF(PERIOD=7,0.85,IF(PERIOD=8,0.70,0.92)),IF(PERIOD=7,0.80,IF(PERIOD=8,0.70,0.86)));
疯狂:MA1*JX1,COLOR0000DD,LINETHICK2,NODRAW;
超买:MA1*JX2,COLORDD00DD,LINETHICK2,NODRAW;
轴心:MA1*JX3,COLOR0000FF;
IF(轴心<REF(轴心,1),轴心,DRAWNULL),COLOR00FF00;
超卖:MA1*JX4,COLORDD00DD,LINETHICK2,NODRAW;
恐慌:MA1*JX5,COLOREEDD00,LINETHICK2,NODRAW;
DRAWBAND(疯狂,RGB(66,66,66),超买,DRAWNULL);
DRAWBAND(超卖,RGB(80,00,00),恐慌,DRAWNULL);
DRAWKLINE(H,O,L,C);
STICKLINE(C>=REF(C,1),H,L,0,1),COLOR0000FF;
STICKLINE(C>=REF(C,1),C,O,2.8,0),COLOR0000BB;
STICKLINE(C>=REF(C,1),C,O,2,0),COLOR0000DD;
STICKLINE(C>=REF(C,1),C,O,1.2,0),COLOR0000EE;
STICKLINE(C>=REF(C,1),C,O,0.4,0),COLOR0000FF;
STICKLINE(C<REF(C,1),H,L,0,1),COLORFFFF00;
STICKLINE(C<REF(C,1),C,O,2.8,0),COLOR999900;
STICKLINE(C<REF(C,1),C,O,2,0),COLORBBBB00;
STICKLINE(C<REF(C,1),C,O,1.2,0),COLORDDDD00;
STICKLINE(C<REF(C,1),C,O,0.4,0),COLORFFFF00;
STICKLINE(C<=O,H,L,0,0),COLORWHITE;
K7:=BARSLAST(CURRBARSCOUNT=N9);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K7),0));
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K7),0));
ZW:=(GD+DD)/2;JC:=(GD-DD);
DRAWTEXT(CURRBARSCOUNT=N9,ZW-JC/1.3,'★日出主图!★'),COLOR00FFFF;
{日出解量副图源码如下}
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:IF((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VOL*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW;
STICKLINE((CURRBARSCOUNT=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0;
DX_1:=MA(VOL,35);
DX_6:=IF(OPEN>CLOSE,OPEN,CLOSE);
黑心柱:=VOL>2*DX_1 AND (CLOSE<OPEN OR (HIGH-DX_6>0.5*(HIGH-LOW) AND (HIGH-LOW)/REF(CLOSE,1)>0.05)),COLORFF6633;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交:=VOL,COLORCD52FF,LINETHICK0;
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLOR0000FF,STICK;
主动卖盘:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00E521,STICK;
买卖比:=主动买盘/主动卖盘,COLORYELLOW;
买比:=主动买盘/V;
卖比:=主动卖盘/V;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);
VD7:=(VD2*VD5);
VD8:=(VD3*VD5);
VD9:=(VD4*VD5);
买入量:=(VD9+VD8);
卖出量:=(VD6+VD7);
买入资金:=买入量*CLOSE/100;
卖出资金:=卖出量*CLOSE/100;
资金进出:=买入资金-卖出资金;
资金买卖:=买入资金+卖出资金;
买卖资金比:=买入资金/卖出资金;
买资金比:=买入资金/资金买卖;
卖资金比:=卖出资金/资金买卖;
挂单买盘:=MA(主动买盘,3);
挂单卖盘:=(MA(主动卖盘,3));
STICKLINE((主动买盘 > 0) ,0,主动买盘,2.86,0),COLOR6058FF;
STICKLINE((主动卖盘 > 0) ,0,主动卖盘,2.86,0),COLORFFFF00;
{量能生命线}
BLZ:=VOL>REF(V,1)*1.9;
BLZ1:=VOL<REF(LLV(VOL,13),1);
BLZ2:=VOL<REF(LLV(VOL,55),1);
倍量柱:=BLZ,COLORYELLOW;
DRAWICON(倍量柱,VOL*1.18,18),COLORYELLOW;{倍量}
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
生命线:=FILTER(HJZ3,5),STICK,COLORRED;{黄金柱}{生命线}
DRAWICON(生命线,VOL*1.06,23),COLORRED;{生命线}
{新VOL}
DVAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
买盘:=IF((CLOSE > OPEN),(DVAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(DVAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 - (DVAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (DVAR1 * (HIGH - LOW))),(0 - (VOL / 2))));
买卖差:=(买盘 + 卖盘);
量比:=(VOL / MA(VOL,5));
JX1:=BARSSINCE(买盘);
JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120);
JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3);VAR30:=MA(VOL,JY2);
神比:=(买盘 / VAR30);
鬼比:=(卖盘 / VAR30);
VAR2:=(HIGH - LOW);
VAR3:=ABS((OPEN - CLOSE));
VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));
VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);
VAR6:=((VAR3 / VAR2) * VOL);
VAR7:=((VAR4 / VAR2) * VOL);
VAR8:=((VAR5 / VAR2) * VOL);
VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100)))));
VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);
VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));
VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30)));
VARD:=REF(CLOSE,1);
VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100);
VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,买盘) + 买盘) / 2);
VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,买盘) + 买盘) / 2);
VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,买盘) + 买盘) / 2);
VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,卖盘) + 卖盘) / 2);
三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2);
三日下攻:=MA(VAR50,JY2);
上攻均量:=MA(买盘,JY1);
下攻均量:=MA(卖盘,JY1);
换手率:=((VOL / CAPITAL) * 100);
DRAWICON((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率 > 1)),(VOL * 1.01),25),COLOR00FFFF;{量变}
DRAWICON((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (换手率 > 1)),(VOL * 1.06),24),COLOR00FFFF;{量变}
T6:=(VAR8>VAR6) AND (VAR8>VAR7) AND 买盘>0,COLORWHITE;
T61:=(VAR8>VAR6) AND (VAR8>VAR7) AND 买盘>0,COLORWHITE;
T7:=(VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE > OPEN) AND 买盘>0,COLORYELLOW;
T71:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE > OPEN) AND 买盘>0),COLORYELLOW;
T8:=((VAR7 > VAR6) AND (VAR7 > VAR8) AND 买盘>0),COLORMAGENTA;
T81:=((VAR7 > VAR6) AND (VAR7 > VAR8) AND 买盘>0),COLORMAGENTA;
T9:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买盘>0),COLORFF6633,COLORCYAN;
T91:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买盘>0),COLORFF6633,COLORCYAN;
T10:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买卖差<0),COLORGREEN;
T101:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (CLOSE < OPEN) AND 买卖差<0),COLORFF6633,COLORGREEN;
T11:=(黑心柱),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T6 ,0.6,0,0,'★机会风险提示:【洗盘】庄家找底振荡,轻度洗盘,伺机建仓'),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T7 ,0.6,0,0,'★机会风险提示:【建仓】主力吸筹进货并且成交量出现黄金柱,跟随进货等起航'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T8 ,0.6,0,0,'★机会风险提示:【高抛】主力高抛低吸或低吸高抛')COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T9 ,0.6,0,0,'★机会风险提示:【减仓】主力低位深度洗盘或高位出货坚决'),COLORFF6633;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T10 ,0.6,0.16,0,'★机会风险提示:【清仓】趋势破,庄家撤退'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND T11 ,0.6,0.33,0,'★★★机会风险提示:【主力黑心,请控制风险】'),COLORYELLOW;
主力启动线:MA(VOL,5),COLORRED,LINETHICK1;
主力洗盘线:MA(VOL,35),LINETHICK1,COLORYELLOW;
资金异动线:MA(VOL,135),LINETHICK1,COLORMAGENTA;
DRAWICON(CROSS(主力启动线,主力洗盘线) AND V>主力洗盘线 AND V>资金异动线 AND 主力洗盘线<资金异动线,V,10);
{UNDEFINED高低距------------------------}
DRAWRECTREL(460,1000,0,0,RGB(10,0,0)),COLORBLUE;{UNDEFINED活动框};
{柱图}
SATTOL:=(V/C)/(HHV(V,1)/HHV(C,1));
买卖量:=IF(SATTOL>1,1,SATTOL),COLORLIBLUE,NODRAW;
SATBU:=(主动买盘/C)/(HHV(主动买盘,1)/HHV(C,1));
主动买盘量:=IF(SATBU>1,1,SATBU*买比),COLORLIBLUE,NODRAW;
SATSEL:=(主动卖盘/C)/(HHV(主动卖盘,1)/HHV(C,1));
主动卖盘量:=IF(SATSEL>1,1,SATSEL*卖比),COLORLIBLUE,NODRAW;
SATGDBU:=(挂单买盘/C)/(HHV(挂单买盘,1)/HHV(C,1));
挂单买盘量:=IF(SATGDBU>1,1,SATGDBU*买比),COLORLIBLUE,NODRAW;
SATGDSEL:=(挂单卖盘/C)/(HHV(挂单卖盘,1)/HHV(C,1));
挂单卖盘量:=IF(SATGDSEL>1,1,SATGDSEL*卖比),COLORLIBLUE,NODRAW;
SATZJBU:=(买入资金/C)/(HHV(买入资金,1)/HHV(C,1));
买入资金量:=IF(SATZJBU>1,1,SATZJBU*买资金比),COLORLIBLUE,NODRAW;
SATZJSEL:=(卖出资金/C)/(HHV(卖出资金,1)/HHV(C,1));
卖出资金量:=IF(SATZJSEL>1,1,SATZJSEL*卖资金比),COLORLIBLUE,NODRAW;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:=(IF(SAT>1,1,SAT)),COLORRED,NODRAW;
图长度像素:=80*0.5;
当日买卖量图:=(买卖量)*图长度像素+230*0.8;
当日主动买量图:=(主动买盘量)*图长度像素+230*0.8;
当日主动卖量图:=(主动卖盘量)*图长度像素+230*0.8;
当日挂单买盘图:=(挂单买盘量)*图长度像素+230*0.8;
当日挂单卖盘图:=(挂单卖盘量)*图长度像素+230*0.8;
买入资金图:=(买入资金量)*图长度像素+230*1.86;
卖出资金图:=(卖出资金量)*图长度像素+230*1.86;
量能饱和度图:=(量能饱和度)*图长度像素+230*1.86;
DRAWRECTREL(120,90,CONST(当日买卖量图),25,RGB(255,0,255));
DRAWRECTREL(120,230,CONST(当日主动买量图),165,RGB(255,0,0));
DRAWRECTREL(120,365,CONST(当日主动卖量图),305,RGB(0,255,0));
DRAWRECTREL(120,665,CONST(当日挂单买盘图),605,RGB(255,0,0));
DRAWRECTREL(120,825,CONST(当日挂单卖盘图),760,RGB(0,255,0));
DRAWRECTREL(370,230,CONST(买入资金图),170,RGB(255,0,0));
DRAWRECTREL(370,365,CONST(卖出资金图),310,RGB(0,255,0));
DRAWRECTREL(460,76,370,0,RGB(150,10,250));
DRAWRECTREL(460,76,370+CONST(量能饱和度*(460-370)),0,RGB(0,100,0));
DRAWTEXT_FIX(1,0.0,0.0,0,STRCAT(STRCAT('当日买卖量(手):',CON2STR(VOL,0)),' ')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.0,0.15,0,STRCAT(STRCAT('当日买量:',CON2STR(主动买盘,0)),' ')),COLORRED;
DRAWTEXT_FIX(1,0.0,0.3,0,STRCAT(STRCAT('当日卖量:',CON2STR(主动卖盘,0)),' ')),COLORGREEN;
DRAWTEXT_FIX(1,0.0,0.45,0,STRCAT(STRCAT('当日买卖比:',CON2STR(买卖比,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.0,0.6,0,STRCAT(STRCAT('当日挂单买盘:',CON2STR(挂单买盘,0)),' ')),COLORRED;
DRAWTEXT_FIX(1,0.0,0.75,0,STRCAT(STRCAT('当日挂单卖盘:',CON2STR(挂单卖盘,0)),' ')),COLORGREEN;
DRAWTEXT_FIX(1,0.2360,0.15,0,STRCAT(STRCAT('买入资金累计万元: ',CON2STR(买入资金,0)),' ')),COLORRED;
DRAWTEXT_FIX(1,0.2360,0.3,0,STRCAT(STRCAT('卖出资金累计万元: ',CON2STR(卖出资金,0)),' ')),COLORGREEN;
DRAWTEXT_FIX(1,0.236,0.45,0,STRCAT(STRCAT('资金进出万元: ',CON2STR(资金进出,0)),' ')),COLORMAGENTA;
DRAWTEXT_FIX(1,0.236,0.6,0,STRCAT(STRCAT('买卖资金比: ',CON2STR(买卖资金比,2)),' ')),COLORYELLOW;
DRAWTEXT_FIX(1,0.236,0,0,STRCAT(STRCAT('量能饱和度: ',CON2STR(量能饱和度,2)),'%')),COLORYELLOW;
{日出淘金副图源码如下}
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;
DRAWTEXT_FIX(1,0,0.1,0,'日出淘金'),COLOR00FFFF;
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.3,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,30);
VAR5:=HHV(VAR3,30);
VAR6:=IF(MA(CLOSE,58),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=IF(VAR7>100,100,VAR7);
STICKLINE(VAR8>-120,0,VAR8,5,0),COLORRED;
STICKLINE(VAR8<REF(VAR8,1),0,VAR8,5,0),COLOR008000;
VAR9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VAR9<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
STICKLINE(VAR11 AND COUNT(VAR11,18)=1,0,60,1,0),COLOR00EAEA;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,55,' 日'),COLOR0099FF;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,48,' 出'),COLOR0033FF;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,36,' 淘'),COLOR0099FF;
DRAWTEXT(VAR11 AND COUNT(VAR11,18)=1,24,' 金'),COLOR0033FF;
XG:(VAR11 AND COUNT(VAR11,18)=1);
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{日出点评副图源码如下} 填充背景(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0), 线宽为2
获利30赋值:10*收盘价*0.9*0.9*0.9计算的获利盘比例,画黄色
当满足条件获利30>=2时,在0和-获利30/20之间画柱状线
换手赋值:V*100/当前流通股本
主力赋值:换手的4日简单移动平均
大户赋值:换手的9日简单移动平均
中户赋值:换手的17日简单移动平均
散户赋值:换手的34日简单移动平均
均量赋值:(主力+大户+中户+散户)/4
主力能量:=(主力-均量)
输出操盘:STICKLINE(主力能量>=0 AND 主力能量>=1日前的主力能量,0+2.2,主力能量/5+2.2,3,3),画红色
输出减仓:STICKLINE(主力能量>=0 AND 主力能量< 1日前的主力能量,0+2.2,主力能量/5+2.2,3,3),画黄色
输出反弹:STICKLINE(主力能量<0 AND 主力能量>=1日前的主力能量,0+2.2,主力能量/5+2.2,3,0),画绿色
输出寻底:STICKLINE(主力能量<0 AND 主力能量< 1日前的主力能量,0+2.2,主力能量/5+2.2,3,3),画绿色
ACB1赋值:收盘价/1日前的收盘价>=1.098
ACB22赋值:统计2日满足ACB1的天数>=1 AND NOT(统计3日满足ACB1的天数>=2)
输出日出点评:ACB22的13过滤,COLORDDDDDD
当满足条件日出点评时,在1.01和5之间画图标
ACB23赋值:统计3日满足ACB1的天数>=2 AND NOT(统计4日满足ACB1的天数>=3)
输出妖股孕育:ACB23的13过滤,画绿色
ACB24赋值:统计4日满足ACB1的天数>=3 AND NOT(统计5日满足ACB1的天数>=4)
输出妖股初生:ACB24的11过滤,COLOR9933FF
输出妖股长成:统计8日满足ACB1的天数>=6.5,画红色
STICKLINE(日出点评 AND 统计18日满足日出点评的天数=1,0,2,3,0),COLORDDDDDD
STICKLINE(妖股孕育 AND 统计18日满足妖股孕育的天数=1,0,2,3,0),画绿色
STICKLINE(妖股初生 AND 统计18日满足妖股孕育的天数=1,0,1,3,0),COLOR9933FF
STICKLINE(妖股长成 AND 统计18日满足妖股孕育的天数=1,0,1,3,0),画红色
ABC3赋值:收盘价的13日简单移动平均
ABC4赋值:100-(收盘价-ABC3的绝对值/ABC3*100)
筹码赋值:MA(收盘价*0.95计算的获利盘比例*100,1),画红色
CBAD赋值:筹码>ABC4
DRAWNUMBER(CBAD AND ABC4>1日前的ABC4 AND 1日前的CBAD>0,(ABC4+20-30)/80-1.2,ROUND(ABC4)) 画青色
DRAWNUMBER(CBAD,(ABC4+20-30)/80-1.2,ROUND(ABC4)) 画青色
STICKLINE(CBAD,(ABC4-30)/80-1.2,5/80-1.2,2,0),画洋红色
STICKLINE(CBAD AND ABC4>1日前的ABC4 AND 1日前的CBAD>0,(ABC4-30)/80-1.2,5/80-1.2,2,0),画绿色
DRAWTEXT(CBAD AND ABC4>1日前的ABC4 AND 1日前的CBAD>0,(ABC4+30-30)/80-1.2,'风险'),画绿色
DRAWTEXT(CBAD AND ABC4>1日前的ABC4 AND 1日前的CBAD>0,(ABC4+60-30)/80-1.2,'注意'),画绿色
FFD赋值:EMA((C - 1日前的C) / 3日前的C,10) * 100
KJHU赋值:FFD的2日指数移动平均,2),2),3)
A1赋值:SMA(C - 1日前的C和0较大值,24,1) / SMA(C - 1日前的C的绝对值,24,1) * 100
龙头启动赋值:(A1 > 65) * (A1 - 65) / 10 + 2,LINETHICK0
控盘度赋值:CYW / 100,COLORSTICK, 线宽为2,画红色
STICKLINE(KJHU >= 1日前的KJHU AND FFD>2,2.2,2.05,2,0),画红色
STICKLINE(KJHU < 1日前的KJHU AND KJHU > KJHU的4日指数移动平均 AND FFD>2,2.2,2.05,2,0),COLOR00BBFF
STICKLINE(KJHU < 1日前的KJHU AND KJHU < KJHU的4日指数移动平均 AND FFD>2,2.2,2.05,2,0),画绿色
当满足条件ISLASTBAR时,在 2.2和' 机构持仓'位置书写文字
{日出东方副图源码如下} 填充背景(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0), 线宽为2
获利30赋值:10*收盘价*0.9*0.9*0.9计算的获利盘比例,画黄色
换手赋值:V*100/当前流通股本
主力赋值:换手的4日简单移动平均
大户赋值:换手的9日简单移动平均
中户赋值:换手的17日简单移动平均
散户赋值:换手的34日简单移动平均
均量赋值:(主力+大户+中户+散户)/4
主力能量:=(主力-均量)
操盘赋值:STICKLINE(主力能量>=0 AND 主力能量>=1日前的主力能量,0+2.2,主力能量/5+2.2,3,3),画红色
减仓赋值:STICKLINE(主力能量>=0 AND 主力能量< 1日前的主力能量,0+2.2,主力能量/5+2.2,3,3),画黄色
反弹赋值:STICKLINE(主力能量<0 AND 主力能量>=1日前的主力能量,0+2.2,主力能量/5+2.2,3,0),画绿色
寻底赋值:STICKLINE(主力能量<0 AND 主力能量< 1日前的主力能量,0+2.2,主力能量/5+2.2,3,3),画绿色
ACB1赋值:收盘价/1日前的收盘价>=1.098
ACB22赋值:统计2日满足ACB1的天数>=1 AND NOT(统计3日满足ACB1的天数>=2)
当满足条件ACB22时,在0和8之间画柱状线
当满足条件ACB22时,在8和10之间画柱状线
当满足条件ACB22时,在10和29之间画图标
当满足条件ACB22时,在11和29之间画图标
当满足条件ACB22时,在12和29之间画图标
{日出主图源码如下} 填充背景(收盘价>0,RGB(0,108,108),RGB(88,0,0),0,5,0)
X_1赋值:收盘价的40日指数移动平均
N9赋值:89
MA1赋值:C的20日简单移动平均
JX1赋值:IF(当前流通股本=0,IF(PERIOD=7,1.11,IF(PERIOD=8,1.30,1.06)),IF(PERIOD=7,1.20,IF(PERIOD=8,1.38,1.14)))
JX2赋值:IF(当前流通股本=0,IF(PERIOD=7,1.09,IF(PERIOD=8,1.25,1.05)),IF(PERIOD=7,1.15,IF(PERIOD=8,1.33,1.11)))
JX3赋值:IF(当前流通股本=0,IF(PERIOD=7,0.985,IF(PERIOD=8,1.01,0.985)),IF(PERIOD=7,0.99,1.01))
JX4赋值:IF(当前流通股本=0,IF(PERIOD=7,0.88,IF(PERIOD=8,0.75,0.93)),IF(PERIOD=7,0.85,IF(PERIOD=8,0.75,0.90)))
JX5赋值:IF(当前流通股本=0,IF(PERIOD=7,0.85,IF(PERIOD=8,0.70,0.92)),IF(PERIOD=7,0.80,IF(PERIOD=8,0.70,0.86)))
输出疯狂:MA1*JX1,COLOR0000DD, 线宽为2,NODRAW
输出超买:MA1*JX2,COLORDD00DD, 线宽为2,NODRAW
输出轴心:MA1*JX3,COLOR0000FF
IF(轴心<1日前的轴心,轴心,DRAWNULL),COLOR00FF00
输出超卖:MA1*JX4,COLORDD00DD, 线宽为2,NODRAW
输出恐慌:MA1*JX5,COLOREEDD00, 线宽为2,NODRAW
DRAWBAND(疯狂,RGB(66,66,66),超买,DRAWNULL)
DRAWBAND(超卖,RGB(80,00,00),恐慌,DRAWNULL)
DRAWKLINE(H,O,L,C)
STICKLINE(C>=1日前的C,H,L,0,1),COLOR0000FF
STICKLINE(C>=1日前的C,C,O,2.8,0),COLOR0000BB
STICKLINE(C>=1日前的C,C,O,2,0),COLOR0000DD
STICKLINE(C>=1日前的C,C,O,1.2,0),COLOR0000EE
STICKLINE(C>=1日前的C,C,O,0.4,0),COLOR0000FF
STICKLINE(C<1日前的C,H,L,0,1),COLORFFFF00
STICKLINE(C<1日前的C,C,O,2.8,0),COLOR999900
STICKLINE(C<1日前的C,C,O,2,0),COLORBBBB00
STICKLINE(C<1日前的C,C,O,1.2,0),COLORDDDD00
STICKLINE(C<1日前的C,C,O,0.4,0),COLORFFFF00
当满足条件C<=O时,在H和L之间画柱状线
K7赋值:上次 到最后交易的周期=N9距今天数
GD赋值:CONST(IF(ISLASTBAR=1,K7日内H最高值,0))
DD赋值:CONST(IF(ISLASTBAR=1,K7日内L最低值,0))
ZW赋值:(GD+DD)/2
JC赋值:(GD-DD)
当满足条件 到最后交易的周期=N9时,在ZW-JC/1.3和'★日出主图!★'位置书写文字
{日出解量副图源码如下} 填充背景(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0), 线宽为2
TOTAL赋值:IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))))
MTIME赋值:MOD(FROM开盘价,TOTAL)
如果MTIME<0.5返回TOTAL否则返回MTIME
输出VVOL:IF(( 到最后交易的周期=1 AND DYNAINFO(8)>1),成交量*(TOTAL+3)/(CTIME+3),DRAWNULL),NODRAW
STICKLINE(( 到最后交易的周期=1 AND DYNAINFO(8)>1),VVOL,0,-1,-1),COLOR00C0C0
DX_1赋值:成交量的35日简单移动平均
如果开盘价>收盘价返回开盘价否则返回收盘价
黑心柱赋值:成交量>2*DX_1 AND (收盘价<开盘价 OR (最高价-DX_6>0.5*(最高价-最低价) AND (最高价-最低价)/1日前的收盘价>0.05)),COLORFF6633
VAR1赋值:成交量/((最高价-最低价)*2-收盘价-开盘价的绝对值)
成交赋值:成交量,COLORCD52FF,LINETHICK0
主动买盘赋值:IF(收盘价>开盘价,VAR1*(最高价-最低价),IF(收盘价<开盘价,VAR1*((最高价-开盘价)+(收盘价-最低价)),成交量/2)),COLOR0000FF,STICK
主动卖盘赋值:IF(收盘价>开盘价,VAR1*((最高价-收盘价)+(开盘价-最低价)),IF(收盘价<开盘价,VAR1*(最高价-最低价),成交量/2)),COLOR00E521,STICK
买卖比赋值:主动买盘/主动卖盘,画黄色
买比赋值:主动买盘/V
卖比赋值:主动卖盘/V
WJ赋值:(最高价+最低价+收盘价)/3
VD1赋值:IF(最高价=最低价,1,最高价-开盘价和收盘价较大值)
VD2赋值:IF(最高价=最低价,1,收盘价和开盘价较大值-WJ)
VD3赋值:IF(最高价=最低价,1,开盘价和收盘价的较小值-最低价)
VD4赋值:IF(最高价=最低价,1,WJ-收盘价和开盘价的较小值)
如果最高价=最低价返回4否则返回最高价-最低价
VD6赋值:(VD1*VD5)
VD7赋值:(VD2*VD5)
VD8赋值:(VD3*VD5)
VD9赋值:(VD4*VD5)
买入量赋值:(VD9+VD8)
卖出量赋值:(VD6+VD7)
买入资金赋值:买入量*收盘价/100
卖出资金赋值:卖出量*收盘价/100
资金进出赋值:买入资金-卖出资金
资金买卖赋值:买入资金+卖出资金
买卖资金比赋值:买入资金/卖出资金
买资金比赋值:买入资金/资金买卖
卖资金比赋值:卖出资金/资金买卖
挂单买盘赋值:主动买盘的3日简单移动平均
挂单卖盘赋值:(主动卖盘的3日简单移动平均)
STICKLINE((主动买盘 > 0) ,0,主动买盘,2.86,0),COLOR6058FF
STICKLINE((主动卖盘 > 0) ,0,主动卖盘,2.86,0),COLORFFFF00
{量能生命线}BLZ赋值:成交量>1日前的V*1.9
BLZ1赋值:成交量[BLZ2赋值:成交量][倍量柱赋值:BLZ,画黄色]
当满足条件倍量柱时,在成交量*1.18和18之间画图标
{倍量}HJZ赋值:(3*C+H+L+O)/6
HJZ2赋值:(8*HJZ+7*1日前的HJZ+6*2日前的HJZ+5*3日前的HJZ+4*4日前的HJZ+3*5日前的HJZ+2*6日前的HJZ+8日前的HJZ)/36
HJZ3赋值:成交量=10日内成交量最高值 AND 成交量>2*1日前的成交量 AND 收盘价>HJZ2 AND C>O
生命线赋值:HJZ3的5过滤,STICK,画红色
当满足条件生命线时,在成交量*1.06和23之间画图标
{生命线}{新成交量}DVAR1赋值:(成交量 / (((最高价 - 最低价) * 2) - (收盘价 - 开盘价的绝对值)))
买盘赋值:IF((收盘价 > 开盘价),(DVAR1 * (最高价 - 最低价)),IF((收盘价 < 开盘价),(DVAR1 * ((最高价 - 开盘价) + (收盘价 - 最低价))),(成交量 / 2)))
卖盘赋值:IF((收盘价 > 开盘价),(0 - (DVAR1 * ((最高价 - 收盘价) + (开盘价 - 最低价)))),IF((收盘价 < 开盘价),(0 - (DVAR1 * (最高价 - 最低价))),(0 - (成交量 / 2))))
买卖差赋值:(买盘 + 卖盘)
量比赋值:(成交量 / 成交量的5日简单移动平均)
JX1赋值:BARSSINCE(买盘)
JY1赋值:IF(((121 > JX1) AND (JX1 > 0)),JX1,120)
JY2赋值:IF(((4 > JX1) AND (JX1 > 0)),JX1,3)
VAR30赋值:成交量的JY2日简单移动平均
神比赋值:(买盘 / VAR30)
鬼比赋值:(卖盘 / VAR30)
VAR2赋值:(最高价 - 最低价)
VAR3赋值:(开盘价 - 收盘价的绝对值)
VAR4赋值:(最高价 - IF((收盘价 > 开盘价),收盘价,开盘价))
VAR5赋值:(IF((收盘价 > 开盘价),开盘价,收盘价) - 最低价)
VAR6赋值:((VAR3 / VAR2) * 成交量)
VAR7赋值:((VAR4 / VAR2) * 成交量)
VAR8赋值:((VAR5 / VAR2) * 成交量)
VAR9赋值:IF(((成交量 / 当前流通股本) > 0.001),1,EXP(LOG(((成交量 / 当前流通股本的绝对值 * 100)))))
VARA赋值:(((收盘价 - 收盘价的5日简单移动平均) / 收盘价的5日简单移动平均) * 100)
VARB赋值:(((收盘价的5日简单移动平均 > 收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均 > 收盘价的30日简单移动平均)) AND (收盘价的30日简单移动平均 > 收盘价的60日简单移动平均))
VARC赋值:((收盘价的5日简单移动平均 < 收盘价的10日简单移动平均) AND (收盘价的10日简单移动平均 < 收盘价的30日简单移动平均))
VARD赋值:1日前的收盘价
VARE赋值:((SMA(MAX((收盘价 - VARD),0),6,1) / SMA((收盘价 - VARD的绝对值),6,1)) * 100)
VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (收盘价 > 开盘价)),VAR6,买盘) + 买盘) / 2)
VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,买盘) + 买盘) / 2)
VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,买盘) + 买盘) / 2)
VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (收盘价 < 开盘价)),VAR6,卖盘) + 卖盘) / 2)
三日上攻赋值:MA((((VAR40 + VAR41) + VAR42) / 3),JY2)
三日下攻赋值:VAR50的JY2日简单移动平均
上攻均量赋值:买盘的JY1日简单移动平均
下攻均量赋值:卖盘的JY1日简单移动平均
换手率:=((成交量 / 当前流通股本) * 100)
DRAWICON((((成交量 / REF((5的成交量日累和 / 5),1)) >= 2) AND (换手率 > 1)),(成交量 * 1.01),25),COLOR00FFFF
{量变}DRAWICON((((成交量 / REF((5的成交量日累和 / 5),1)) >= 2) AND (换手率 > 1)),(成交量 * 1.06),24),COLOR00FFFF
{量变}T6赋值:(VAR8>VAR6) AND (VAR8>VAR7) AND 买盘>0,画白色
T61赋值:(VAR8>VAR6) AND (VAR8>VAR7) AND 买盘>0,画白色
T7赋值:(VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (收盘价 > 开盘价) AND 买盘>0,画黄色
T71:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (收盘价 > 开盘价) AND 买盘>0),画黄色
T8赋值:((VAR7 > VAR6) AND (VAR7 > VAR8) AND 买盘>0),画洋红色
T81:=((VAR7 > VAR6) AND (VAR7 > VAR8) AND 买盘>0),画洋红色
T9赋值:((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (收盘价 < 开盘价) AND 买盘>0),COLORFF6633,画青色
T91:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (收盘价 < 开盘价) AND 买盘>0),COLORFF6633,画青色
T10赋值:((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (收盘价 < 开盘价) AND 买卖差<0),画绿色
T101:=((VAR6 >= VAR7) AND (VAR6 >= VAR8) AND (收盘价 < 开盘价) AND 买卖差<0),COLORFF6633,画绿色
T11赋值:(黑心柱),画黄色
当满足条件 到最后交易的周期=1 AND T6 时,在横轴0.6纵轴0位置书写文字
当满足条件 到最后交易的周期=1 AND T7 时,在横轴0.6纵轴0位置书写文字
当满足条件 到最后交易的周期=1 AND T8 时,在横轴0.6纵轴0位置书写文字
当满足条件 到最后交易的周期=1 AND T9 时,在横轴0.6纵轴0位置书写文字
当满足条件 到最后交易的周期=1 AND T10 时,在横轴0.6纵轴0.16位置书写文字
当满足条件 到最后交易的周期=1 AND T11 时,在横轴0.6纵轴0.33位置书写文字
主力启动线:成交量的5日简单移动平均,画红色,LINETHICK1
主力洗盘线:成交量的35日简单移动平均,LINETHICK1,画黄色
输出资金异动线:成交量的135日简单移动平均,LINETHICK1,画洋红色
DRAWICON(主力启动线上穿主力洗盘线 AND V>主力洗盘线 AND V>资金异动线 AND 主力洗盘线<资金异动线,V,10)
{UNDEFINED高低距------------------------}DRAWRECTREL(460,1000,0,0,RGB(10,0,0)), 画蓝色
{UNDEFINED活动框}
{柱图}SATTOL赋值:(V/C)/(1日内V最高值/1日内C最高值)
如果SATTOL>1返回1否则返回SATTOL
SATBU赋值:(主动买盘/C)/(1日内主动买盘最高值/1日内C最高值)
如果SATBU>1返回1否则返回SATBU*买比
SATSEL赋值:(主动卖盘/C)/(1日内主动卖盘最高值/1日内C最高值)
如果SATSEL>1返回1否则返回SATSEL*卖比
SATGDBU:=(挂单买盘/C)/(1日内挂单买盘最高值/1日内C最高值)
如果SATGDBU>1返回1否则返回SATGDBU*买比
SATGDSEL:=(挂单卖盘/C)/(1日内挂单卖盘最高值/1日内C最高值)
如果SATGDSEL>1返回1否则返回SATGDSEL*卖比
SATZJBU赋值:(买入资金/C)/(1日内买入资金最高值/1日内C最高值)
如果SATZJBU>1返回1否则返回SATZJBU*买资金比
SATZJSEL赋值:(卖出资金/C)/(1日内卖出资金最高值/1日内C最高值)
如果SATZJSEL>1返回1否则返回SATZJSEL*卖资金比
SAT赋值:(成交额/C)/(20日内成交额最高值/20日内C最高值)
如果SAT>1返回1否则返回SAT
图长度像素赋值:80*0.5
当日买卖量图:=(买卖量)*图长度像素+230*0.8
当日主动买量图赋值:(主动买盘量)*图长度像素+230*0.8
当日主动卖量图赋值:(主动卖盘量)*图长度像素+230*0.8
当日挂单买盘图:=(挂单买盘量)*图长度像素+230*0.8
当日挂单卖盘图:=(挂单卖盘量)*图长度像素+230*0.8
买入资金图:=(买入资金量)*图长度像素+230*1.86
卖出资金图:=(卖出资金量)*图长度像素+230*1.86
量能饱和度图:=(量能饱和度)*图长度像素+230*1.86
DRAWRECTREL(120,90,CONST(当日买卖量图),25,RGB(255,0,255))
DRAWRECTREL(120,230,CONST(当日主动买量图),165,RGB(255,0,0))
DRAWRECTREL(120,365,CONST(当日主动卖量图),305,RGB(0,255,0))
DRAWRECTREL(120,665,CONST(当日挂单买盘图),605,RGB(255,0,0))
DRAWRECTREL(120,825,CONST(当日挂单卖盘图),760,RGB(0,255,0))
DRAWRECTREL(370,230,CONST(买入资金图),170,RGB(255,0,0))
DRAWRECTREL(370,365,CONST(卖出资金图),310,RGB(0,255,0))
DRAWRECTREL(460,76,370,0,RGB(150,10,250))
DRAWRECTREL(460,76,370+CONST(量能饱和度*(460-370)),0,RGB(0,100,0))
DRAWTEXT_FIX(1,0.0,0.0,0,STRCAT(STRCAT('当日买卖量(手):',CON2STR(成交量,0)),' ')),画洋红色
DRAWTEXT_FIX(1,0.0,0.15,0,STRCAT(STRCAT('当日买量:',CON2STR(主动买盘,0)),' ')),画红色
DRAWTEXT_FIX(1,0.0,0.3,0,STRCAT(STRCAT('当日卖量:',CON2STR(主动卖盘,0)),' ')),画绿色
DRAWTEXT_FIX(1,0.0,0.45,0,STRCAT(STRCAT('当日买卖比:',CON2STR(买卖比,2)),' ')),画黄色
DRAWTEXT_FIX(1,0.0,0.6,0,STRCAT(STRCAT('当日挂单买盘:',CON2STR(挂单买盘,0)),' ')),画红色
DRAWTEXT_FIX(1,0.0,0.75,0,STRCAT(STRCAT('当日挂单卖盘:',CON2STR(挂单卖盘,0)),' ')),画绿色
DRAWTEXT_FIX(1,0.2360,0.15,0,STRCAT(STRCAT('买入资金累计万元: ',CON2STR(买入资金,0)),' ')),画红色
DRAWTEXT_FIX(1,0.2360,0.3,0,STRCAT(STRCAT('卖出资金累计万元: ',CON2STR(卖出资金,0)),' ')),画绿色
DRAWTEXT_FIX(1,0.236,0.45,0,STRCAT(STRCAT('资金进出万元: ',CON2STR(资金进出,0)),' ')),画洋红色
DRAWTEXT_FIX(1,0.236,0.6,0,STRCAT(STRCAT('输出买卖资金比: ',CON2STR(买卖资金比,2)),' ')),画黄色
DRAWTEXT_FIX(1,0.236,0,0,STRCAT(STRCAT('量能饱和度: ',CON2STR(量能饱和度,2)),'%')),画黄色
{日出淘金副图源码如下} 填充背景(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0), 线宽为2
当满足条件1时,在横轴0纵轴0.1位置书写文字
VAR1赋值:1日前的最低价
VAR2赋值:SMA(最低价-VAR1的绝对值,3,1)/SMA(最低价-VAR1和0较大值,3,1)*100
如果收盘价*1.3返回VAR2*10否则返回VAR2/10
VAR4赋值:30日内最低价最低值
VAR5赋值:30日内VAR3最高值
VAR6赋值:IF(收盘价的58日简单移动平均,1,0)
VAR7赋值:EMA(IF(最低价<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6
如果VAR7>100返回100否则返回VAR7
当满足条件VAR8>-120时,在0和VAR8之间画柱状线
STICKLINE(VAR8<1日前的VAR8,0,VAR8,5,0),COLOR008000
VAR9赋值:100-3*SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR10:=100-3*SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR11:=VAR9<1日前的VAR10 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
STICKLINE(VAR11 AND 统计18日满足VAR11的天数=1,0,60,1,0),COLOR00EAEA
DRAWTEXT(VAR11 AND 统计18日满足VAR11的天数=1,55,' 日'),COLOR0099FF
DRAWTEXT(VAR11 AND 统计18日满足VAR11的天数=1,48,' 出'),COLOR0033FF
DRAWTEXT(VAR11 AND 统计18日满足VAR11的天数=1,36,' 淘'),COLOR0099FF
DRAWTEXT(VAR11 AND 统计18日满足VAR11的天数=1,24,' 金'),COLOR0033FF
输出XG:(VAR11 AND 统计18日满足VAR11的天数=1)