 | |  |  |
飞狐上涨支撑源码公式:
ap:=FILTER(BACKSET(dynainfo(7)=c and dynainfo(10)=amount,31),31);
ma5:ema(c,5),ColorFFFFFA;
ma10:ema(c,13),Color00FFFC;
ma30:ema(c,34),ColorFF00FD;
ma60:ema(c,55),Color00FF05;
if(BARSLAST( ap)>0,INTPART(CLOSE/0.809)*0.809 ,l),POINTDOT,linethick2,coloryellow;
if(BARSLAST( ap)>0,INTPART(CLOSE/0.764)*0.764 ,l),POINTDOT,linethick2,coloryellow;
if(BARSLAST( ap)>0,INTPART(CLOSE/0.809)*0.809+0.809 ,l),POINTDOT,linethick2,colormagenta;
DRAWLINE(ap,L,c>0,c+c*-26/10000,1),colorwhite;
DRAWLINE(ap,L,c>0,c+c*-120/10000,1),coloryellow;
DRAWLINE(ap,L,c>0,c+c*-180/10000,1),colormagenta;
DRAWLINE(ap,l,c>0,ref(l,1),1),colorgreen;
STICKLINE(ap,c*1.10,c*0.90,0,1),colorgreen;
DRAWTEXT(ap ,l*0.98,'涨点坐标' ),linethick2,colorred;
{关键上涨支撑价位}
DPZX:=EMA(C,1);
GGZX:=AMOUNT/V/100;
重心:=IF(CAPITAL>0,GGZX,DPZX);
zc1:=LLV(重心,2);
zc2:=LLV(重心,4);
STICKLINE(BARPOS and BARSTATUS=2,zc1,zc1,120,0),LINETHICK1,COLORGREEN;
DRAWTEXT(BARPOS and BARSTATUS=2,zc1*1.06,'涨关键价'),LINETHICK1,COLORGREEN;
STICKLINE(BARPOS and BARSTATUS=2,zc2,zc2,120,0),LINETHICK1,COLORYELLOW;
DRAWTEXT(BARPOS and BARSTATUS=2,zc2*0.99,'跌支撑价'),ALIGN2,LINETHICK1,coloryellow; |
| |  | |  |
|