陈氏解盘A01指标公式源码[其他软件公式]
相关标签:
原理解析:
源码:
今开:=OPEN,COLOR00FFFF,linethick0;//今开:=DYNAINFO(4);
今高:=HIGH,COLOR00FF00,linethick0;//最高:=DYNAINFO(5);
今低:=LOW,COLORFF00FF,linethick0;//最低:=DYNAINFO(6);
今收:=CLOSE,COLOR0000FF,linethick0;//最新:=DYNAINFO(7);
前开:=REF(今开,1),COLOR0099FF,linethick0;
{分析家公式网 http://www..com 整理}
前收:REF(今收,1),COLOR0066FF,linethick0;//前收:=DYNAINFO(3);
均价:=(AMOUNT/VOL*VOLUNIT)/10000,COLORAA00FF,linethick0;//均价:=DYNAINFO(11);{成本价}
今量:=VOL,COLOR0000FF,linethick0;{手}//总手:=DYNAINFO(8);{手}
今额:=AMOUNT/10000,COLOR00FFFF,linethick0;{万元}//总额(持仓):=DYNAINFO(11);{万元}
今率:=VOL/CAPITAL*100,COLOR00AAFF,linethick0;//换手率:=DYNAINFO(37);
今涨停:=IF(STKINBLOCK(STKLABEL,'ST板块') OR STKINBLOCK(STKLABEL,'*ST板块'),(1.05*前收),(1.1*前收));{如果为ST涨停为5%,否则为10%}
今跌停:=IF(STKINBLOCK(STKLABEL,'ST板块') OR STKINBLOCK(STKLABEL,'*ST板块'),(0.95*前收),(0.9*前收));{如果为ST跌停为5%,否则为10%}
明涨停:=IF(STKINBLOCK(STKLABEL,'ST板块') OR STKINBLOCK(STKLABEL,'*ST板块'),(1.05*今收),(1.1*今收));
明跌停:=IF(STKINBLOCK(STKLABEL,'ST板块') OR STKINBLOCK(STKLABEL,'*ST板块'),(0.95*今收),(0.9*今收));
//市场行情
收阳:
IF(今收>今开,今高,0),COLOR0000FF,linethick0;{上影线}
IF(今收>今开,今收,0),COLORFF00FF,linethick0;
IF(今收>今开,今开,0),COLOR9999FF,linethick0;
IF(今收>今开,今低,0),COLORFF99FF,linethick0;{下影线}
收阴:
IF(今收<=今开,今高,0),COLOR00FFFF,linethick0;
IF(今收<=今开,今开,0),COLOR99FFFF,linethick0;
IF(今收<今开,今收,0),COLOR99FF99,linethick0;
IF(今收<=今开,今低,0),COLOR00FF00,linethick0;
Var1:=(1*今开+3*今高+3*今低+1*今收)/8;
Var2:=IF(DATE>=900101,1,0);
var3:=(1*今收+1*今开)/2;
var4:=IF(今收>今开,(1*今开+3*今低)/4,(1*今收+3*今低)/4);
var5:=IF(今收>今开,(1*今收+3*今高)/4,(1*今开+3*今高)/4);
涨跌值:(今收-前收),COLOR00ACFF,linethick0;
上涨值:=IF(今收>前收,(今收-前收),0),COLOR00ACFF,linethick0;
下跌值:=IF(今收<=前收,(前收-今收),0),COLOR00FFAC,linethick0;
涨跌幅:=(今收-前收)/前收*100,COLOR00DEFF,linethick0;
振幅值:(今高-今低),COLORAC00FF,linethick0;
振幅:=(今高-今低)/今开*100,COLORDE00FF,linethick0;
今行情:=DYNAINFO(4)=今开 AND DYNAINFO(5)=今高 AND DYNAINFO(6)=今低 AND DYNAINFO(7)=今收;
//主要操盘指标-MA/EMA/SMA/WMA均线指标
MA5:=MA(今收,5),colorred,linethick1;{五日均线}
MA8:=MA(今收,8),COLOR6666FF,linethick2;{八日均线}
MA13:=MA(今收,13),COLOR9999FF,linethick1;{十三日均线}
MA21:=MA(今收,21),colormagenta,linethick1;{一个月均线}
MA43:=MA(今收,43),COLORFF66FF,linethick1;{二个月均线}
MA65:=MA(今收,65),coloryellow,linethick1;{三个月均线}
MA108:=MA(今收,108),COLOR66FFFF,linethick1;{五个月均线}
MA165:=MA(今收,165),colorgreen,linethick2;{八个月均线}
MA248:=MA(今收,248),COLOR66FF66,linethick1;{一年均线}
EMA5:=EMA(今收,5);EMA8:=EMA(今收,8);EMA13:=EMA(今收,13);EMA21:=EMA(今收,21);EMA43:=EMA(今收,43);EMA65:=EMA(今收,65);EMA105:=EMA(今收,108);EMA165:=EMA(今收,165);EMA248:=EMA(今收,248);
多头线:=MA5,COLOR0000FF,linethick0;
多空博弈线:=MA8,COLOR0099FF,linethick0;//(3*EMA5+1*EMA13)/4;
空头线:=MA13,COLOR00FFFF,linethick0;
多空生命线:=MA21,COLORFF0099,linethick0;
之字趋势线:=ZIG(MA5,10),COLOR3939FF,linethick0;
回归趋势线:=FORCAST(FORCAST(REF(var1,1),5),3),COLOR3A3AFF,linethick0;
加权趋势线:=WMA(WMA(REF(Var1,1),5),3),COLOR3C3CFF,linethick0;
个股强弱线:=DMA(均价,SUM(VOL,5)/5/CAPITAL),COLOR3D3DFF,linethick0;
长线压力位:=HHV(MA(REF(今高,1),3),65)*1.0382;
中线压力位:=HHV(MA(REF(今高,1),3),21)*1.0382;
短线压力位:=HHV(MA(REF(今高,1),3),21)*1.025;
短线支撑位:=LLV(MA(REF(今低,1),3),21)*0.975;
中线支撑位:=LLV(MA(REF(今低,1),3),21)*0.9618;
长线支撑位:=LLV(MA(REF(今低,1),3),65)*0.9618;
箱顶:=长线压力位,COLOR00AF00,linethick0;
箱底:=长线支撑位,COLORAF00AA,linethick0;
上轨:=IF(今高>=短线压力位,中线压力位,短线压力位),COLORACFFCD,linethick0;
中轨:=(短线压力位+短线支撑位)/2,COLOR00AACC,linethick0;
下轨:=IF(今低<=短线支撑位,中线支撑位,短线支撑位),COLORCDACFF,linethick0;
//主要操盘指标-MACD趋势指标
VarA0:=(EMA5-EMA13)*100*Var2/Var2;
VarB0:=(EMA8-EMA21)*100*Var2/Var2;
DIFF:=EMA((3*VarA0+1*VarB0)/4,3);
DEA:=EMA(DIFF,5);
MACD:=(DIFF-DEA)*2;
变盘点:
IF(COUNT(CROSS(DIFF,REF(DIFF,1)) OR CROSS(DEA,REF(DEA,1)) OR CROSS(MACD,REF(MACD,1)),3) AND 今收>今开,1,0),COLORFF00FF,linethick0;
IF(COUNT(CROSS(REF(DIFF,1),DIFF) OR CROSS(REF(DEA,1),DEA) OR CROSS(REF(MACD,1),MACD),3) AND 今收<=今开,1,0),COLOR00FFFF,linethick0;
交叉点:
IF(COUNT(CROSS(DIFF,DEA),3) AND 今收>今开,1,0),COLOR0000FF,linethick0;
IF(COUNT(CROSS(DEA,DIFF),3) AND 今收<=今开,1,0),COLOR00FF00,linethick0;
//其它辅助指标--ROC变动速率指标
VarA1:=(今收-REF(今收,5))/REF(今收,5)*100*Var2/Var2;
VarB1:=(今收-REF(今收,13))/REF(今收,13)*100*Var2/Var2;
ROC1:=MA((3*VarA1+1*VarB1)/4,3);
ROC2:=MA(ROC1,5);
//其它辅助指标--BIAS乖离率指标
VarA2:=(今收-MA5)/MA5*100*Var2/Var2;
VarB2:=(今收-MA13)/MA13*100*Var2/Var2;
BIAS1:=MA((3*VarA2+1*VarB2)/4,3);
BIAS2:=MA(BIAS1,5);
//其它辅助指标-KD/KDJ随机指标
VarA3:=(今收-LLV(今低,5))/(HHV(今高,5)-LLV(今低,5))*100*Var2/Var2;//(var3-LLV(var4,5))/(HHV(var5,5)-LLV(var4,5))*100*Var2/Var2;
VarB3:=(今收-LLV(今低,13))/(HHV(今高,13)-LLV(今低,13))*100*Var2/Var2;//(var3-LLV(var4,13))/(HHV(var5,13)-LLV(var4,13))*100*Var2/Var2;
RSV:=(3*VarA3+1*VarB3)/4;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
KDJ:=(3*K-2*D);
多空对比:=(K-D);//多空力度对比
空翻多:=IF(多空对比<=0 AND 多空对比>REF(多空对比,1),1,0);
多头市场:=IF(多空对比>0 AND 多空对比>REF(多空对比,1),1,0);
多翻空:=IF(多空对比>0 AND 多空对比<=REF(多空对比,1),1,0);
空头市场:=IF(多空对比<=0 AND 多空对比<=REF(多空对比,1),1,0);
炒底:=IF(COUNT(CROSS(KDJ,REF(KDJ,1)) AND KDJ<=25,3) AND 今收>今开,1,0),COLORFF00FF,linethick0;
逃顶:=IF(COUNT(CROSS(REF(KDJ,1),KDJ) AND KDJ>=75,3) AND 今收<=今开,1,0),COLOR00FF00,linethick0;
//其它辅助指标-RSI相对强弱指标
VarA4:=SMA(MAX(今收-前收,0),5,1)/SMA(ABS(今收-前收),5,1)*100*Var2/Var2;
VarB4:=SMA(MAX(今收-前收,0),13,1)/SMA(ABS(今收-前收),13,1)*100*Var2/Var2;
RSI1:=MA((3*VarA4+1*VarB4)/4,3);
RSI2:=MA(RSI1,5);
最大强值:=MA(MA(MAX(VarA4-VarB4,0),5),3);
最小弱值:=MA(MA(MIN(VarA4-VarB4,0),5),3);
试买:=IF(最大强值=REF(最大强值,1) AND REF(最大强值,1)=0,1,0);//补仓区
追买:=IF(最大强值>REF(最大强值,1) AND REF(最大强值,1)=0,1,0);//满仓点
止盈:=IF(最小弱值=REF(最小弱值,1) AND REF(最小弱值,1)=0,1,0);//减仓区
止损:=IF(最小弱值<REF(最小弱值,1) AND REF(最小弱值,1)=0,1,0);//空仓点
买入:=IF(试买 OR 追买,1,0),COLOR0000FF,linethick0;
卖出:=IF(止盈 OR 止损,1,0),COLOR00FFFF,linethick0;
共底:=IF(KDJ<=20 AND MACD<=-5 AND RSI1<=25 AND DIFF<=-7.5 AND ROC1<=-2.5 AND BIAS1<=-2.5,1,0);
共顶:=IF(KDJ>=80 AND MACD>=5 AND RSI1>=75 AND DIFF>=7.5 AND ROC1>=2.5 AND BIAS1>=2.5,1,0);
//背景色
DRAWGBK(今收>今开,COLORRGB(105,35,95),COLORRGB(225,155,205),1);//当日上涨:ISUP;
DRAWGBK(今收=今开,COLORRGB(35,55,95),COLORRGB(55,105,155),1);//当日平盘:ISEQUAL;
DRAWGBK(今收<今开,COLORRGB(15,35,55),COLORRGB(35,55,105),1);//当日下跌:ISDOWN;
FILLRGN(今收>0,多头线,HHV(今高,0)),COLORFFCDCD;
FILLRGN(今收>0,多头线,0),COLOR391133;
FILLRGN(多头线<=个股强弱线 AND DYNAINFO(7)>DYNAINFO(4),个股强弱线,多头线),COLORDFCDEF;
FILLRGN(多头线<=个股强弱线 AND DYNAINFO(7)<=DYNAINFO(4),个股强弱线,多头线),COLORDEDFCD;
FILLRGN(多头线<=多空生命线,多空生命线,多头线),COLOR9A9A33;
FILLRGN(多头线<=空头线,空头线,多头线),COLOR7C7C33;
FILLRGN(多头线<=多空博弈线,多空博弈线,多头线),COLOR5D5D33;
FILLRGN(多头线>空头线 AND 多头线>REF(多头线,1),多头线,LLV(今低,0)),COLOR000036;
FILLRGN(多头线>空头线 AND 多头线<=REF(多头线,1),多头线,LLV(今低,0)),COLOR003636;
FILLRGN(多头线<=空头线 AND 多头线>REF(多头线,1),多头线,LLV(今低,0)),COLOR360036;
FILLRGN(多头线<=空头线 AND 多头线<=REF(多头线,1),多头线,LLV(今低,0)),COLOR003600;
PARTLINE(今收>0,个股强弱线),COLORFFCDCD,linethick1;
//光标线
var61:=barssince(今收)=SYSPARAM(1)-1;
VERTLINE(var61),colorwhite,pointdot;
var62:=barssince(今收)=SYSPARAM(1)-2;
VERTLINE(var62),colorgray,pointdot;
var63:=barssince(今收)=SYSPARAM(1)-3;
VERTLINE(var63),colorgray,pointdot;
var64:=barssince(今收)=SYSPARAM(1)-4;
VERTLINE(var64),colorgray,pointdot;
var65:=barssince(今收)=SYSPARAM(1)-5;
VERTLINE(var65),colorwhite,pointdot;
var66:=barssince(今收)=SYSPARAM(1)-6;
VERTLINE(var66),colorgray,pointdot;
var67:=barssince(今收)=SYSPARAM(1)-7;
VERTLINE(var67),colorgray,pointdot;
var68:=barssince(今收)=SYSPARAM(1)-8;
VERTLINE(var68),colorwhite,pointdot;
var69:=barssince(今收)=SYSPARAM(1)-21;
vertline(var69),colorwhite,pointdot;
VERTLINE(ISLASTBAR),colorgray,linethick1,shift1;
VERTLINE(ISLASTBAR),colorwhite,linethick3;
//五彩K线与趋势线
STICKLINE(今行情,今跌停,今涨停,9,1),colorbrown;
STICKLINE(今行情,明跌停,明涨停,9,1),colorgray,shift1;
STICKLINE(今行情,今开,今开,9,0),colorcyan,shift1;
DRAWLINE(今收>0,DYNAINFO(7),今收>0,DYNAINFO(7),1),colorblack,linethick0;
PARTLINE(今收>0,箱顶),COLOR00AF00,linethick1;
PARTLINE(今收>0,上轨),COLORACFFCD,linethick2;
PARTLINE(今收>0,中轨),COLOR00AACC,pointdot;
PARTLINE(今收>0,下轨),COLORCDACFF,linethick2;
PARTLINE(今收>0,箱底),COLORAF00AA,linethick1;
PARTLINE(之字趋势线>REF(之字趋势线,1),之字趋势线),COLORAA00AA,linethick1;
PARTLINE(之字趋势线<=REF(之字趋势线,1),之字趋势线),COLOR00AA00,linethick1;
STICKLINE(最大强值=REF(最大强值,1) AND REF(最大强值,1)=0,(今高+0.01),(今低-0.01),9,1),COLORAA00AA;{补仓区}
STICKLINE(最大强值>REF(最大强值,1) AND REF(最大强值,1)=0,(今高+0.01),(今低-0.01),9,1),COLOR0000AA;{满仓点}
STICKLINE(最小弱值=REF(最小弱值,1) AND REF(最小弱值,1)=0,(今高+0.01),(今低-0.01),9,1),COLOR00AAAA;{减仓区}
STICKLINE(最小弱值<REF(最小弱值,1) AND REF(最小弱值,1)=0,(今高+0.01),(今低-0.01),9,1),COLOR00AA00;{空仓点}
STICKLINE(空翻多 AND 今收>今开,今开,今低,2,0),COLORFF00FF;
STICKLINE(空翻多 AND 今收>今开,今收,今高,2,0),COLORFF5599;
STICKLINE(空翻多 AND 今收<=今开,今收,今低,2,0),COLOR00FF99;
STICKLINE(空翻多 AND 今收<=今开,今开,今高,2,0),COLORFF7799;
STICKLINE(多头市场 AND 今收>今开,今开,今低,2,0),COLOR0000FF;
STICKLINE(多头市场 AND 今收>今开,今收,今高,2,0),COLORFF0099;
STICKLINE(多头市场 AND 今收<=今开,今收,今低,2,0),COLOR0099FF;
STICKLINE(多头市场 AND 今收<=今开,今开,今高,2,0),COLORFF3399;
STICKLINE(多翻空 AND 今收>今开,今开,今低,2,1),COLOR0066FF;
STICKLINE(多翻空 AND 今收>今开,今收,今高,2,1),COLORFF9999;
STICKLINE(多翻空 AND 今收<=今开,今收,今低,2,1),COLOR00FFFF;
STICKLINE(多翻空 AND 今收<=今开,今开,今高,2,1),COLORFF6666;
STICKLINE(空头市场 AND 今收>今开,今开,今低,2,1),COLORFF0099;
STICKLINE(空头市场 AND 今收>今开,今收,今高,2,1),COLORFF3333;
STICKLINE(空头市场 AND 今收<=今开,今收,今低,2,1),COLOR00FF00;
STICKLINE(空头市场 AND 今收<=今开,今开,今高,2,1),COLORFF0000;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,8,1),COLORAF339A;{买入}
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,6,0),COLORCF55AC;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,4,0),COLORDF77CD;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,2,0),COLOREF99DE;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,1,0),COLORFFAAEF;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,8,1),COLOR9A33AF;{买入}
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,6,0),COLORAC55CF;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,4,0),COLORCD77DF;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,2,0),COLORDE99EF;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,1,0),COLOREFAAFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,8,1),COLOR3379FF;{买入}
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,6,0),COLOR559AFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,4,0),COLOR77ACFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,2,0),COLOR99CDFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收>今开,今开,今收,1,0),COLORAADEFF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,8,1),COLOR3333AF;{买入}
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,6,0),COLOR5555CF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,4,0),COLOR7777DF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,2,0),COLOR9999EF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收>今开,今开,今收,1,0),COLORAAAAFF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,8,1),COLOR3379FF;{卖出}
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,6,0),COLOR559AFF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,4,0),COLOR77ACFF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,2,0),COLOR99CDFF;
STICKLINE(MACD>0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,1,0),COLORAADEFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,8,1),COLOR339AFF;{卖出}
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,6,0),COLOR55ACFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,4,0),COLOR77CDFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,2,0),COLOR99DEFF;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,1,0),COLORAAEFFF;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,8,1),COLOR33FF79;{卖出}
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,6,0),COLOR55AF9A;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,4,0),COLOR77CFAC;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,2,0),COLOR99DFCD;
STICKLINE(MACD<=0 AND MACD>REF(MACD,1) AND 今收<=今开,今开,今收,1,0),COLORAAEFDE;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,8,1),COLOR33AF33;{卖出}
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,6,0),COLOR55CF55;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,4,0),COLOR77DF77;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,2,0),COLOR99EF99;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1) AND 今收<=今开,今开,今收,1,0),COLORAAFFAA;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收>今开,今开,今收,8,1),COLOR0055FF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收>今开,今开,今收,6,0),COLOR3377FF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收>今开,今开,今收,4,0),COLOR5599FF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收>今开,今开,今收,2,0),COLOR77AAFF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收>今开,今开,今收,1,0),COLOR99CCFF;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收>今开,今开,今收,8,1),COLORAF0077;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收>今开,今开,今收,6,0),COLORCF3399;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收>今开,今开,今收,4,0),COLORDF55AA;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收>今开,今开,今收,2,0),COLOREF77CC;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收>今开,今开,今收,1,0),COLORFF99DD;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收<=今开,今开,今收,8,1),COLOR009AFF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收<=今开,今开,今收,6,0),COLOR33ACFF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收<=今开,今开,今收,4,0),COLOR55CDFF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收<=今开,今开,今收,2,0),COLOR77DEFF;
STICKLINE(CROSS(REF(DIFF,1),DIFF) AND 今收<=今开,今开,今收,1,0),COLOR99EFFF;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收<=今开,今开,今收,8,1),COLOR00AF55;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收<=今开,今开,今收,6,0),COLOR33CF77;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收<=今开,今开,今收,4,0),COLOR55DF99;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收<=今开,今开,今收,2,0),COLOR77EFAA;
STICKLINE(CROSS(DIFF,REF(DIFF,1)) AND 今收<=今开,今开,今收,1,0),COLOR99FFCC;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收>今开,今开,今收,8,1),COLOR0055FF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收>今开,今开,今收,6,0),COLOR3377FF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收>今开,今开,今收,4,0),COLOR5599FF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收>今开,今开,今收,2,0),COLOR77AAFF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收>今开,今开,今收,1,0),COLOR99CCFF;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收>今开,今开,今收,8,1),COLORAF0077;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收>今开,今开,今收,6,0),COLORCF3399;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收>今开,今开,今收,4,0),COLORDF55AA;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收>今开,今开,今收,2,0),COLOREF77CC;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收>今开,今开,今收,1,0),COLORFF99DD;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收<=今开,今开,今收,8,1),COLOR009AFF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收<=今开,今开,今收,6,0),COLOR33ACFF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收<=今开,今开,今收,4,0),COLOR55CDFF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收<=今开,今开,今收,2,0),COLOR77DEFF;
STICKLINE(CROSS(REF(MACD,1),MACD) AND 今收<=今开,今开,今收,1,0),COLOR99EFFF;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收<=今开,今开,今收,8,1),COLOR00AF55;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收<=今开,今开,今收,6,0),COLOR33CF77;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收<=今开,今开,今收,4,0),COLOR55DF99;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收<=今开,今开,今收,2,0),COLOR77EFAA;
STICKLINE(CROSS(MACD,REF(MACD,1)) AND 今收<=今开,今开,今收,1,0),COLOR99FFCC;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收>今开,今开,今收,8,1),COLOR0055FF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收>今开,今开,今收,6,0),COLOR3377FF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收>今开,今开,今收,4,0),COLOR5599FF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收>今开,今开,今收,2,0),COLOR77AAFF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收>今开,今开,今收,1,0),COLOR99CCFF;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收>今开,今开,今收,8,1),COLORAF0077;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收>今开,今开,今收,6,0),COLORCF3399;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收>今开,今开,今收,4,0),COLORDF55AA;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收>今开,今开,今收,2,0),COLOREF77CC;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收>今开,今开,今收,1,0),COLORFF99DD;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收<=今开,今开,今收,8,1),COLOR009AFF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收<=今开,今开,今收,6,0),COLOR33ACFF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收<=今开,今开,今收,4,0),COLOR55CDFF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收<=今开,今开,今收,2,0),COLOR77DEFF;
STICKLINE(CROSS(REF(DEA,1),DEA) AND 今收<=今开,今开,今收,1,0),COLOR99EFFF;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收<=今开,今开,今收,8,1),COLOR00AF55;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收<=今开,今开,今收,6,0),COLOR33CF77;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收<=今开,今开,今收,4,0),COLOR55DF99;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收<=今开,今开,今收,2,0),COLOR77EFAA;
STICKLINE(CROSS(DEA,REF(DEA,1)) AND 今收<=今开,今开,今收,1,0),COLOR99FFCC;
STICKLINE(CROSS(DEA,DIFF) AND 今收>今开,今开,今收,8,1),COLOR0077FF;
STICKLINE(CROSS(DEA,DIFF) AND 今收>今开,今开,今收,6,0),COLOR3399FF;
STICKLINE(CROSS(DEA,DIFF) AND 今收>今开,今开,今收,4,0),COLOR55AAFF;
STICKLINE(CROSS(DEA,DIFF) AND 今收>今开,今开,今收,2,0),COLOR77CCFF;
STICKLINE(CROSS(DEA,DIFF) AND 今收>今开,今开,今收,1,0),COLOR99DDFF;
STICKLINE(CROSS(DIFF,DEA) AND 今收>今开,今开,今收,8,1),COLOR0000AF;
STICKLINE(CROSS(DIFF,DEA) AND 今收>今开,今开,今收,6,0),COLOR3300CF;
STICKLINE(CROSS(DIFF,DEA) AND 今收>今开,今开,今收,4,0),COLOR5533DF;
STICKLINE(CROSS(DIFF,DEA) AND 今收>今开,今开,今收,2,0),COLOR7755EF;
STICKLINE(CROSS(DIFF,DEA) AND 今收>今开,今开,今收,1,0),COLOR9977FF;
STICKLINE(CROSS(DIFF,DEA) AND 今收<=今开,今开,今收,8,1),COLOR00AF77;
STICKLINE(CROSS(DIFF,DEA) AND 今收<=今开,今开,今收,6,0),COLOR33CF99;
STICKLINE(CROSS(DIFF,DEA) AND 今收<=今开,今开,今收,4,0),COLOR55DFAA;
STICKLINE(CROSS(DIFF,DEA) AND 今收<=今开,今开,今收,2,0),COLOR77EFCC;
STICKLINE(CROSS(DIFF,DEA) AND 今收<=今开,今开,今收,1,0),COLOR99FFDD;
STICKLINE(CROSS(DEA,DIFF) AND 今收<=今开,今开,今收,8,1),COLOR77AF00;
STICKLINE(CROSS(DEA,DIFF) AND 今收<=今开,今开,今收,6,0),COLOR99CF33;
STICKLINE(CROSS(DEA,DIFF) AND 今收<=今开,今开,今收,4,0),COLORAADF55;
STICKLINE(CROSS(DEA,DIFF) AND 今收<=今开,今开,今收,2,0),COLORCCEF77;
STICKLINE(CROSS(DEA,DIFF) AND 今收<=今开,今开,今收,1,0),COLORDDFF99;
DRAWTEXT(今行情,今涨停,'今涨停('+NUMTOSTR(今涨停,2)+')'),SHIFT3,COLOR0000FF;
DRAWTEXT(今行情,今跌停,'今跌停('+NUMTOSTR(今跌停,2)+')'),SHIFT3,COLOR00FFFF;
DRAWTEXT(今行情,回归趋势线,'回归价('+NUMTOSTR(回归趋势线,2)+')'),SHIFT3,COLOR336699;
DRAWTEXT(今行情,加权趋势线,'加权价('+NUMTOSTR(加权趋势线,2)+')'),SHIFT3,COLOR996633;
DRAWTEXT(今行情,箱顶,'箱顶价('+NUMTOSTR(箱顶,2)+')'),SHIFT43,COLOR00AF00;
DRAWTEXT(今行情,箱底,'箱底价('+NUMTOSTR(箱底,2)+')'),SHIFT43,COLORAF00AA;
DRAWTEXT(今行情,上轨,'上轨价('+NUMTOSTR(上轨,2)+')'),SHIFT43,COLORACFFCD;
DRAWTEXT(今行情,中轨,'中轨价('+NUMTOSTR(中轨,2)+')'),SHIFT43,COLOR00AAFF;
DRAWTEXT(今行情,下轨,'下轨价('+NUMTOSTR(下轨,2)+')'),SHIFT43,COLORCDACFF;
DRAWTEXT(今行情,明涨停,'明涨停('+NUMTOSTR(明涨停,2)+')'),SHIFT43,COLOR9900FF;
DRAWTEXT(今行情,明跌停,'明跌停('+NUMTOSTR(明跌停,2)+')'),SHIFT43,COLOR0099FF;
DRAWTEXT(今行情 AND 今低>中线支撑位 AND 今低<=短线支撑位 AND 今收>=短线支撑位,(箱底-0.30),'逢低吸纳'),SHIFT43,COLORFF00AA;
DRAWTEXT(今行情 AND 今高>=短线压力位 AND 今高<中线压力位 AND 今收<=短线压力位,(箱顶+0.30),'后市回挡'),SHIFT43,COLOR00FFAA;
DRAWTEXT(今行情 AND 今低<=中线支撑位 AND 今收>=中线支撑位,(箱底-0.20),'后市反弹'),SHIFT43,COLORAA00FF;
DRAWTEXT(今行情 AND 今高>=中线压力位 AND 今收<=中线压力位,(箱顶+0.20),'逢高减磅'),SHIFT43,COLORAAFF00;
DRAWTEXT(今行情 AND 今收>今开 AND 前收>前开 AND REF(今收,2)>REF(今开,2) AND 今收>前收 AND 前收>REF(今收,2),(箱底-0.10),'红三兵'),SHIFT43,COLOR0000FF;
DRAWTEXT(今行情 AND 今收<今开 AND 前收<前开 AND REF(今收,2)<REF(今开,2) AND 今收<前收 AND 前收<REF(今收,2),(箱顶+0.10),'黑三兵'),SHIFT43,COLOR00FFFF;
DRAWTEXT(今行情 AND 今开<前收 AND 今高<REF(今低,1),(REF(今低,1)-0.03),'>↓'),ALIGN0,COLORF1FFF1;{跳空缺口}
DRAWTEXT(今行情 AND 今开>前收 AND 今低>REF(今高,1),(REF(今高,1)+0.03),'>↑'),ALIGN0,COLORF1F1FF;{跳空缺口}
DRAWTEXT(今行情 AND 今量>=2.875*REF(今量,1) AND 今收<今开,(今低-0.34),'∨↓'),ALIGN0,COLORACFFFF;
DRAWTEXT(今行情 AND 今量>=2.875*REF(今量,1) AND 今收>今开,(今高+0.34),'∧↑'),ALIGN0,COLORACACFF;
DRAWTEXT(今行情 AND 今量<=0.125*REF(今量,1) AND 今收<今开,(今低-0.34),'∨'),ALIGN0,COLORACFFAC;
DRAWTEXT(今行情 AND 今量<=0.125*REF(今量,1) AND 今收>今开,(今高+0.34),'∧'),ALIGN0,COLORFFACFF;
DRAWTEXT(今行情 AND MA5>REF(MA5,1) AND 今收>MA5 AND 今收>今开,(今开-0.30),'疯牛飙升'),SHIFT78,COLOR00ACFF;
DRAWTEXT(今行情 AND MA5>REF(MA5,1) AND 今收>MA5 AND 今收<=今开,(今开-0.30),'疯牛止步'),SHIFT78,COLOR00DEFF;
DRAWTEXT(今行情 AND MA5>REF(MA5,1) AND 今收<=MA5 AND 今收>今开,(今开-0.30),'疯牛来了'),SHIFT78,COLOR00CDFF;
DRAWTEXT(今行情 AND MA5>REF(MA5,1) AND 今收<=MA5 AND 今收<=今开,(今开-0.30),'疯牛逃遁'),SHIFT78,COLOR00FFFF;
DRAWTEXT(今行情 AND MA5<=REF(MA5,1) AND 今收>MA5 AND 今收>今开,(今开+0.30),'呆熊去了'),SHIFT78,COLOR00FFDE;
DRAWTEXT(今行情 AND MA5<=REF(MA5,1) AND 今收>MA5 AND 今收<=今开,(今开+0.30),'呆熊觅食'),SHIFT78,COLOR00FFCD;
DRAWTEXT(今行情 AND MA5<=REF(MA5,1) AND 今收<=MA5 AND 今收>今开,(今开+0.30),'呆熊惊蛰'),SHIFT78,COLOR00FFAC;
DRAWTEXT(今行情 AND MA5<=REF(MA5,1) AND 今收<=MA5 AND 今收<=今开,(今开+0.30),'呆熊冬眠'),SHIFT78,COLOR00FF00;
DRAWTEXT(今行情 AND COUNT(CROSS(MA5,MA8),3) AND 今收>=MA5 AND 今收>今开,(今开-0.50),'黑马起步'),SHIFT78,COLOR00CCFF;
DRAWTEXT(今行情 AND COUNT(CROSS(MA8,MA5),3) AND 今收<=MA5 AND 今收<=今开,(今开+0.50),'黑马止步'),SHIFT78,COLOR00FFCC;
DRAWTEXT(今行情 AND COUNT(CROSS(MA5,MA13),3) AND 今收>=MA5 AND 今收>=MA8 AND 今收>今开,(今开-0.40),'黑马飙升'),SHIFT78,COLOR00AAFF;
DRAWTEXT(今行情 AND COUNT(CROSS(MA13,MA5),3) AND 今收<=MA5 AND 今收<=MA8 AND 今收<=今开,(今开+0.40),'黑马逃遁'),SHIFT78,COLOR00FFAA;
DRAWICON(今行情 AND 共底,(今低-0.05),1),ALIGN0;{底区}
DRAWICON(今行情 AND 共顶,(今高+0.11),2),ALIGN0;{顶区}
DRAWICON(今行情 AND KDJ<=20,(今低-0.03),8),ALIGN0;{底区}
DRAWICON(今行情 AND KDJ>=80,(今高+0.05),9),ALIGN0;{顶区}
DRAWICON(今行情 AND (CROSS(DIFF,REF(DIFF,1)) OR CROSS(DEA,REF(DEA,1)) OR CROSS(MACD,REF(MACD,1))) AND 今收>今开,(今低-0.21),6),ALIGN0;
DRAWICON(今行情 AND (CROSS(REF(DIFF,1),DIFF) OR CROSS(REF(DEA,1),DEA) OR CROSS(REF(MACD,1),MACD)) AND 今收>今开,(今低-0.21),4),ALIGN0;
DRAWICON(今行情 AND (CROSS(REF(DIFF,1),DIFF) OR CROSS(REF(DEA,1),DEA) OR CROSS(REF(MACD,1),MACD)) AND 今收<=今开,(今高+0.21),5),ALIGN0;
DRAWICON(今行情 AND (CROSS(DIFF,REF(DIFF,1)) OR CROSS(DEA,REF(DEA,1)) OR CROSS(MACD,REF(MACD,1))) AND 今收<=今开,(今高+0.21),7),ALIGN0;
DRAWICON(今行情 AND CROSS(DIFF,DEA) AND 今收>今开,(今低-0.21),13),SHIFT1,ALIGN0;
DRAWICON(今行情 AND CROSS(DEA,DIFF) AND 今收>今开,(今低-0.21),10),SHIFT1,ALIGN0;
DRAWICON(今行情 AND CROSS(DIFF,DEA) AND 今收<=今开,(今高+0.21),11),SHIFT1,ALIGN0;
DRAWICON(今行情 AND CROSS(DEA,DIFF) AND 今收<=今开,(今高+0.21),14),SHIFT1,ALIGN0;
DRAWICON(今行情 AND (CROSS(K,REF(K,1)) OR CROSS(D,REF(D,1)) OR CROSS(KDJ,REF(KDJ,1))) AND 今收>今开,(今低-0.27),6),ALIGN0;
DRAWICON(今行情 AND (CROSS(REF(K,1),K) OR CROSS(REF(D,1),D) OR CROSS(REF(KDJ,1),KDJ)) AND 今收>今开,(今低-0.27),4),ALIGN0;
DRAWICON(今行情 AND (CROSS(REF(K,1),K) OR CROSS(REF(D,1),D) OR CROSS(REF(KDJ,1),KDJ)) AND 今收<=今开,(今高+0.27),5),ALIGN0;
DRAWICON(今行情 AND (CROSS(K,REF(K,1)) OR CROSS(D,REF(D,1)) OR CROSS(KDJ,REF(KDJ,1))) AND 今收<=今开,(今高+0.27),7),ALIGN0;
DRAWICON(今行情 AND CROSS(K,D) AND 今收>今开,(今低-0.27),13),SHIFT1,ALIGN0;
DRAWICON(今行情 AND CROSS(D,K) AND 今收>今开,(今低-0.27),10),SHIFT1,ALIGN0;
DRAWICON(今行情 AND CROSS(K,D) AND 今收<=今开,(今高+0.27),11),SHIFT1,ALIGN0;
DRAWICON(今行情 AND CROSS(D,K) AND 今收<=今开,(今高+0.27),14),SHIFT1,ALIGN0;
DRAWTEXT(今行情 AND MACD<=0 AND MACD<=REF(MACD,1) AND 今收>今开,(今跌停-0.10),'持股'),SHIFT3,COLORFF0099;{买入}
DRAWTEXT(今行情 AND MACD<=0 AND MACD>REF(MACD,1) AND 今收>今开,(今跌停-0.10),'持股'),SHIFT3,COLOR9900FF;{买入}
DRAWTEXT(今行情 AND MACD>0 AND MACD<=REF(MACD,1) AND 今收>今开,(今跌停-0.10),'持股'),SHIFT3,COLOR0066FF;{买入}
DRAWTEXT(今行情 AND MACD>0 AND MACD>REF(MACD,1) AND 今收>今开,(今跌停-0.10),'持股'),SHIFT3,COLOR0000FF;{买入}
DRAWTEXT(今行情 AND MACD>0 AND MACD>REF(MACD,1) AND 今收<=今开,(今涨停+0.10),'持币'),SHIFT3,COLOR00AAFF;{卖出}
DRAWTEXT(今行情 AND MACD>0 AND MACD<=REF(MACD,1) AND 今收<=今开,(今涨停+0.10),'持币'),SHIFT3,COLOR00FFFF;{卖出}
DRAWTEXT(今行情 AND MACD<=0 AND MACD>REF(MACD,1) AND 今收<=今开,(今涨停+0.10),'持币'),SHIFT3,COLOR00FFAA;{卖出}
DRAWTEXT(今行情 AND MACD<=0 AND MACD<=REF(MACD,1) AND 今收<=今开,(今涨停+0.10),'持币'),SHIFT3,COLOR00FF00;{卖出}
DRAWTEXT(今行情 AND COUNT(CROSS(DIFF,REF(DIFF,1)) OR CROSS(MACD,REF(MACD,1)) OR CROSS(DEA,REF(DEA,1)),3) AND 今收>今开,(今跌停-0.20),'播种'),SHIFT3,COLORFF00FF;
DRAWTEXT(今行情 AND COUNT(CROSS(DIFF,DEA),3) AND 今收>今开,(今跌停-0.20),'抢种'),SHIFT18,COLOR0000FF;
DRAWTEXT(今行情 AND COUNT(CROSS(REF(DIFF,1),DIFF) OR CROSS(REF(MACD,1),MACD) OR CROSS(REF(DEA,1),DEA),3) AND 今收<=今开,(今涨停+0.20),'秋收'),SHIFT3,COLOR00FFFF;
DRAWTEXT(今行情 AND COUNT(CROSS(DEA,DIFF),3) AND 今收<=今开,(今涨停+0.20),'抢收'),SHIFT18,COLOR00FF00;
DRAWTEXT(今行情 AND COUNT(CROSS(K,REF(K,1)) OR CROSS(KDJ,REF(KDJ,1)) OR CROSS(D,REF(D,1)),3) AND 今收>今开,(今跌停-0.20),'播种'),SHIFT3,COLORFF00FF;
DRAWTEXT(今行情 AND COUNT(CROSS(K,D),3) AND 今收>今开,(今跌停-0.20),'抢种'),SHIFT18,COLOR0000FF;
DRAWTEXT(今行情 AND COUNT(CROSS(REF(K,1),K) OR CROSS(REF(KDJ,1),KDJ) OR CROSS(REF(D,1),D),3) AND 今收<=今开,(今涨停+0.20),'秋收'),SHIFT3,COLOR00FFFF;
DRAWTEXT(今行情 AND COUNT(CROSS(D,K),3) AND 今收<=今开,(今涨停+0.20),'抢收'),SHIFT18,COLOR00FF00;
DRAWTEXT(今行情 AND FILTER(CROSS(-15,DIFF),3),(今跌停-0.40),'备钱'),SHIFT3,COLORFF00AA;
DRAWTEXT(今行情 AND COUNT(DIFF<=DEA AND DIFF>REF(DIFF,1) AND DIFF<=-5,3) AND 今收>今开,(今跌停-0.10),'抄底'),SHIFT18,COLORFF00FF;
DRAWTEXT(今行情 AND FILTER(CROSS(DIFF,-15),3),(今跌停-0.30),'出击'),SHIFT3,COLORAA00FF;
DRAWTEXT(今行情 AND FILTER(CROSS(DIFF,15),3),(今涨停+0.40),'备货'),SHIFT3,COLOR00FFAA;
DRAWTEXT(今行情 AND COUNT(DIFF>DEA AND DIFF<=REF(DIFF,1) AND DIFF>=5,3) AND 今收<=今开,(今涨停+0.10),'逃顶'),SHIFT18,COLOR00FF00;
DRAWTEXT(今行情 AND FILTER(CROSS(15,DIFF),3),(今涨停+0.30),'逃命'),SHIFT3,COLOR00AA00;
DRAWTEXT(今行情 AND FILTER(CROSS(20,KDJ),3),(今跌停-0.40),'备钱'),SHIFT3,COLORFF00AA;
DRAWTEXT(今行情 AND COUNT(K<=D AND KDJ>REF(KDJ,1) AND KDJ<=20,3) AND 今收>今开,(今跌停-0.10),'抄底'),SHIFT18,COLORFF00FF;
DRAWTEXT(今行情 AND FILTER(CROSS(KDJ,20),3),(今跌停-0.30),'出击'),SHIFT3,COLORAA00FF;
DRAWTEXT(今行情 AND FILTER(CROSS(KDJ,80),3),(今涨停+0.40),'备货'),SHIFT3,COLOR00FFAA;
DRAWTEXT(今行情 AND COUNT(K>D AND KDJ<=REF(KDJ,1) AND KDJ>=80,3) AND 今收<=今开,(今涨停+0.10),'逃顶'),SHIFT18,COLOR00FF00;
DRAWTEXT(今行情 AND FILTER(CROSS(80,KDJ),3),(今开+0.30),'逃命'),SHIFT3,COLOR00AA00;
DRAWTEXT(今行情 AND 试买,(今跌停-0.40),'补仓'),SHIFT18,COLORAA00FF;
DRAWTEXT(今行情 AND 追买,(今跌停-0.30),'满仓'),SHIFT18,COLOR0000FF;
DRAWTEXT(今行情 AND 止盈,(今涨停+0.40),'减仓'),SHIFT18,COLOR00FFAA;
DRAWTEXT(今行情 AND 止损,(今涨停+0.30),'空仓'),SHIFT18,COLOR00FF00;
DRAWTEXT(今行情 AND MA5>REF(MA5,1),(今开-0.10),'5日均线向上('+NUMTOSTR(MA5,2)+')'),SHIFT113,COLOR0000FA;
DRAWTEXT(今行情 AND MA5=REF(MA5,1),(今开+0.10),'5日均线走平('+NUMTOSTR(MA5,2)+')'),SHIFT113,COLOR00AAFF;
DRAWTEXT(今行情 AND MA5<REF(MA5,1),(今开+0.10),'5日均线向下('+NUMTOSTR(MA5,2)+')'),SHIFT113,COLOR00FFAA;
DRAWTEXT(今行情 AND MA8>REF(MA8,1),(今开-0.20),'8日均线向上('+NUMTOSTR(MA8,2)+')'),SHIFT113,COLOR0000FC;
DRAWTEXT(今行情 AND MA8=REF(MA8,1),(今开+0.20),'8日均线走平('+NUMTOSTR(MA8,2)+')'),SHIFT113,COLOR00DDFF;
DRAWTEXT(今行情 AND MA8<REF(MA8,1),(今开+0.20),'8日均线向下('+NUMTOSTR(MA8,2)+')'),SHIFT113,COLOR00DD00;
DRAWTEXT(今行情 AND MA13>REF(MA13,1),(今开-0.30),'13日均线向上('+NUMTOSTR(MA13,2)+')'),SHIFT113,COLOR0000FD;
DRAWTEXT(今行情 AND MA13=REF(MA13,1),(今开+0.30),'13日均线走平('+NUMTOSTR(MA13,2)+')'),SHIFT113,COLOR00CCFF;
DRAWTEXT(今行情 AND MA13<REF(MA13,1),(今开+0.30),'13日均线向下('+NUMTOSTR(MA13,2)+')'),SHIFT113,COLOR00CC00;
DRAWTEXT(今行情 AND MA21>REF(MA21,1),(今开-0.40),'21日均线向上('+NUMTOSTR(MA21,2)+')'),SHIFT113,COLOR0000FF;
DRAWTEXT(今行情 AND MA21=REF(MA21,1),(今开+0.40),'21日均线走平('+NUMTOSTR(MA21,2)+')'),SHIFT113,COLOR00AAFF;
DRAWTEXT(今行情 AND MA21<REF(MA21,1),(今开+0.40),'21日均线向下('+NUMTOSTR(MA21,2)+')'),SHIFT113,COLOR00AA00;
DRAWTEXT(今行情 AND COUNT(MA5>MA8 AND MA8>MA13 AND MA13>MA21,8)>=1,(今开-0.10),'短期均线多头排列'),SHIFT165,COLOR0000FF;
DRAWTEXT(今行情 AND COUNT(MA5<=MA8 AND MA8<=MA13 AND MA13<=MA21,8)>=1,(今开+0.10),'短期均线空头排列'),SHIFT165,COLOR00FFFF;
DRAWTEXT(今行情 AND COUNT(MA8>MA21 AND MA21>MA65 AND MA65>MA108,21)>=3,(今开-0.20),'中期均线多头排列'),SHIFT165,COLORFF00FF;
DRAWTEXT(今行情 AND COUNT(MA8<=MA21 AND MA21<=MA65 AND MA65<=MA108,21)>=3,(今开+0.20),'中期均线空头排列'),SHIFT165,COLOR00FF00;
DRAWTEXT(今行情 AND COUNT(MA21>MA65 AND MA65>MA108 AND MA108>MA248,65)>=3,(今开-0.30),'长期均线多头排列'),SHIFT165,COLORFF00AF;
DRAWTEXT(今行情 AND COUNT(MA21<=MA65 AND MA65<=MA108 AND MA108<=MA248,65)>=3,(今开+0.30),'长期均线空头排列'),SHIFT165,COLOR00AF00;
DRAWTEXT(今行情 AND CROSS(今收,MA5) AND CROSS(今收,MA8) AND CROSS(今收,MA13) AND 今收>今开,(今开-0.50),'今日一阳上穿三线'),SHIFT113,COLOR0000FF;
DRAWTEXT(今行情 AND CROSS(MA5,今收) AND CROSS(MA8,今收) AND CROSS(MA13,今收) AND 今收<=今开,(今开+0.50),'今日一阴下破三线'),SHIFT113,COLOR00FFFF;
DRAWTEXT(今行情 AND LONGCROSS(今收,MA21,8) AND 今收>今开,(今开-0.40),'今日一阳上穿月线'),SHIFT165,COLORFF00AF;
DRAWTEXT(今行情 AND LONGCROSS(MA21,今收,8) AND 今收<=今开,(今开+0.40),'今日一阴下破月线'),SHIFT165,COLOR00FF00;
DRAWTEXT(今行情 AND LONGCROSS(今收,MA248,21) AND 今收>今开,(今开-0.50),'今日一阳上穿年线'),SHIFT165,COLORFF00FF;
DRAWTEXT(今行情 AND LONGCROSS(MA248,今收,21) AND 今收<=今开,(今开+0.50),'今日一阴下破年线'),SHIFT165,COLOR00AF00;
DRAWTEXT(今行情 AND COUNT(CROSS(MACD,0),3) AND MACD>REF(MACD,1) AND 今收>今开,今开,'行情走强后市要涨'),SHIFT213,COLOR0000FF;
DRAWTEXT(今行情 AND COUNT(CROSS(0,MACD),3) AND MACD<REF(MACD,1) AND 今收<=今开,今开,'行情走弱后市要跌'),SHIFT213,COLOR00FF00;
DRAWTEXT(今行情 AND MACD>0 AND COUNT(CROSS(MACD,REF(MACD,1)),3) AND 今收>今开,(今开-0.10),'强势启动后市要涨'),SHIFT213,COLOR0066FF;
DRAWTEXT(今行情 AND MACD>0 AND COUNT(CROSS(REF(MACD,1),MACD),3) AND 今收<=今开,(今开+0.10),'强势回落后市看跌'),SHIFT213,COLOR00FFFF;
DRAWTEXT(今行情 AND MACD<0 AND COUNT(CROSS(MACD,REF(MACD,1)),3) AND 今收>今开,(今开-0.10),'弱势启动后市看涨'),SHIFT213,COLORFF00FF;
DRAWTEXT(今行情 AND MACD<0 AND COUNT(CROSS(REF(MACD,1),MACD),3) AND 今收<=今开,(今开+0.10),'弱势回落后市要跌'),SHIFT213,COLOR00FF66;
DRAWTEXT(今行情 AND 空翻多 AND 今收>今开,(今开-0.20),'空翻多总势要涨'),SHIFT213,COLORFF00FF;
DRAWTEXT(今行情 AND 空翻多 AND 今收<=今开,(今开-0.20),'空翻多总势看涨'),SHIFT213,COLOR00FFAA;
DRAWTEXT(今行情 AND 多头市场 AND 今收>今开,(今开-0.20),'多占优总势要涨'),SHIFT213,COLOR0000FF;
DRAWTEXT(今行情 AND 多头市场 AND 今收<=今开,(今开-0.20),'多占优总势看涨'),SHIFT213,COLOR00AAFF;
DRAWTEXT(今行情 AND 多翻空 AND 今收>今开,(今开+0.20),'多翻空总势看跌'),SHIFT213,COLORAA00FF;
DRAWTEXT(今行情 AND 多翻空 AND 今收<=今开,(今开+0.20),'多翻空总势要跌'),SHIFT213,COLOR00FFFF;
DRAWTEXT(今行情 AND 空头市场 AND 今收>今开,(今开+0.20),'空占优总势看跌'),SHIFT213,COLORFF00AA;
DRAWTEXT(今行情 AND 空头市场 AND 今收<=今开,(今开+0.20),'空占优总势要跌'),SHIFT213,COLOR00FF00;
DRAWTEXT(今行情 AND 空翻多 AND 今收>今开,(今开-0.30),'后市欲见底反弹'),SHIFT213,colormagenta;
DRAWTEXT(今行情 AND 多头市场 AND 今收>今开,(今开-0.30),'后市欲惯性上扬'),SHIFT213,colorred;
DRAWTEXT(今行情 AND 多翻空 AND 今收<=今开,(今开+0.30),'后市欲见顶回挡'),SHIFT213,coloryellow;
DRAWTEXT(今行情 AND 空头市场 AND 今收<=今开,(今开+0.30),'后市欲惯性下挫'),SHIFT213,colorgreen;
//其它辅助指标-二十四节气
JQ:=LSOLARTERM(date);
DRAWTEXT(今行情 AND JQ=1,今开,'小寒'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=2,今开,'大寒'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=3,今开,'立春'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=4,今开,'雨水'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=5,今开,'惊蛰'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=6,今开,'春分'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=7,今开,'清明'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=8,今开,'谷雨'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=9,今开,'立夏'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=10,今开,'小满'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=11,今开,'芒种'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=12,今开,'夏至'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=13,今开,'小暑'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=14,今开,'大暑'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=15,今开,'立秋'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=16,今开,'处暑'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=17,今开,'白露'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=18,今开,'秋分'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=19,今开,'寒露'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=20,今开,'霜降'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=21,今开,'立冬'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=22,今开,'小雪'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=23,今开,'大雪'),SHIFT93,colorcyan;
DRAWTEXT(今行情 AND JQ=24,今开,'冬至'),SHIFT93,colorcyan;
//其它辅助指标
DRAWTEXT(今行情 AND 今开>前收 AND 涨跌幅>2.875,(今开-0.10),'涨跌幅('+NUMTOSTR(涨跌幅,2)+')'),SHIFT78,COLOR33ACFF;
DRAWTEXT(今行情 AND 今开=前收 AND 涨跌幅>2.875,(今开-0.10),'涨跌幅('+NUMTOSTR(涨跌幅,2)+')'),SHIFT78,COLOR33CDFF;
DRAWTEXT(今行情 AND 今开<前收 AND 涨跌幅>2.875,(今开-0.10),'涨跌幅('+NUMTOSTR(涨跌幅,2)+')'),SHIFT78,COLOR33DEFF;
DRAWTEXT(今行情 AND 今开>前收 AND 涨跌幅<=-2.875,(今开+0.10),'涨跌幅('+NUMTOSTR(涨跌幅,2)+')'),SHIFT78,COLOR33FFDE;
DRAWTEXT(今行情 AND 今开=前收 AND 涨跌幅<=-2.875,(今开+0.10),'涨跌幅('+NUMTOSTR(涨跌幅,2)+')'),SHIFT78,COLOR33FFCD;
DRAWTEXT(今行情 AND 今开<前收 AND 涨跌幅<=-2.875,(今开+0.10),'涨跌幅('+NUMTOSTR(涨跌幅,2)+')'),SHIFT78,COLOR33FFAC;
DRAWTEXT(今行情 AND 今收>今跌停 AND 今收<今涨停 AND 振幅>2.875 AND 今收>今开,(今开-0.20),'振幅('+NUMTOSTR(振幅,2)+')'),SHIFT78,COLORAC33FF;
DRAWTEXT(今行情 AND 今收>今跌停 AND 今收<今涨停 AND 振幅>2.875 AND 今收<=今开,(今开+0.20),'振幅('+NUMTOSTR(振幅,2)+')'),SHIFT78,COLOR33FFAC;
//其它辅助指标
DRAWTEXT(今行情 AND 今率>0 AND 今率<=1,今开,'成交低靡-地量('+NUMTOSTR(今率,2)+')'),SHIFT113,colorgray;
DRAWTEXT(今行情 AND 今率>1 AND 今率<=2,今开,'成交疲弱-无量('+NUMTOSTR(今率,2)+')'),SHIFT113,colorgray;
DRAWTEXT(今行情 AND 今率>2 AND 今率<=3,今开,'成交温和('+NUMTOSTR(今率,2)+')'),SHIFT113,colorgray;
DRAWTEXT(今行情 AND 今率>3 AND 今率<=5,今开,'成交活跃('+NUMTOSTR(今率,2)+')'),SHIFT113,colorcyan;
DRAWTEXT(今行情 AND 今率>5 AND 今率<=8,今开,'带量成交('+NUMTOSTR(今率,2)+')'),SHIFT113,colorwhite;
DRAWTEXT(今行情 AND 今率>8 AND 今率<=13,今开,'放量成交('+NUMTOSTR(今率,2)+')'),SHIFT113,colorwhite;
DRAWTEXT(今行情 AND 今率>13 AND 今率<=21,今开,'巨量成交('+NUMTOSTR(今率,2)+')'),SHIFT113,colorwhite;
DRAWTEXT(今行情 AND 今率>21,今开,'怪异成交-天量('+NUMTOSTR(今率,2)+')'),SHIFT113,colorwhite;
//其它辅助指标
买盘比:=((今收-今低)/(今高-今低))*100*Var2/Var2;//((var3-var4)/(var5-var4))*100*Var2/Var2//买方、多头、多方、支撑、抵抗
卖盘比:=(100-买盘比);//卖方、空头、空方、压力、阻力
买卖对比:=(买盘比-卖盘比),COLOR00CCFF,linethick0;//买卖力度对比
VarA6:=MA(今率*买盘比,5);
VarB6:=MA(VarA6,3);
DRAWTEXT(今行情 AND VarA6>varB6 AND VarA6>REF(varA6,1),今开,'场外资金介入强烈'),SHIFT165,COLOR0000FF;
DRAWTEXT(今行情 AND VarA6>varB6 AND VarA6<=REF(varA6,1),今开,'场内资金临时出局'),SHIFT165,COLOR00FFFF;
DRAWTEXT(今行情 AND VarA6<=varB6 AND VarA6>REF(varA6,1),今开,'场外资金临时介入'),SHIFT165,COLORFF00FF;
DRAWTEXT(今行情 AND VarA6<=varB6 AND VarA6<=REF(varA6,1),今开,'场内资金出局强烈'),SHIFT165,COLOR00FF00;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容