新优化组合黄金分割+单阳不破+趋势飘带+买卖点通达信主图源码、买卖点无未来
{最新优化组合黄金分割+单阳不破+趋势飘带+买卖点主图指标公式}
DRAWGBK(C>0,RGB(150,50,175),RGB(0,25,100),0,' ',0);
{DRAWGBK(O>C,RGB(360,0,10),RGB(10,0,1),0,'01',0);}
N8:=STRCAT(CON2STR(YEAR,0),'年');
Y8:=STRCAT(CON2STR(MONTH,0),'月');
R8:=STRCAT(CON2STR(DAY,0),'日');
N:=120;
K:=BARSLAST(CURRBARSCOUNT=N);
GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));{高点}
DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));{低点}
KJ:=GD-DD;{高低点差值=分区高度}
GD4:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL);
低:IF(CURRBARSCOUNT<=N/30,DD,DRAWNULL),COLORFFFF00;
高:IF(CURRBARSCOUNT<=N/30,GD,DRAWNULL),COLOR00FFFF;
支撑:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.191,DRAWNULL),COLOR00FFFF;
强势: IF(CURRBARSCOUNT<=N/30,DD+KJ*0.382,DRAWNULL),COLORFF00FF;
突破:IF(CURRBARSCOUNT<=N/30,DD+KJ/2,DRAWNULL),COLOR0000FF;
警示:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.618,DRAWNULL),COLOR00FFFF;
压力:IF(CURRBARSCOUNT<=N/30,DD+KJ*0.809,DRAWNULL),COLOR00FF00;
低涨:IF(CURRBARSCOUNT<=N/30,(C/LLV(LOW,K)-1)*100,DRAWNULL),COLOR0000FF,NODRAW;
天数:BARSLAST(L=DD),COLORCYAN,NODRAW;
今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;
顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLOREAEAAE,DOTLINE;
低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLOREAEAAE,DOTLINE;
STICKLINE(CCI>=200 AND H>=顶点,O,C,3,0),COLORBLUE;
STICKLINE(CCI<=100 AND L<=低点,O,C,3,0),COLORYELLOW;
DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0));
DRAWBAND(压力,RGB(0,190,0),警示,RGB(0,0,0));
DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0));
DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0));
DRAWBAND(强势,RGB(120, 0,0),支撑,RGB(0,0,0));
DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0));
STICKLINE(CURRBARSCOUNT=N/30,GD,DD,0,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,GD,DD,0,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT<=N/30,支撑,支撑,4,0),COLORFF00FF;
STICKLINE(CURRBARSCOUNT<=N/30,强势,强势,4,0),COLORFF00FF;
STICKLINE(CURRBARSCOUNT<=N/30,突破,突破,4,0),COLORABABAB;
STICKLINE(CURRBARSCOUNT<=N/30,警示,警示,4,0),COLOR00FFFF;
STICKLINE(CURRBARSCOUNT<=N/30,压力,压力,4,0),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=1,压力,'0.809'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=1,警示,'0.618'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=1,突破,'0.500'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=1,强势,'0.382'),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=1,支撑,'0.191'),COLOR00FFFF;
DA:(3*CLOSE+OPEN+LOW+HIGH)/6,POINTDOT;
DB:(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)+
15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+
10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+
5*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+
REF(DA,20))/210,COLORRED;
DC:MA(DB,5),COLORF0F000,LINETHICK1;
{DRAWBAND(DB,RGB(255,0,0),DC,RGB(0,255,0));}
DRAWBAND(DB,RGB(155,50,50),DC,RGB(83,123,68));
STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;
STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;
STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{红K};
STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{红K};
STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;
STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;
STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;
STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;
STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000;
STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
地量:=FILTER(LLV(AMOUNT,120)=AMOUNT,10);
STICKLINE(地量,CLOSE,OPEN,4,0),COLORGREEN;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWTEXT(地量,LOW,' ↖地量'),COLORGREEN;
{价画直线指标 };
STICKLINE(ISLASTBAR,C,C,3333,-1),COLORWHITE;
{止盈止损}
买入价咯:IF(CROSS((MACD.DIF),(MACD.DEA)),C,DRAWNULL),NODRAW;
AAA:=STICKLINE(买入价咯,0,C,2,0),COLORRED;
AAC:=BARSLAST(AAA);
止盈价咯:IF(C>=REF(C,AAC)*1.1,REF(C,AAC)*1.1,DRAWNULL),COLORMAGENTA,NODRAW;
止损价咯:IF(C<=REF(C,AAC)*0.95,REF(C,AAC)*0.95,DRAWNULL),COLORGREEN,NODRAW;
{庄家成本}
A:=SUMBARS(V ,CAPITAL*1);{累计换手=99.99%的周期}
A1:=SUM(COST(10),A)/A;{在A周期里获利10%的平均价}
A2:=SUM(COST(20),A)/A;{在A周期里获利20%的平均价}
A3:=SUM(COST(30),A)/A;{在A周期里获利30%的平均价}
A4:=SUM(COST(40),A)/A;{在A周期里获利40%的平均价}
A5:=SUM(COST(50),A)/A;{在A周期里获利50%的平均价}
庄家成本:(5*A1+4*A2+3*A3+2*A4+A5)/15,DOTLINE,COLORWHITE;
IF(庄家成本>REF(庄家成本,1),庄家成本,DRAWNULL),COLORFF00FF,LINETHICK2;
{3D立体K线}
STICKLINE(C>O,C,O,3.2,0),COLOR000066;
STICKLINE(C>O,C,O,2.0,0),COLOR000077;
STICKLINE(C>O,C,O,1.5,0),COLOR000099;
STICKLINE(C>O,C,O,0.9,0),COLOR0000CC;
STICKLINE(C>O,C,O,0.5,0),COLOR0000FF;
STICKLINE(C>0,O,C,0,0),COLORFFFFFF;
STICKLINE(C<O,L,H,0,0),COLOR009900;
STICKLINE(C<O,C,O,3.2,0),COLOR009900;
STICKLINE(C<O,C,O,2.5,0),COLOR00BB00;
STICKLINE(C<O,C,O,1.5,0),COLOR00DD00;
STICKLINE(C<O,C,O,0.5,0),COLOR00FF00;
STICKLINE(C<O,C,O,0,0),COLORFFFFFF;
阳涨幅:=3.5;
阳倍量:=1.9;
单阳收:=C;
单阳开:=O;
单阳:=单阳收>=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量;
DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.98,'阳'),COLOR00FFFF;
高不破价:=REF(C,BARSLAST(单阳));
低不破价:=REF(L,BARSLAST(单阳));
单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
STICKLINE(单阳不破,低不破价-低不破价*0.0005,低不破价,4,0),COLORGREEN;
STICKLINE(单阳不破,高不破价,高不破价,4,0),COLORRED;
STICKLINE(单阳,单阳开,单阳收,2,0),COLORYELLOW;
DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN;
DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;
PP1:=H>=MA(C,5)*(100+8)/100 AND NOT(C/REF(C,1)>1.095);
DRAWICON(PP1,H*1.02,15);
MA2:=MA(C,2);
布林上轨:=MA(CLOSE,20)+2*STD(CLOSE,20);
XG1:=CROSS(MA2,布林上轨);
XG2:=L<=MA(C,26) AND C>=MA(C,26);
XG0:=COUNT(XG1,30)=1 AND XG2 AND FILTER(XG2,10);
DRAWTEXT(XG0,L*0.98,'↖回踩买'),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:COST
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{最新优化组合黄金分割+单阳不破+趋势飘带+买卖点主图指标公式}
DRAWGBK(C>0,RGB(150,50,175),RGB(0,25,100),0,' ',0)
{DRAWGBK(O>C,RGB(360,0,10),RGB(10,0,1),0,'01',0)
}
N8赋值:STRCAT(CON2STR(YEAR,0),'年')
Y8赋值:STRCAT(CON2STR(MONTH,0),'月')
R8赋值:STRCAT(CON2STR(DAY,0),'日')
N赋值:120
K赋值:上次CURRBARSCOUNT=N距今天数
GD赋值:CONST(IF(ISLASTBAR=1,K日内H最高值,0))
{高点}
DD赋值:CONST(IF(ISLASTBAR=1,K日内L最低值,0))
{低点}
KJ:=GD-DD
如果CURRBARSCOUNT<=N/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回GD否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD+KJ*0.191否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD+KJ*0.382否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD+KJ/2否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD+KJ*0.618否则返回DRAWNULL
如果CURRBARSCOUNT<=N/30返回DD+KJ*0.809否则返回DRAWNULL
低涨:IF(CURRBARSCOUNT<=N/30,(C/K日内最低价最低值-1)*100,DRAWNULL),COLOR0000FF,NODRAW
输出天数:上次L=DD距今天数,COLORCYAN,NODRAW
输出今日保护价:(2日前的C+1日前的C+O)/3 ,COLORCC3299,NODRAW
输出顶点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, 上次CURRBARSCOUNT=60距今天数),1)),DRAWNULL),COLOREAEAAE,DOTLINE
低点:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, 上次CURRBARSCOUNT=60距今天数),1)),DRAWNULL),COLOREAEAAE,DOTLINE
当满足条件CCI>=200 AND H>=顶点时,在O和C之间画柱状线
当满足条件CCI<=100 AND L<=低点时,在O和C之间画柱状线
DRAWBAND(高,RGB(200,200,0),压力,RGB(0,0,0))
DRAWBAND(压力,RGB(0,190,0),警示,RGB(0,0,0))
DRAWBAND(警示,RGB(220,120,0),突破,RGB(0,0,0))
DRAWBAND(突破,RGB(120,0,120),强势,RGB(0,0,0))
DRAWBAND(强势,RGB(120, 0,0),支撑,RGB(0,0,0))
DRAWBAND(支撑,RGB(80,80,80),低,RGB(0,0,0))
当满足条件CURRBARSCOUNT=N/30时,在GD和DD之间画柱状线
当满足条件CURRBARSCOUNT=1时,在GD和DD之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在支撑和支撑之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在强势和强势之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在突破和突破之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在警示和警示之间画柱状线
当满足条件CURRBARSCOUNT<=N/30时,在压力和压力之间画柱状线
当满足条件CURRBARSCOUNT=1时,在压力和'0.809'位置书写文字
当满足条件CURRBARSCOUNT=1时,在警示和'0.618'位置书写文字
当满足条件CURRBARSCOUNT=1时,在突破和'0.500'位置书写文字
当满足条件CURRBARSCOUNT=1时,在强势和'0.382'位置书写文字
当满足条件CURRBARSCOUNT=1时,在支撑和'0.191'位置书写文字
输出DA:(3*收盘价+OPEN+最低价+最高价)/6,POINTDOT
输出DB:(20*DA+19*1日前的DA+18*2日前的DA+17*3日前的DA+16*4日前的DA+
15*5日前的DA+14*6日前的DA+13*7日前的DA+12*8日前的DA+11*9日前的DA+
10*10日前的DA+9*11日前的DA+8*12日前的DA+7*13日前的DA+6*14日前的DA+
5*15日前的DA+4*16日前的DA+3*17日前的DA+2*18日前的DA+
20日前的DA)/210,画红色
输出DC:DB的5日简单移动平均,COLORF0F000,LINETHICK1
{DRAWBAND(DB,RGB(255,0,0),DC,RGB(0,255,0))
}
DRAWBAND(DB,RGB(155,50,50),DC,RGB(83,123,68))
STICKLINE(收盘价> 1日前的收盘价 ,最高价,最低价,0,0 ),画红色
STICKLINE(C1日前的C,C,O,3,0),COLORFFCC00
STICKLINE(收盘价> 1日前的收盘价 AND C>O ,OPEN,收盘价,3,0 ),COLOR000055
{红K}
STICKLINE(收盘价> 1日前的收盘价 AND C>O ,OPEN,收盘价,2.7,0 ),COLOR000077
{红K}
STICKLINE(收盘价> 1日前的收盘价 AND C>O ,OPEN,收盘价,2.1,0 ),COLOR000099
STICKLINE(收盘价> 1日前的收盘价 ,OPEN,收盘价,1.5,0 ),COLOR0000BB
STICKLINE(收盘价> 1日前的收盘价 ,OPEN,收盘价,0.9,0 ),COLOR0000DD
STICKLINE(收盘价> 1日前的收盘价 ,OPEN,收盘价,0.3,0 ),COLOR0000FF
STICKLINE(收盘价= 1日前的收盘价 ,H,L,3,1 ),COLOR999999
STICKLINE(收盘价= 1日前的收盘价 ,最高价,最低价,0,0 ),画白色
STICKLINE(收盘价= 1日前的收盘价 ,OPEN,收盘价,3,0 ),COLOR555555
STICKLINE(收盘价= 1日前的收盘价 ,OPEN,收盘价,2.7,0 ),COLOR777777
STICKLINE(收盘价= 1日前的收盘价 ,OPEN,收盘价,2.1,0 ),COLOR999999
STICKLINE(收盘价= 1日前的收盘价 ,OPEN,收盘价,1.5,0 ),COLORBBBBBB
STICKLINE(收盘价= 1日前的收盘价 ,OPEN,收盘价,0.9,0 ),COLORDDDDDD
STICKLINE(收盘价= 1日前的收盘价 ,OPEN,收盘价,0.3,0 ),COLORFFFFFF
STICKLINE(收盘价< 1日前的收盘价 ,最高价,最低价,0,1 ),COLORCYAN
STICKLINE(C<1日前的C AND C>O,C,O,3,0),COLORFFCC00
STICKLINE(C<1日前的C AND C
STICKLINE(C<1日前的C AND C
STICKLINE(收盘价< 1日前的C ,OPEN,收盘价,2.1,0 ),COLORFF4400
地量赋值:FILTER(120日内AMOUNT最低值=AMOUNT,10)
当满足条件地量时,在收盘价和OPEN之间画柱状线
DRAWKLINE(最高价,OPEN,最低价,收盘价)
当满足条件地量时,在最低价和' ↖地量'位置书写文字
{价画直线指标 }
当满足条件ISLASTBAR时,在C和C之间画柱状线
输出{止盈止损}
买入价咯:IF(CROSS((MACD.DIF),(MACD.DEA)),C,DRAWNULL),NODRAW
当满足条件买入价咯时,在0和C之间画柱状线
AAC赋值:上次AAA距今天数
输出止盈价咯:IF(C>=AAC日前的C*1.1,AAC日前的C*1.1,DRAWNULL),COLORMAGENTA,NODRAW
输出止损价咯:IF(C<=AAC日前的C*0.95,AAC日前的C*0.95,DRAWNULL),COLORGREEN,NODRAW
{庄家成本}
A赋值:V 累加至当前流通股本*1的天数
{累计换手=99.99%的周期}
A1赋值:SUM(获利盘为10%的成本分布,A)/A
{在A周期里获利10%的平均价}
A2赋值:SUM(获利盘为20%的成本分布,A)/A
{在A周期里获利20%的平均价}
A3赋值:SUM(获利盘为30%的成本分布,A)/A
{在A周期里获利30%的平均价}
A4赋值:SUM(获利盘为40%的成本分布,A)/A
{在A周期里获利40%的平均价}
A5赋值:SUM(获利盘为50%的成本分布,A)/A
输出{在A周期里获利50%的平均价}
庄家成本:(5*A1+4*A2+3*A3+2*A4+A5)/15,DOTLINE,画白色
IF(庄家成本>1日前的庄家成本,庄家成本,DRAWNULL),COLORFF00FF,LINETHICK2
当满足条件C>O时,在C和O之间画柱状线
当满足条件C>O时,在C和O之间画柱状线
当满足条件C>O时,在C和O之间画柱状线
当满足条件C>O时,在C和O之间画柱状线
当满足条件C>O时,在C和O之间画柱状线
当满足条件C>0时,在O和C之间画柱状线
当满足条件C当满足条件C当满足条件C当满足条件C当满足条件C当满足条件C
阳涨幅赋值:3.5
阳倍量赋值:1.9
单阳收赋值:C
单阳开赋值:O
单阳赋值:单阳收>=1日前的C*(1+阳涨幅/100)AND 成交量>1日前的成交量*阳倍量
当满足条件CURRBARSCOUNT<100 AND 单阳时,在L*0.98和'阳'位置书写文字
高不破价:=REF(C,上次单阳距今天数)
低不破价:=REF(L,上次单阳距今天数)
单阳不破:=CURRBARSCOUNT<100 AND 上次单阳距今天数<11 AND (LLV(L,上次单阳距今天数)>低不破价 OR LLV(L,上次单阳距今天数)=低不破价)
当满足条件单阳不破时,在低不破价-低不破价*0.0005和低不破价之间画柱状线
当满足条件单阳不破时,在高不破价和高不破价之间画柱状线
当满足条件单阳时,在单阳开和单阳收之间画柱状线
DRAWTEXT(上次单阳距今天数=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN
DRAWTEXT(上次单阳距今天数=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN
DRAWTEXT(上次单阳距今天数=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN
DRAWTEXT(上次单阳距今天数=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN
DRAWTEXT(上次单阳距今天数=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN
DRAWTEXT(上次单阳距今天数=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN
DRAWTEXT(上次单阳距今天数=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN
DRAWTEXT(上次单阳距今天数=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN
DRAWTEXT(上次单阳距今天数=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN
DRAWTEXT(上次单阳距今天数=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN
PP1赋值:H>=C的5日简单移动平均*(100+8)/100 AND NOT(C/1日前的C>1.095)
当满足条件PP1时,在H*1.02和15之间画图标
MA2赋值:C的2日简单移动平均
布林上轨赋值:收盘价的20日简单移动平均+2*收盘价的20估算标准差
XG1赋值:MA2上穿布林上轨
XG2赋值:L<=C的26日简单移动平均 AND C>=C的26日简单移动平均
XG0赋值:统计30日满足XG1的天数=1 AND XG2 AND XG2的10过滤
当满足条件XG0时,在L*0.98和'↖回踩买'位置书写文字