H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,NODRAW;
STICKLINE(crOSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸};
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};
AMOUNT/(V*100),COLORBLUE,LINETHICK4;
AAA1:=STRCAT(CON2STR(YEAR,0),'年');
AAA2:=STRCAT(CON2STR(MONTH,0),'月');
AAA3:=STRCAT(CON2STR(DAY,0),'日');
AAA4:=STRCAT('【',IF(WEEkdAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));
AAA:=STRCAT(STRCAT(STRCAT(AAA1,AAA2),STRCAT(AAA3,AAA4)),'】');
AAA01:=STRCAT('流通股',CON2STR(FINANCE(7)/100000000,4));
AAA02:=STRCAT('(亿)增长',CON2STR(FINANCE(43),2));
AAA03:=STRCAT('%收益(年)',CON2STR(FINANCE(33),2));
AAA04:=STRCAT('(元)换手',CON2STR(DYNAINFO(37)*100,2));
AAA05:=STRCAT('%',CON2STR(DYNAINFO(17),2));
BBB:=STRCAT(STRCAT(STRCAT(AAA01,AAA02),STRCAT(AAA03,AAA04)),STRCAT(AAA05,''));
AAAA:=STRCAT(AAA,BBB);
DRAWTEXT_FIX(1,0,0.85,0,AAAA),COLORYELLOW;
AAA06:=STRCAT(DYBLOCK,HYBLOCK);
AAA07:=STRCAT(GNBLOCK,FGBLOCK);
AAA08:=STRCAT(ZSBLOCK,ZHBLOCK);
AAAAA:=STRCAT(STRCAT(AAA06,AAA07),STRCAT(AAA08,''));
DRAWTEXT_FIX(1,0,0.80,0,AAAAA),COLORWHITE;
DRAWTEXT_FIX(1,0,0.90,0,ZDBLOCK),COLORCYAN;
成交额:=V*C/100,NODRAW;
BA2:=SUM((IF(((成交额/8 20)AND(CLOSE (REF(CLOSE,1)))),成交额,0)),0);
BA3:=SUM((IF(((成交额/8 20)AND(CLOSE (REF(CLOSE,1)))),成交额,0)),0);
BA6:=(BA2+BA3);
BA7:=IF((ISLASTBAR),((100*BA2)/BA6),0);
BA8:=IF((ISLASTBAR),((100*BA3)/BA6),0);
{DD1:=1;}
BAAA1:=STRCAT(STRCAT('买',CON2STR((100*BA2)/BA6,0)),'%');
BAAA2:=STRCAT(STRCAT('机构卖',CON2STR((100*BA3)/BA6,0)),'%');
BAAA3:=STRCAT(STRCAT('总买入',CON2STR((100*(BA2-BA3))/BA6,0)),'%');
sslB:=STRCAT(STRCAT('三日量比',CON2STR((/FROMOPEN)/(MA(V,3)/240)*100,0)),'%');
DRAWTEXT_FIX(1,0,0.02,0,BAAA1),COLORRED;
DRAWTEXT_FIX(1,0,0.10,0,BAAA2),COLOR00FF00;
DRAWTEXT_FIX(1,0,0.18,0,BAAA3),COLOR00FFFF;
DRAWTEXT_FIX(1,0,0.26,0,SSLB),COLORRED;
MA25:EMA(CLOSE,25);
FJ:EMA(CLOSE,905);
STICKLINE((MA25 FJ),MA25,FJ,0.8,0),COLOR0000FF;
STICKLINE((MA25 FJ)ANDMA25 REF(MA25,1),MA25,FJ,0.8,0),COLOR00CCFF;
STICKLINE((MA25 FJ)ANDFJ REF(FJ,1),MA25,FJ,0.8,0),COLORCYAN;
STICKLINE((MA25 FJ),MA25,FJ,0.7,0),COLOR00FF00;
STICKLINE((MA25 FJ)ANDMA25 REF(MA25,1),MA25,FJ,0.8,0),COLORCYAN;
STICKLINE((MA25 FJ)ANDFJ REF(FJ,1),MA25,FJ,0.8,0),COLORLIRED;
DRAWICON(CROSS(MA25,FJ),FJ,23);
顶:HHV(H,480),COLOR3399FF,DOTLINE;
分时低:LLV(L,480),COLORFFFF33,DOTLINE;
多空筹码买卖指标公式源码解读
H1赋值:昨收盘价和最高价的较大值
L1赋值:昨收盘价和最低价的较小值
P1赋值:H1-L1
输出阻力:L1+P1*7/8,COLOR00DD00
输出支撑:L1+P1*0.5/8,COLOR00DD00
输出现价:收盘价,NODRAW
当满足条件支撑上穿现价时,在支撑和阻力位置之间画柱状线,宽度为1,0不为0则画空心柱.,画黄色
当满足条件支撑小于现价保持2个交易日后交叉上穿时,在支撑*1.001位置书写文字,画黄色
当满足条件现价小于阻力保持2个交易日后交叉上穿时,在现价位置书写文字,画红色
成交额(元)/((手)*100),画蓝色,线宽为4
AAA1赋值:字符串相加
AAA2赋值:字符串相加
AAA3赋值:字符串相加
AAA4赋值:字符串相加
AAA赋值:字符串相加
AAA01赋值:字符串相加
AAA02赋值:字符串相加
AAA03赋值:字符串相加
AAA04赋值:字符串相加
AAA05赋值:字符串相加
BBB赋值:字符串相加
AAAA赋值:字符串相加
当满足条件1时,在横轴0纵轴0.85位置书写文字,画黄色
AAA06赋值:字符串相加
AAA07赋值:字符串相加
AAA08赋值:字符串相加
AAAAA赋值:字符串相加
当满足条件1时,在横轴0纵轴0.80位置书写文字,画白色
当满足条件1时,在横轴0纵轴0.90位置书写文字,画青色
成交额赋值:成交量(手)*收盘价/100,NODRAW
BA2赋值:(如果((成交额/8 20)AND(收盘价 (1日前的收盘价))),返回成交额,否则返回0)的历史累和
BA3赋值:(如果((成交额/8 20)AND(收盘价 (1日前的收盘价))),返回成交额,否则返回0)的历史累和
BA6赋值:(BA2+BA3)
BA7赋值:如果(是否最后一个周期),返回((100*BA2)/BA6),否则返回0
BA8赋值:如果(是否最后一个周期),返回((100*BA3)/BA6),否则返回0
BAAA1赋值:字符串相加
BAAA2赋值:字符串相加
BAAA3赋值:字符串相加
SSLB赋值:字符串相加
当满足条件1时,在横轴0纵轴0.02位置书写文字,画红色
当满足条件1时,在横轴0纵轴0.10位置书写文字,COLOR00FF00
当满足条件1时,在横轴0纵轴0.18位置书写文字,COLOR00FFFF
当满足条件1时,在横轴0纵轴0.26位置书写文字,画红色
输出MA25:收盘价的25日指数移动平均
输出FJ:收盘价的905日指数移动平均
当满足条件(MA25 FJ)时,在MA25和FJ位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,COLOR0000FF
当满足条件(MA25 FJ)ANDMA25 1日前的MA25时,在MA25和FJ位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,COLOR00CCFF
当满足条件(MA25 FJ)ANDFJ 1日前的FJ时,在MA25和FJ位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,画青色
当满足条件(MA25 FJ)时,在MA25和FJ位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLOR00FF00
当满足条件(MA25 FJ)ANDMA25 1日前的MA25时,在MA25和FJ位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,画青色
当满足条件(MA25 FJ)ANDFJ 1日前的FJ时,在MA25和FJ位置之间画柱状线,宽度为0.8,0不为0则画空心柱.,画淡红色
当满足条件MA25上穿FJ时,在FJ位置画23号图标
输出分时顶:480日内最高价的最高值,COLOR3399FF,DOTLINE
输出分时低:480日内最低价的最低值,COLORFFFF33,DOTLINE