M1:=5;
M2:=0;
M3:=0;
叠加指数:=0;
BS点信号:=1;
短线信号:=5;
三线开关:=1;
自动C:=INDEXC;
自动H:=INDEXH;
自动L:=INDEXL;
自动O:=INDEXO;
大盘低:=CONST(LLV(自动L,叠加指数));
大盘高:=CONST(HHV(自动H,叠加指数));
大盘差:=大盘高-大盘低;
当前低:=CONST(LLV(L,叠加指数));
当前高:=CONST(HHV(H,叠加指数));
当前差:=当前高-当前低;
比:=当前差/大盘差;
变C:=当前低+(自动C-大盘低)*比,NODRAW;
变H:=当前低+(自动H-大盘低)*比;
变L:=当前低+(自动L-大盘低)*比;
变O:=当前低+(自动O-大盘低)*比;
自动HYC:=HY_INDEXC;
自动HYH:=HY_INDEXH;
自动HYL:=HY_INDEXL;
自动HYO:=HY_INDEXO;
大盘低HY:=CONST(LLV(自动HYL,叠加指数));
大盘高HY:=CONST(HHV(自动HYH,叠加指数));
大盘差HY:=大盘高HY-大盘低HY;
当前低HY:=CONST(LLV(L,叠加指数));
当前高HY:=CONST(HHV(H,叠加指数));
当前差HY:=当前高HY-当前低HY;
比HY:=当前差HY/大盘差HY;
变HYC:=当前低HY+(自动HYC-大盘低HY)*比HY,NODRAW;
变HYH:=当前低HY+(自动HYH-大盘低HY)*比HY;
变HYL:=当前低HY+(自动HYL-大盘低HY)*比HY;
变HYO:=当前低HY+(自动HYO-大盘低HY)*比HY;
现价:C,NODRAW;
MA1:MA(C,M1)COLORWHITE;
MA2:MA(C,M2)COLORLIGREEN;
MA3:MA(C,M3)COLORLIBLUE;
趋势:((MA(C,5)+MA(C,10)+MA(C,15)+MA(C,20))/4),LINETHICK2,COLORGREEN;
IF(趋势 REF(趋势,1),趋势,DRAWNULL),LINETHICK2,COLORRED;
成本:((COST(90)+COST(70)+COST(50)+COST(30)+COST(10))/5)*三线开关,LINETHICK2,COLORWHITE;
生命:EMA(C,55)*三线开关, CIRCLEDOT,COLORYELLOW;
牛熊:EMA(C,265)*三线开关,CIRCLEDOT,COLORLIGREEN;
JRH:=HHV(C,2);
JRL:=LLV(C,2);
VAR101:=(CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2));
VAR102:=(REF(VAR101,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR103:=(REF(VAR102,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR104:=(REF(VAR103,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR105:=(REF(VAR104,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR106:=(REF(VAR105,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR107:=(REF(VAR106,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR108:=(REF(VAR107,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR109:=(REF(VAR108,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VARA:=(REF(VAR109,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VARD:=(CLOSE REF(CLOSE,1) AND CLOSE REF(CLOSE,2));
VARE:=(REF(VARD,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR010:=(REF(VARF,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR011:=(REF(VAR010,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR012:=(REF(VAR011,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR013:=(REF(VAR012,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR014:=(REF(VAR013,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR015:=(REF(VAR014,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR016:=(REF(VAR015,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR017:=(REF(VAR016,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR018:=(REF(VAR017,1) AND CLOSE =REF(CLOSE,1) AND CLOSE =REF(CLOSE,2));
VAR019:=((REF(VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,1)) AND VAR101);
VAR1A:=((REF(VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,1)) AND VARD);
红色持股:=VAR101 OR VAR102 OR VAR103 OR VAR104 OR VAR105 OR VAR106 OR VAR107 OR VAR108 OR VAR109 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
离场:=IF(红色持股,JRL,DRAWNULL);
明离场价:离场,COLORFF99FF,NODRAW;
青色观望:=VARD OR VARE OR VARF OR VAR010 OR VAR011 OR VAR012 OR VAR013 OR VAR014 OR VAR015 OR VAR016 OR VAR017 OR VAR018,COLORFFFF00,NODRAW;
进:=IF(青色观望,JRH,DRAWNULL);
离场价:=REF(离场,1),COLORMAGENTA,NODRAW;
明短买价:进,COLOR33AACC,NODRAW;
短买价:=REF(明短买价,1),COLORYELLOW,NODRAW;
VAR1MZ:=((CLOSE REF(CLOSE,1)) AND (CLOSE REF(CLOSE,2)));
VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VARBMZ:=((REF(VARAMZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VARCMZ:=((REF(VARBMZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VARDMZ:=((CLOSE REF(CLOSE,1)) AND (CLOSE REF(CLOSE,2)));
VAREMZ:=((REF(VARDMZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VARFMZ:=((REF(VAREMZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE = REF(CLOSE,1))) AND (CLOSE = REF(CLOSE,2)));
VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ AND CURRBARSCOUNT 短线信号);
VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ AND CURRBARSCOUNT 短线信号);
AAK:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;
MA7:=MA(CLOSE,1)*BS点信号;
转强:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+2+1);
转弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2+1);
BB2:=IF(C REF(转强,1),1,IF(C REF(转弱,1),-1,0));
DD2:=BARSLAST(NOT(BB2=0));
B:=IF(BB2=0,REF(BB2,DD2),BB2);
中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6))*BS点信号;
持股:BARSLASTCOUNT(MA7 中短),COLORRED,NODRAW;
持币:BARSLASTCOUNT(MA7 中短),COLORGREEN,NODRAW;
短买:IF(VAR19MZ,1,0),COLORYELLOW,NODRAW;
生命线多头:=生命 REF(生命,1);
生命上:BARSLASTCOUNT(生命线多头 0),COLORYELLOW,NODRAW;
牛熊线多头:=牛熊 REF(牛熊,1);
牛熊上:BARSLASTCOUNT(牛熊线多头 0),COLORLIGREEN,NODRAW;
成本线多头:=成本 REF(成本,1);
成本上:BARSLASTCOUNT(成本线多头 0),COLORWHITE,NODRAW;
SA:=MAX(MAX(趋势,成本),MAX(生命,牛熊));
SB:=MIN(MIN(趋势,成本),MIN(生命,牛熊));
粘合:100*(SA-SB)/SB,COLORWHITE,NODRAW;
三日涨幅:=(C-REF(C,3))/REF(C,3)*100;
十日涨幅:=(C-REF(C,10))/REF(C,10)*100;
牛牛:BARSLASTCOUNT(生命上 0 AND 牛熊上 0 AND 成本上 0 AND 粘合 10 AND 持股 0 AND 三日涨幅 15 AND 十日涨幅 30),COLORRED,NODRAW;
DRAWTEXT(ISLASTBAR,成本,' 平均成本'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(AAK) 0,0.02,0,0,STRCAT('主力护盘价= ',CON2STR(AAK,2)))COLOR00FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(短买价) 0,0.02,0.1,0,STRCAT('短线买入价=',CON2STR(短买价,2)))COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(离场价) 0,0.02,0.1,0,STRCAT('短线止赢价= ',CON2STR(离场价,2)))COLORGREEN;
STICKLINE(CURRBARSCOUNT =叠加指数,变H,变L,0,0),COLOR888888;
STICKLINE(CURRBARSCOUNT =叠加指数,变O,变C,2,0),COLOR888888;
STICKLINE(CURRBARSCOUNT =叠加指数 AND 变C =变O,变O,变C,2,1),COLORAAAAAA;
STICKLINE(CURRBARSCOUNT =叠加指数,变HYH,变HYL,0,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT =叠加指数,变HYO,变HYC,2,0),COLORYELLOW;
STICKLINE(CURRBARSCOUNT =叠加指数 AND 变HYC =变HYO,变HYO,变HYC,2,1),COLORYELLOW;
STICKLINE(MA7 中短,LOW,HIGH,0,1),COLORCYAN;
STICKLINE(MA7 中短,LOW,HIGH,0,1),COLORRED;
STICKLINE(((OPEN CLOSE)AND(MA7 中短)),(CLOSE-0.003),OPEN,3.1,0),COLORLIBLUE;
STICKLINE(((OPEN CLOSE)AND(MA7 中短)),CLOSE,OPEN,3.1,1),COLORCYAN;
STICKLINE(((OPEN CLOSE)AND(MA7 中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED;
STICKLINE(((OPEN CLOSE)AND(MA7 中短)),OPEN,CLOSE,3.1,1),COLORRED;
DRAWICON(CROSS(MA7,中短),L,7);
DRAWICON(CROSS(中短,MA7),H,8);
DRAWICON(VAR19MZ,L,1);
DRAWICON(VAR1AMZ,H,2);
当日资金方程式副图指标源码:
超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S)NODRAW;
超大单:=(超B)-(超S);
大单:=(大B)-(大S);
中单:=(中B)-(中S);
小单:=(小B)-(小S);
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;
流入:=ABS(超B+大B+中B+小B)*1000/VOL;
流出:=ABS(超S+大S+中S+小S)*1000/VOL;
净流买比:=流入*100/(流入+流出);
大宗进:=(超B)+(大B),NODRAW;
大宗出:=(超S)+(大S),NODRAW;
非大宗进:=(中B)+(小B),NODRAW;
非大宗出:=(中S)+(小S),NODRAW;
大宗进限制:=IF((超B+大B)=0,0,大宗进),NODRAW;
大宗出限制:=IF((超S+大S)=0,0,大宗出),NODRAW;
非大宗进限制:=IF(中B+小B=0,0,非大宗进),NODRAW;
非大宗出限制:=IF(中S+小S=0,0,非大宗出),NODRAW;
资金流向买:=大宗进限制+非大宗进限制;
资金流向卖:=大宗出限制+非大宗出限制;
{ 当日 }
DRAWRECTREL(0,0,990,999,IF(120,RGB(10,0,0),0));
DRAWRECTREL(0,330,990,390,RGB(10,0,0));
DRAWRECTREL(10,325,983,8,RGB(188,188,188));
DRAWRECTREL(50,555,950,530,RGB(0,140,0));
DRAWRECTREL(50,555,50+CONST(净流买比*900/100),530,RGB(140,0,0));
DRAWTEXT_FIX(1,0.05,0.4,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比,2)),'%')),COLORYELLOW;
DRAWRECTREL(500,555,500,530,RGB(250,250,0));
DRAWRECTREL(60,CONST(800-IF((超大单) 0,(ABS(超大单)*250/DAZHI),0)),200,800,RGB(128,0,0));
DRAWRECTREL(60,800,200,CONST(800+IF((超大单) 0,(ABS(超大单)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(300,CONST(800-IF((大单) 0,(ABS(大单)*250/DAZHI),0)),430,800,RGB(128,0,0));
DRAWRECTREL(300,800,430,CONST(800+IF((大单) 0,(ABS(大单)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(600,CONST(800-IF((中单) 0,(ABS(中单)*250/DAZHI),0)),730,800,RGB(128,0,0));
DRAWRECTREL(600,800,730,CONST(800+IF((中单) 0,(ABS(中单)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(820,CONST(800-IF((小单) 0,(ABS(小单)*250/DAZHI),0)),950,800,RGB(128,0,0));
DRAWRECTREL(820,800,950,CONST(800+IF((小单) 0,(ABS(小单)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(60,799.8,950,800.2,RGB(255,0,0));
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单) 0,0.08,0.900,0,'机构'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单) 0,0.08,0.900,0,'机构'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.08,0.900,0,'机构'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单) 0,0.32,0.900,0,'游资'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单) 0,0.32,0.900,0,'游资'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.32,0.900,0,'游资'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单) 0,0.62,0.900,0,'中户'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单) 0,0.62,0.900,0,'中户'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单)=0,0.62,0.900,0,'中户'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单) 0,0.85,0.900,0,'散户'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单) 0,0.85,0.900,0,'散户'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单)=0,0.85,0.900,0,'散户'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单) 0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单) 0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(超大单)=0,0.03,0.6,0,STRCAT(STRCAT(' ',CON2STR(超大单,1)),' ')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单) 0,0.25,0.6,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单) 0,0.25,0.6,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(大单)=0,0.25,0.6,0,STRCAT(STRCAT(' ',CON2STR(大单,1)),' ')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单) 0,0.55,0.6,0,STRCAT(STRCAT(' ',CON2STR(中单,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中单) 0,0.55,0.6,0,STRCAT(STRCAT(' ',CON2STR(中单,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单) 0,0.80,0.6,0,STRCAT(STRCAT(' ',CON2STR(小单,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(小单) 0,0.80,0.6,0,STRCAT(STRCAT(' ',CON2STR(小单,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入) 0,0.93,0.4,1,STRCAT('当日净买: ',STRCAT(CON2STR(净流入,1),'万'))) COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(净流入) 0,0.93,0.4,1,STRCAT('当日净买: ',STRCAT(CON2STR(净流入,1),'万'))) COLOR00FF00;
DRAWTEXT_FIX(1,0.05,0.47,0,STRCAT(STRCAT('买入额:',CON2STR(资金流向买,1)),'万')),COLOR0000FF;
DRAWTEXT_FIX(1,0.50,0.47,0,STRCAT(STRCAT('卖出额: ',CON2STR(资金流向卖,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(1,0.00,0.34,0,'当日资金方程'),COLORWHITE;
短买价:= 操盘线.明短买价#DAY
离场价:= 操盘线.明离场价#DAY
中线决策:= 操盘线.持股#DAY
多方力度:=(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1));
空方力度:=100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55));
操作决策:=多方力度 空方力度;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(操作决策) 0,0.15,0.05,0,STRCAT('【操 作 决 策】===','☆波 段 操 作☆'))COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(操作决策)=0,0.15,0.05,0,STRCAT('【操 作 决 策】===','★轻仓 短线★'))COLORBLUE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中线决策) 0,0.15,0.15,0,STRCAT('【中 线 决 策】===','☆持股 待涨☆'))COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(中线决策)=0,0.15,0.15,0,STRCAT('【中 线 决 策】===','★持币 观望★'))COLORBLUE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(短买价) 0,0.15,0.25,0,STRCAT('【短线买入价】===★ ',STRCAT(CON2STR(短买价,2),'元★')))COLORBLUE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(离场价) 0,0.15,0.25,0,STRCAT('【短线止赢价】===☆ ',STRCAT(CON2STR(离场价,2),'元☆')))COLORRED;