drawgbk(1,colorrgb(0,0,100),colorrgb(0,0,0),1);
当前月:=fracpart(round(当前日期/100)/100)*100;
月:=month;日:=day;
vertline(月=1 and (日=25)),colorffffff,linedashdot;
vertline(月=3 and (日=20)),colorffffff,linedashdot;
vertline(月=5 and (日=12)),colorffffff,linedashdot;
vertline(月=6 and (日=14 )),colorffffff,linedashdot;
vertline(月=7 and ( 日=19 )),colorffffff,linedashdot;
vertline(月=8 and ( 日=6 )),colorffffff,linedashdot;
vertline(月=9 and ( 日=18 )),colorffffff,linedashdot;
vertline(月=10 and ( 日=31)),colorffffff,linedashdot;
vertline(月=11 and ( 日=28)),colorffffff,linedashdot;
vertline(月=12 and ( 日=31)),colorffffff,linedashdot;
vertline(月=1 and ( 日=6 or 日=15 or 日=21 )),coloraaaaaa,linedashdot;
vertline(月=2 and ( 日=6 or 日=15 or 日=21 )),coloraaaaaa,linedashdot;
vertline(月=3 and ( 日=6 or 日=15 or 日=21 )),coloraaaaaa,linedashdot;
vertline(月=4 and ( 日=6 or 日=15 or 日=21 )),coloraaaaaa,linedashdot;
vertline(月=5 and ( 日=6 or 日=15 or 日=21 )),coloraaaaaa,linedashdot;
vertline(月=6 and ( 日=6or 日=21)),coloraaaaaa,linedashdot;
vertline(月=7 and ( 日=8 or 日=15or 日=23)),coloraaaaaa,linedashdot;
vertline(月=8 and ( 日=8or 日=15 or 日=23)),coloraaaaaa,linedashdot;
vertline(月=9 and ( 日=8 or 日=15or 日=23)),coloraaaaaa,linedashdot;
vertline(月=10 and ( 日=8 or 日=15 or 日=23 )),coloraaaaaa,linedashdot;
vertline(月=11 and ( 日=8 or 日=15 or 日=23)),coloraaaaaa,linedashdot;
vertline(月=12 and ( 日=8 or 日=15 or 日=23 )),coloraaaaaa,linedashdot;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='1',c,numtostr(当前月,0)+'月转折日:6、15、21、*25\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='2',c,numtostr(当前月,0)+'月转折日:6、15、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='3',c,numtostr(当前月,0)+'月转折日:6、15、*20、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='4',c,numtostr(当前月,0)+'月转折日:6、15、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='5',c,numtostr(当前月,0)+'月转折日:6、*1 2、15、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='6',c,numtostr(当前月,0)+'月转折日:6、*1 4、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='7',c,numtostr(当前月,0)+'月转折日:8、15、*1 9、23\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='8',c,numtostr(当前月,0)+'月转折日:*6、8、15、23\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='9',c,numtostr(当前月,0)+'月转折日:8、15、*1 8、23\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='10',c,numtostr(当前月,0)+'月转折日:8、15、23、*31\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='11',c,numtostr(当前月,0)+'月转折日:8、15、23、*28\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='12',c,numtostr(当前月,0)+'月转折日:8、15、23、*31\n \n \n \n '),color00ffff,align4;
wyy1:=weekday,linethick0;
wwj:=' 星期';
wwjj:=if(wyy1=5 ,wwj+'五',if(wyy1=4 ,wwj+'四',
if(wyy1=3 ,wwj+'三',if(wyy1=2 ,wwj+'二',if(wyy1=1 ,wwj+'1',wwj)))));
wyy2:=lmonth;
wyy3:=lday;
www:=if( barstatus=2 ,' 农历 '+numtostr(wyy2,0)+'月 '+numtostr(wyy3,0)+'日',' ');
wwh:=if( barstatus=2 ,numtostr(date+1000000,0),' ' );
drawtextex(1,1,120 ,30 ,' '+wwh+wwjj+www),linethick3,colorffff80;
hh:=dynainfo(39);
dd:=finance( 1);
ss:=finance( 7);
ff:=finance(18);
gg:=finance(33);
zz:=finance(53);
jj:=finance(40);
mm:=jj/ss;
th:=dynainfo(39);
换手率:=100*v/capital,colorffffff;
rh:=h-l;
r:=dynainfo(13)*100;
drawtextex(1,1,20,840,'当日振幅:'+numtostr(r,2)+'% '+numtostr(rh,2)+'元 '+'当前换手率:'+numtostr(换手率,2)+'%'),colorffffff;
var100:='所属板块:';
if inblock('电力')=1 then var100:=var100+' 电力';
if inblock('电脑')=1 then var100:=var100+' 电脑';
if inblock('电器')=1 then var100:=var100+' 电器';
if inblock('电子信息')=1 then var100:=var100+' 电子信息';
if inblock('房地产')=1 then var100:=var100+' 房地产';
if inblock('纺织服装')=1 then var100:=var100+' 纺织服装';
if inblock('钢铁')=1 then var100:=var100+' 钢铁';
if inblock('工程建筑')=1 then var100:=var100+' 工程建筑';
if inblock('供水供气')=1 then var100:=var100+' 供水供气';
if inblock('化工')=1 then var100:=var100+' 化工';
if inblock('化纤')=1 then var100:=var100+' 化纤';
if inblock('机械')=1 then var100:=var100+' 机械';
if inblock('建材')=1 then var100:=var100+' 建材';
if inblock('交通工具')=1 then var100:=var100+' 交通工具';
if inblock('交通设施')=1 then var100:=var100+' 交通设施';
if inblock('教育传媒')=1 then var100:=var100+' 教育传媒';
if inblock('金融')=1 then var100:=var100+' 金融';
if inblock('旅游酒店')=1 then var100:=var100+' 旅游酒店';
if inblock('煤炭石油')=1 then var100:=var100+' 煤炭石油';
if inblock('酿酒食品')=1 then var100:=var100+' 酿酒食品';
if inblock('农林牧渔')=1 then var100:=var100+' 农林牧渔';
if inblock('其他行业')=1 then var100:=var100+' 其他行业';
if inblock('汽车')=1 then var100:=var100+' 汽车';
if inblock('汽配')=1 then var100:=var100+' 汽配';
if inblock('商业连锁')=1 then var100:=var100+' 商业连锁';
if inblock('石化')=1 then var100:=var100+' 石化';
if inblock('通信')=1 then var100:=var100+' 通信';
if inblock('外贸')=1 then var100:=var100+' 外贸';
if inblock('医药')=1 then var100:=var100+' 医药';
if inblock('仪电仪表')=1 then var100:=var100+' 仪电仪表';
if inblock('有色金属')=1 then var100:=var100+' 有色金属';
if inblock('运输物流')=1 then var100:=var100+' 运输物流';
if inblock('造纸印刷')=1 then var100:=var100+' 造纸印刷';
if inblock('安徽')=1 then var100:=var100+' 安徽';
if inblock('北京')=1 then var100:=var100+' 北京';
if inblock('福建')=1 then var100:=var100+' 福建';
if inblock('甘肃')=1 then var100:=var100+' 甘肃';
if inblock('广东')=1 then var100:=var100+' 广东';
if inblock('广西')=1 then var100:=var100+' 广西';
if inblock('贵州')=1 then var100:=var100+' 贵州';
if inblock('海南')=1 then var100:=var100+' 海南';
if inblock('河北')=1 then var100:=var100+' 河北';
if inblock('河南')=1 then var100:=var100+' 河南';
if inblock('黑龙江')=1 then var100:=var100+' 黑龙江';
if inblock('湖北')=1 then var100:=var100+' 湖北';
if inblock('湖南')=1 then var100:=var100+' 湖南';
if inblock('吉林')=1 then var100:=var100+' 吉林';
if inblock('江苏')=1 then var100:=var100+' 江苏';
if inblock('江西')=1 then var100:=var100+' 江西';
if inblock('辽宁')=1 then var100:=var100+' 辽宁';
if inblock('内蒙古')=1 then var100:=var100+' 内蒙古';
if inblock('宁夏')=1 then var100:=var100+' 宁夏';
if inblock('青海')=1 then var100:=var100+' 青海';
if inblock('山东')=1 then var100:=var100+' 山东';
if inblock('山西')=1 then var100:=var100+' 山西';
if inblock('陕西')=1 then var100:=var100+' 陕西';
if inblock('上海')=1 then var100:=var100+' 上海';
if inblock('深圳')=1 then var100:=var100+' 深圳';
if inblock('四川')=1 then var100:=var100+' 四川';
if inblock('天津')=1 then var100:=var100+' 天津';
if inblock('***')=1 then var100:=var100+' ***';
if inblock('新疆')=1 then var100:=var100+' 新疆';
if inblock('云南')=1 then var100:=var100+' 云南';
if inblock('浙江')=1 then var100:=var100+' 浙江';
if inblock('重庆')=1 then var100:=var100+' 重庆';
if inblock('3g')=1 then var100:=var100+' 3g';
if inblock('h股')=1 then var100:=var100+' h股';
if inblock('qfii持股')=1 then var100:=var100+' qfii持股';
if inblock('st')=1 then var100:=var100+' st';
if inblock('奥运')=1 then var100:=var100+' 奥运';
if inblock('创投')=1 then var100:=var100+' 创投';
if inblock('次新股')=1 then var100:=var100+' 次新股';
if inblock('大盘')=1 then var100:=var100+' 大盘';
if inblock('股权改革')=1 then var100:=var100+' 股权改革';
if inblock('股权投资')=1 then var100:=var100+' 股权投资';
drawtextex(1,1,20,960,var100),color00ffff;
drawtextex(1,1,20,900,'总股本:'+numtostr(dd,0)+'万股' +' 流通a股:'+numtostr(ss,0)+'万股'+' 市盈率:'+numtostr(hh,2)+'%'+'每股收益:'+numtostr(gg,3)),colorbbffff;
e:=(h+l+o+2*c)/5;
zl:=2*e-l;
zc:=2*e-h;
fz:=e-(h-l);
ma6:=ma(close,6);
ma18:=ma(close,18);
balance:=ema(c,30);
up:=balance + 2*std(c,30);
down:=balance- 2*std(c,30);
var9q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
varaq:=c=hhv(c,4) and ref(c,1)=llv(c,4);
varbq:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);
varcq:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
vardq:=ref(c,1)=hhv(c,4) and c<ref(c,2) or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3) or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2)) and ref(c,2)>=ref(c,4) and c<ref(c,1);
y1:=ref(ema(dma((((high + low) + (close * 2)) / 4.15),0.9),3),1);
var1w:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21))));
var2w:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21))));
var3w:=(100 - ma(((100 * (hhv(high,6) - close)) / (hhv(high,6) - llv(low,6))),34));
var3p:=if(close/ref(close,1)>1.050 and high/close<1.010 and if(close>ref(close,1),88,0)>0, 91, 0);
ss:=ma((low+high+close)/3,5)>ref(ma((low+high+close)/3,5),1) and ref(ma((low+high+close)/3,5),1)<ref(ma((low+high+close)/3,5),2);
sc:=l<hhv(ma((low+high+close)/3,5),13) and h>hhv(ma((low+high+close)/3,5),13) and c>ref(c,1) and c>o;
mr:=sc and count(ss,2);
买:=mr and not(ref(mr,1));
多方:=7*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*30,4,1)
-3*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*30,4,1),3,1)
-sma(sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*30,4,1),3,1),2,1);
var1:=(close-llv(low,24))/(hhv(high,24)-llv(low,24))*1;
var2:=sma(var1,3,1)*100;
趋势线:=sma((sma(var2,3,1)*var1),3,1)*1;
var9:=cross(趋势线,(sma(var2,3,1)*var1)) and (sma(var2,3,1)*var1)>8;
aax:=amount/vol;
bbx:=l<aax*0.9;
ccx:=(c-ref(c,1))/ref(c,1)*100>1.2;
ddx:=l<ma(c,5)*0.921;
eex:=vol<ma(v,5)*1.5;
ffx:=bbx and ccx and ddx and eex;
a:=(3*c+l+o+h)/6;
x:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+
14*ref(a,6)+13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)
+7*ref(a,13)+6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+
ref(a,20))/210;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
cb:=ema(x,13);
stickline(close>open,open,low,0.5,0 ),color0000ff;
stickline(close>open,close,high,0.5 ,0 ),color0000ff;
stickline(open>=close,close,low,0.5 ,0 ),color00ff00;
stickline(open>=close,open,high,0.5 ,0 ),color00ff00;
stickline(open>=close ,close ,open,7,0 ),colorff7700;
stickline(open>=close ,close ,open,6,0 ),colorff9900;
stickline(open>=close ,close ,open,5,0 ),colorffbb00;
stickline(open>=close ,close ,open,4,0 ),colorffcc00;
stickline(open>=close ,close ,open,3,0 ),colorffdd00;
stickline(open>=close ,close ,open,2,0 ),colorffee00;
stickline(open>=close ,close ,open,1,0 ),colorffff00;
stickline(close>open,close,open,7,0) ,color000055;
stickline(close>open,close,open,6,0) ,color000066;
stickline(close>open,close,open,5,0) ,color000077;
stickline(close>open,close,open,4,0) ,color000099;
stickline(close>open,close,open,3,0) ,color0000bb;
stickline(close>open,close,open,2,0) ,color0000dd;
stickline(close>open,close,open,1,0) ,color0000ff;
红:=var9q;
stickline(var9q,c,(o+c)/2,7,0),color000055;
stickline(var9q,c,(o+c)/2,6,0),color000066;
stickline(var9q,c,(o+c)/2,5,0),color000077;
stickline(var9q,c,(o+c)/2,4,0),color000099;
stickline(var9q,c,(o+c)/2,3,0),color0000bb;
stickline(var9q,c,(o+c)/2,2,0),color0000dd;
stickline(var9q,c,(o+c)/2,1,0),color0000ff;
粉:=varaq;
stickline(varaq,c,(o+c)/2,7,0),colorff11ff;
stickline(varaq,c,(o+c)/2,6,0),colorff33ff;
stickline(varaq,c,(o+c)/2,5,0),colorff55ff;
stickline(varaq,c,(o+c)/2,4,0),colorff77ff;
stickline(varaq,c,(o+c)/2,3,0),colorff99ff;
stickline(varaq,c,(o+c)/2,2,0),colorffbbff;
stickline(varaq,c,(o+c)/2,1,0),colorffddff;
灰:=varbq;
stickline(varbq,c,(o+c)/2,7,0),color333333;
stickline(varbq,c,(o+c)/2,6,0),color555555;
stickline(varbq,c,(o+c)/2,5,0),color777777;
stickline(varbq,c,(o+c)/2,4,0),color999999;
stickline(varbq,c,(o+c)/2,3,0),colorbbbbbb;
stickline(varbq,c,(o+c)/2,2,0),colordddddd;
stickline(varbq,c,(o+c)/2,1,0),colorffffff;
绿:=varcq;
stickline(varcq,o,(o+c)/2,7,0),color003300;
stickline(varcq,o,(o+c)/2,6,0),color005500;
stickline(varcq,o,(o+c)/2,5,0),color007700;
stickline(varcq,o,(o+c)/2,4,0),color009900;
stickline(varcq,o,(o+c)/2,3,0),color00bb00;
stickline(varcq,o,(o+c)/2,2,0),color00dd00;
stickline(varcq,o,(o+c)/2,1,0),color00ff00;
蓝:=vardq;
stickline(vardq,o,(o+c)/2,7,0),colorff1100;
stickline(vardq,o,(o+c)/2,6,0),colorff3300;
stickline(vardq,o,(o+c)/2,5,0),colorff5500;
stickline(vardq,o,(o+c)/2,4,0),colorff7700;
stickline(vardq,o,(o+c)/2,3,0),colorff9900;
stickline(vardq,o,(o+c)/2,2,0),colorffbb00;
stickline(vardq,o,(o+c)/2,1,0),colorffdd00;
{买卖趋势}
cg:ma(c,21),color00ff00,linethick2;
fl:hhv(cg,3),colorff0000,linethick2;
fs:cg-(fl-cg),colorred,linethick2;
ty:=c;
a1:=ref(ty,10)=hhv(ty,2*10+1); b1:=filter(a1,10);
c1:=backset(b1,10+1); hd:=filter(c1,10);
a2:=ref(ty,10)=llv(ty,2*10+1); b2:=filter(a2,10);
c2:=backset(b2,10+1); ld:=filter(c2,10);
a:=ref(c,barslast(hd));
z:=ref(l,barslast(ld));
t1:=barslast(hd)<barslast(ld) and not(hd) ;
t2:=barslast(hd)>barslast(ld) and not(ld);
前期头鄐:if(t1,a,a),colorff00ff,linethick2,pointdot;
前期底部:if(t2,z,z),colorwhite,linethick2,pointdot;
上收:=c;上开:=o;上高:=h; 上低:=l;
止赢逃命:ma(ref(hhv(上收,21),1),21),circledot,color00ffff,linethick0;
全仓杀入:ma(ref(llv(上收,30),1),21),circledot,colorred ,linethick0 ;
明日买卖提示:ema(close,3.5),colorf00ff0;
drawtext(cross(明日买卖提示,止赢逃命) ,明日买卖提示-0.1,'------追涨'),color00ff00;
drawtext(cross(止赢逃命,明日买卖提示) ,止赢逃命+0.2,'-减仓-'),color00ffff;
drawtext(cross(明日买卖提示,全仓杀入) ,明日买卖提示-0.1,'买进-------'),colorffff00;
{开盘既知今天高低价}
高:=ma(ref(h,1)/ref(c,2),27)*ref(c,1);
低:=ma(ref(l,1)/ref(c,2),27)*ref(c,1);
a5:=低[sysparam(1)];
ra5:=低[sysparam(1)-1];
a10:=高[sysparam(1)];
ra10:=高[sysparam(1)-1];
jt5:=if(a5>ra5,'↑','↓');
jt10:=if(a10>ra10,'↑','↓');
sz1:='\n \n \n开盘预测最高价:'+numtostr(高[sysparam(1)],2)+jt10;
drawtext(barpos=sysparam(2),c,sz1),align4,colormagenta;
sz:='\n \n开盘预测最低价:'+numtostr(低[sysparam(1)],2)+jt5;
drawtext(barpos=sysparam(2),c,sz),align4,colorgreen;
{多空方向}
mg:=ema(high,3);
ml:=ema(close,3);
买入:=c>mg;
卖出:=c<ml;
xxl:=ref(买入-卖出,barslast(买入-卖出<>0));
drawicon(xxl>0,h,4),align5;
drawicon(xxl<0,l,5),align5;
{止盈止损}
cbl1:=if(ref(h,2)>ref(h,3),ref(h,2),ref(h,3));{cbl第一次变红入场,变蓝出。}
cbl3:=if(ref(l,2)<ref(l,3),ref(h,2),cbl1);
cbl2:=if(ref(h,3)>=ref(h,2),ref(h,2),ref(h,3));
cbl4:=if(h<ref(h,2 or l<ref(l,2)),ref(h,2),cbl2);
cb5:=if(h>=ref(h,1) and l>ref(l,1 ),cbl4,cbl3);
cbl6:=if(h>ref(h,1) and ref(h,1)>ref(h,2) and l<ref(h,2) and o>c,h,cb5);
cbl7:=if(l<ref(l,1) and ref(l,1)<ref(l,2)and ref(l,2)<ref(l,3) and c>o and (ref(l,1)-l)/l>0.015,l,cbl6);
cbl:if(ref(l,1)<ref(l,2) and ref(l,2)<ref(l,3) and ref(l,3)<ref(l,4) and ref(c,1)>ref(o,1),ref(l,2),cbl7),,colorff9963,linethick0;
stickline((barpos = (sysparam(1) - 0)and cbl<c),cbl,cbl,240,0),colorred;
stickline((barpos = (sysparam(1) - 0)and cbl>=c),cbl,cbl,240,0),colorblue;
{中线加码}
n:=if(datatype=7,3,if(datatype=6,24,if(datatype=5,96,if(datatype=4,192,if(datatype=3,384,1000)))));
ema6:=ma(c,6),colorred linethick2;
ema18:=ma(c,18),coloryellow;
ema144:=ma(c,144),colorgreen;
ema288:=ma(c,288),colorblue;
中线【18日均线买入】:=count(close<ema18,5)=4 and close/ema18>1.004 and cross(close,ema18) and ema18>=ref(ema18,1),linethick,colorred;
股价平台1:=if(close>10,1.004,0);
股价平台2:=if(close>8 and close<=10,1.006,0);
股价平台3:=if(close>6 and close<=8,1.008,0);
股价平台4:=if(close>4 and close<=6,1.010,0);
股价平台5:=if(close>2 and close<=4,1.012,0);
股价平台6:=if(close<=2,1.015,0);
股价平台:=股价平台1+股价平台2+股价平台3+股价平台4+股价平台5+股价平台6;
中线jm:=(close-ref(close,18))/18+ema18*股价平台,linethick2,colormagenta;
zxpy:sma(中线jm,n,1);
{明日k线,股票公式下载www.88 gs .com}
mrzy:=round((((ref(h,1)-ref(l,1))*8/10)+c)*100)/100;
mrzs:=round((c-((ref(h,1)-ref(l,1))*8/20))*100)/100;//止赢止损
vertline(c>0 and islastbar),pointdot,coloryellow,shift1;
stickline(c>o and islastbar,mrzy,mrzs,8,1),colormagenta,shift2;
stickline(c<=o and islastbar,mrzy,mrzs,8,1),colorcyan,shift2;
{明日撑压}
m_r1:=ref((h+l+c)/3,1);m_r2:=2*m_r1-ref(l,1);m_r3:=2*m_r1-ref(h,1);
m_r4:=m_r1-m_r3+m_r2; m_r5:=m_r1-m_r2+m_r3;
drawtext(islastbar,m_r4+0.01,' ----明'),coloryellow;//阻力线1
drawtext(islastbar,m_r2+0.01,' ----日'),color00a3f5;//阻力线2
drawtext(islastbar,m_r1+0.01,' --界线'),colorred; //牛熊分界线
drawtext(islastbar,m_r3+0.01,' ----撑'),colorwhite; //压力线
drawtext(islastbar,m_r5+0.01,' ----压'),colorgreen; //支撑线1
立春:=信号过滤(月份=2 and (日期=3or 日期=5 ),2);
雨水:=信号过滤(月份=2 and (日期=18 or 日期=20),2);
惊蛰:=信号过滤(月份=3 and (日期=5or 日期=7 ),2);
春分:=信号过滤(月份=3 and (日期=20 or 日期=22),2);
清明:=信号过滤(月份=4 and (日期=3or 日期=6 ),2);
谷雨:=信号过滤(月份=4 and (日期=19 or 日期=21),2);
立夏:=信号过滤(月份=5 and (日期=6or 日期=8 ),2);
小满:=信号过滤(月份=5 and (日期=20 or 日期=22),2);
芒种:=信号过滤(月份=6 and (日期=5or 日期=7 ),2);
夏至:=信号过滤(月份=6 and (日期=20 or 日期=22),2);
小暑:=信号过滤(月份=7 and (日期=6or 日期=8 ),2);
大署:=信号过滤(月份=7 and (日期=22 or 日期=24),2);
立秋:=信号过滤(月份=8 and (日期=7or 日期=9 ),2);
处暑:=信号过滤(月份=8 and (日期=22 or 日期=24),2);
白露:=信号过滤(月份=9 and (日期=7or 日期=9 ),2);
秋分:=信号过滤(月份=9 and (日期=22 or 日期=24),2);
寒露:=信号过滤(月份=10 and (日期=7or 日期=9 ),2);
霜降:=信号过滤(月份=10 and (日期=22 or 日期=24),2);
立冬:=信号过滤(月份=11 and (日期=7or 日期=9 ),2);
小雪:=信号过滤(月份=11 and (日期=22 or 日期=24),2);
大雪:=信号过滤(月份=12 and (日期=6or 日期=8 ),2);
冬至:=信号过滤(月份=12 and (日期=21 or 日期=23),2);
小寒:=信号过滤(月份=1 and (日期=5or 日期=7 ),2);
大寒:=信号过滤(月份=1 and (日期=19 or 日期=21),2);
显示文字(立春,最高价*1.02,'立春'),colorgreen,align1;
显示文字(雨水,最高价*1.02,'雨水'),colorgreen,align1;
显示文字(惊蛰,最高价*1.02,'惊蛰'),colorgreen,align1;
显示文字(春分,最高价*1.02,'春分'),colorgreen,align1;
显示文字(清明,最高价*1.02,'清明'),colorgreen,align1;
显示文字(谷雨,最高价*1.02,'谷雨'),colorgreen,align1;
显示文字(立夏,最高价*1.02,'立夏'),colormagenta,align1;
显示文字(小满,最高价*1.02,'小满'),colormagenta,align1;
显示文字(芒种,最高价*1.02,'芒种'),colormagenta,align1;
显示文字(夏至,最高价*1.02,'夏至'),colormagenta,align1;
显示文字(小暑,最高价*1.02,'小暑'),colormagenta,align1;
显示文字(大署,最高价*1.02,'大署'),colormagenta,align1;
显示文字(立秋,最高价*1.02,'立秋'),coloryellow,align1;
显示文字(处暑,最高价*1.02,'处暑'),coloryellow,align1;
显示文字(白露,最高价*1.02,'白露'),coloryellow,align1;
显示文字(秋分,最高价*1.02,'秋分'),coloryellow,align1;
显示文字(寒露,最高价*1.02,'寒露'),coloryellow,align1;
显示文字(霜降,最高价*1.02,'霜降'),coloryellow,align1;
显示文字(立冬,最高价*1.02,'立冬'),colorwhite,align1;
显示文字(小雪,最高价*1.02,'小雪'),colorwhite,align1;
显示文字(大雪,最高价*1.02,'大雪'),colorwhite,align1;
显示文字(冬至,最高价*1.02,'冬至'),colorwhite,align1;
显示文字(小寒,最高价*1.02,'小寒'),colorwhite,align1;
显示文字(大寒,最高价*1.02,'大寒'),colorwhite,align1;
上一指标公式:简单上升通道公式 飞狐通道指标 源码
下一指标公式:画线主图公式 飞狐指标指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文[买卖趋势3]最终版公式 飞狐趋势买卖指标 源码仅供学习研究。