标签:
杂谈 |
说明:下面的公式旨在1分图上看5分线段及30分线段,5分图上看30分线段!高级别的图上不适合!因公式本身的缺陷,有些点位不是很正确,请引用时自己辨别!特此说明!
{新笔段}
var1:="chzhshch@kxian";
var2:="chzhshch@bi";{处理笔关系}
drawline(var2=1,h,var2=-1,l,0),linedot,coloryellow;
drawline(var2=-1,l,var2=1,h,0),linedot,coloryellow;
var3:="chzhshch@duan";{处理段关系}
var5f:="FBASE.var3#min5";
var30f:="FBASE.var3#min30";
drawline(var3=1,h,var3=-1,l,0),colorFF6600;
drawline(var3=-1,l,var3=1,h,0),colorFF6600;
drawnumber(var3=1,h,h,2),pxup20,colormagenta,align2;
drawnumber(var3=-1,l,l,2),pxdn5,colorgreen;
drawline(var5f=1,h,var5f=-1,l,0),colorwhite,linethick2;
drawline(var5f=-1,l,var5f=1,h,0),colorwhite,linethick2;
drawline(var30f=1,h,var30f=-1,l,0),colorFF6600,linethick2;
drawline(var30f=-1,l,var30f=1,h,0),colorFF6600,linethick2;
mdf1:=VALUEWHEN(var2=-1,"macd.diff");
{
//----------------------不想显示分型线的,把下面全部删除掉就可以了.
if DATAPERIOD<6 then //and (STKLABEL='1A0001' or
stklabel='399001') then//日线以上不显示
begin
fx30:"fbase.fx#min30",linethick0;
fx60:"fbase.fx#min60",linethick0;
fxday:"fbase.fx#day",linethick0;
//fxweek:"FENXING#week",linethick0;
drawtext(islastbar and fx30>0
,fx30,'--------30分
DRAWNUMBER(islastbar and fx30>0
,fx30,fx30,2),align2,colorwhite,pxup10;
drawtext(islastbar and fx60>0 and
fx60>=fx30
,fx60,'------60分
DRAWNUMBER(islastbar and fx60>0 and
fx60>=fx30
drawtext(islastbar and fxday>0 and
fxday>=fx60,fxday
,'----日线
DRAWNUMBER(islastbar and fxday>0 and
fxday>=fx60,fxday,fxday,2),align2,colormagenta,pxup10;
{drawtext(islastbar and
fxw>0,fxw,'--周线
DRAWNUMBER(islastbar and
fxw>0,fxw,fxw,2),align2,colorred,pxup10;
}
end;
"http://img.ph.126.net/_EdBhC91bMDMu60nwA-7eQ==/3012063725782787750.jpg"
"http://img.bimg.126.net/photo/_KKLbZTOpmMVbAAiNduLrg==/5772770297359248508.jpg"