飘带100%吃肉红蓝飘带多开100%吃肉主图
UR:=6;
LR:=UR;
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL);
TC2:=CONST(BARSLAST(TC1=H))+1;
UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1)));
BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL);
BC2:=CONST(BARSLAST(BC1=L))+1;
LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1)));
LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低点定位}
HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高点定位}
{ STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962;
STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962;}
NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用时};
LR1:=FORCAST(C,NOD+1);
NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC2),CONST(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1))),DRAWNULL),POINTDOT,COLOR93BDA8;{近点=}
LR2:=SLOPE(C,NOD+1);
LR3:=CONST(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)));
FP:=NP-LR3*(NOD),POINTDOT,COLOR93BDA8;{远点=}
EQU:=(NP+FP)/2,POINTDOT,COLOR93BDA8;{=}
AD:=ABS(NP-FP);{高差}
DBL:=BARSLAST(BC1!=DRAWNULL)+1;
DBH:=BARSLAST(TC1!=DRAWNULL)+1;
BSP:=IF(BC2>TC2,DBL,DBH)-1;
LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP);
AT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL);
AT2:=HHV(AT1-LRL,MAX(BC2,TC2));
AT3:=CONST(BARSLAST(AT1-LRL=AT2));
AT4:=CONST(IF(AT3=0,H,REF(H,AT3)));
AT5:=CONST(IF(AT3=0,AT1-LRL,REF(AT1-LRL,AT3)));
ATL:=LRL+AT5;
UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL);
UT2:=HHV(LRL-UT1,MAX(BC2,TC2));
UT3:=CONST(BARSLAST(LRL-UT1=UT2));
UT4:=CONST(IF(UT3=0,H,REF(H,UT3)));
UT5:=CONST(IF(UT3=0,LRL-UT1,REF(LRL-UT1,UT3)));
UTL:=LRL-UT5;
RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高}
RL:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,UTL,CONST(REF(UTL,MIN(BC2,TC2)-11)));{限制低}
上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLORRED;
中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR628962;
下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLORGREEN;
AAAA:=MA(C,1);
AAA:=SMA(SMA(SMA(AAAA,2,1),2,1),2,1);
BBB:=MA(AAA,3);
DRAWBAND(AAA,RGB(255,255,0),BBB,RGB(0,0,255));
CCC:=(3*C+L+O+H)/6;
牛线:=(20*CCC+19*REF(CCC,1)+18*REF(CCC,2)+17*REF(CCC,3)+16*REF(CCC,4)+15*REF(CCC,5)+14*REF(CCC,6)+13*REF(CCC,7)+12*REF(CCC,8)+11*REF(CCC,9)+10*REF(CCC,10)+9*REF(CCC,11)+8*REF(CCC,12)+7*REF(CCC,13)+6*REF(CCC,14)+5*REF(CCC,15)+4*REF(CCC,16)+3*REF(CCC,17)+2*REF(CCC,18)+REF(CCC,20))/210,COLORRED,LINETHICK2;
马线:=MA(牛线,5);
DRAWBAND(牛线,RGB(255,40,0),马线,RGB(256,200,0));
STICKLINE(IF((C>REF(C,1)*1.096),2,0),OPEN,CLOSE,3,0),COLORRED;
起爆:=COUNT(C>REF(C,1)*1.096,55)>0 AND ((CROSS(C,AAA) AND CROSS(C,BBB) AND CROSS(C,牛线)
AND CROSS(C,马线)) OR (CROSS(C,AAA) AND CROSS(C,BBB) AND 牛线>REF(牛线,1) AND BBB>马线)
OR (CROSS(C,牛线) AND CROSS(C,马线) AND 牛线>REF(牛线,1))),COLORGREEN,LINETHICK2;
DRAWTEXT(起爆,LOW*0.97,'↖99.99%大肉'),COLORYELLOW;
黄金线:LLV(LOW,60)*1.09,DOTLINE,COLORYELLOW;
获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),COLORCYAN,NODRAW;
平衡价:IF(CAPITAL>0,SUM(AMO,32)/SUM(VOL,32)/100,SUM((H+L+C)/32,32)/32),COLORWHITE,LINETHICK3;
涨停:DYNAINFO(3)*1.1,COLORRED,NODRAW;
跌停:DYNAINFO(3)*0.9,COLORGREEN,NODRAW;
昨收:REF(C,1),COLORRED,NODRAW;
今开:O,COLORWHITE,NODRAW;
现价:CLOSE,COLORWHITE,LINETHICK2,NODRAW;
ST涨停:=IF((C-昨收)*100/昨收>=(5-0.01*100/昨收),1,0);
ST跌停:=IF((昨收-C)*100/昨收>=(5-0.01*100/昨收),1,0);
STICKLINE(ST涨停,OPEN,CLOSE,2,0),COLORFF00FF;
STICKLINE(ST跌停,OPEN,CLOSE,2,0),COLORCYAN;
STICKLINE(C>1.095*REF(C,1),C,O,2,0),COLORYELLOW;
STICKLINE(C<0.905*REF(C,1),C,O,2,0),COLORWHITE;
今收盘:=C,NODRAW,COLORWHITE;
警示:=NAMELIKE('S') OR NAMELIKE('*');
今涨停:ZTPRICE(REF(C,1),IF(警示,0.05,0.1)),NODRAW,COLORYELLOW;
今跌停:DTPRICE(REF(C,1),IF(警示,0.05,0.1)),NODRAW,COLORGREEN;
明涨停:今收盘+(今收盘*0.1),NODRAW,COLORRED;
明跌停:=今收盘-(今收盘*0.1),NODRAW,COLORGREEN;
明ST涨停:=今收盘+(今收盘*0.05),NODRAW,COLORMAGENTA;
明ST跌停:=今收盘-(今收盘*0.05),NODRAW,COLORCYAN;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
UR赋值:6
LR赋值:UR
TC1赋值:IF(H=8*UR日内H最高值,H,DRAWNULL)
TC2赋值:CONST(上次TC1=H距今天数)+1
UPPER赋值:CONST(IF(TC2=1,H,TC2-1日前的H))
BC1赋值:IF(L=8*LR日内L最低值,L,DRAWNULL)
BC2赋值:CONST(上次BC1=L距今天数)+1
LOWER赋值:CONST(IF(BC2=1,L,BC2-1日前的L))
LP赋值:CURRBARSCOUNT<=BC2 AND L=LOWER
{低点定位}
HP赋值:CURRBARSCOUNT<=TC2 AND H=UPPER
如果BC2>TC2返回HP否则返回LP
如果BC2>TC2返回LP否则返回HP
如果TC2>BC2返回TC2否则返回BC2
{用时}
LR1:=FORCAST(C,NOD+1)
NP赋值:IF(CURRBARSCOUNT<=BC2和TC2较大值,CONST(IF(TC2和BC2的较小值=1,LR1,REF(LR1,TC2和BC2的较小值-1))),DRAWNULL),POINTDOT,COLOR93BDA8
{近点=}
LR2:=SLOPE(C,NOD+1)
LR3:=CONST(IF(TC2和BC2的较小值=1,LR2,REF(LR2,TC2和BC2的较小值-1)))
FP赋值:NP-LR3*(NOD),POINTDOT,COLOR93BDA8
{远点=}
EQU赋值:(NP+FP)/2,POINTDOT,COLOR93BDA8
{=}
AD赋值:NP-FP的绝对值
{高差}
DBL赋值:上次BC1!=DRAWNULL距今天数+1
DBH赋值:上次TC1!=DRAWNULL距今天数+1
如果BC2>TC2返回DBL否则返回DBH
如果NP>FP返回FP+AD/NOD*BSP否则返回FP-AD/NOD*BSP
AT1赋值:IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND H>LRL,H,LRL)
AT2赋值:BC2和TC2较大值日内AT1-LRL最高值
AT3赋值:CONST(上次AT1-LRL=AT2距今天数)
AT4赋值:CONST(IF(AT3=0,H,AT3日前的H))
AT5赋值:CONST(IF(AT3=0,AT1-LRL,AT3日前的AT1-LRL))
ATL赋值:LRL+AT5
UT1赋值:IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L
UT2赋值:BC2和TC2较大值日内LRL-UT1最高值
UT3赋值:CONST(上次LRL-UT1=UT2距今天数)
UT4赋值:CONST(IF(UT3=0,H,UT3日前的H))
UT5赋值:CONST(IF(UT3=0,LRL-UT1,UT3日前的LRL-UT1))
UTL赋值:LRL-UT5
RH赋值:IF(CURRBARSCOUNT>=BC2和TC2的较小值-10,ATL,CONST(REF(ATL,BC2和TC2的较小值-11)))
{限制高}
RL赋值:IF(CURRBARSCOUNT>=BC2和TC2的较小值-10,UTL,CONST(REF(UTL,BC2和TC2的较小值-11)))
输出{限制低}
上轨:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),画红色
输出中轨:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR628962
输出下轨:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),画绿色
AAAA赋值:C的1日简单移动平均
AAAA的2日[1日权重]移动平均
BBB赋值:AAA的3日简单移动平均
DRAWBAND(AAA,RGB(255,255,0),BBB,RGB(0,0,255))
CCC赋值:(3*C+L+O+H)/6
牛线赋值:(20*CCC+19*1日前的CCC+18*2日前的CCC+17*3日前的CCC+16*4日前的CCC+15*5日前的CCC+14*6日前的CCC+13*7日前的CCC+12*8日前的CCC+11*9日前的CCC+10*10日前的CCC+9*11日前的CCC+8*12日前的CCC+7*13日前的CCC+6*14日前的CCC+5*15日前的CCC+4*16日前的CCC+3*17日前的CCC+2*18日前的CCC+20日前的CCC)/210,画红色, 线宽为2
马线赋值:牛线的5日简单移动平均
DRAWBAND(牛线,RGB(255,40,0),马线,RGB(256,200,0))
STICKLINE(IF((C>1日前的C*1.096),2,0),开盘价,收盘价,3,0),画红色
起爆赋值:COUNT(C>1日前的C*1.096,55)>0 AND ((C上穿AAA AND C上穿BBB AND C上穿牛线
AND C上穿马线) OR (C上穿AAA AND C上穿BBB AND 牛线>1日前的牛线 AND BBB>马线)
OR (C上穿牛线 AND C上穿马线 AND 牛线>1日前的牛线)),画绿色, 线宽为2
当满足条件起爆时,在最低价*0.97和'↖99.99%大肉'位置书写文字
输出黄金线:60日内最低价最低值*1.09,DOTLINE,画黄色
输出获利筹码:IF(收盘价计算的获利盘比例,收盘价计算的获利盘比例*100,0),画青色,NODRAW
输出平衡价:IF(当前流通股本>0,32的AMO日累和/32的成交量日累和/100,SUM((H+L+C)/32,32)/32),画白色, 线宽为3
输出涨停:DYNAINFO(3)*1.1,画红色,NODRAW
输出跌停:DYNAINFO(3)*0.9,画绿色,NODRAW
输出昨收:1日前的C,画红色,NODRAW
输出今开:O,画白色,NODRAW
输出现价:收盘价,画白色, 线宽为2,NODRAW
ST涨停赋值:IF((C-昨收)*100/昨收>=(5-0.01*100/昨收),1,0)
ST跌停赋值:IF((昨收-C)*100/昨收>=(5-0.01*100/昨收),1,0)
当满足条件ST涨停时,在开盘价和收盘价之间画柱状线
当满足条件ST跌停时,在开盘价和收盘价之间画柱状线
STICKLINE(C>1.095*1日前的C,C,O,2,0),画黄色
STICKLINE(C<0.905*1日前的C,C,O,2,0),画白色
今收盘赋值:C,NODRAW,画白色
警示赋值:NAMELIKE('S') OR NAMELIKE('*')
如果警示返回0.05否则返回0.1
如果警示返回0.05否则返回0.1
明输出涨停:今收盘+(今收盘*0.1),NODRAW,画红色
明跌停赋值:今收盘-(今收盘*0.1),NODRAW,画绿色
明ST涨停赋值:今收盘+(今收盘*0.05),NODRAW,画洋红色
明ST跌停赋值:今收盘-(今收盘*0.05),NODRAW,画青色