以下是通达信猛龙过江源码(无源码的请下载附件导入)
Z:=20;
M:=32;
P1:=80;
P2:=100;
VAR111:=(2*ADVANCE+VOLINSTK+QHJSJ)/4;
压力线:MA(VAR111,Z)*(1+P1/1000),POINTDOT,LINETHICK3;
支撑线:MA(VAR111,M)*(1-P2/1000),POINTDOT,LINETHICK3;
上中轨:压力线-(压力线-支撑线)*0.33,POINTDOT,COLORLIGRAY,LINETHICK3;
下中轨:支撑线+(压力线-支撑线)*0.33,POINTDOT,COLORGRAY,LINETHICK3;
AA:压力线*1.008,POINTDOT,COLORGRAY,LINETHICK4;
BB:支撑线*0.992,POINTDOT,COLORGRAY,LINETHICK4;
选股A:=CROSS(ADVANCE,支撑线) OR (QHJSJ<支撑线 AND ADVANCE>支撑线);
工作线2:=MA(CLOSE,12);
选股B:=CROSS(ADVANCE,工作线2) AND 选股A;
TDXSTEP102:DRAWICON(选股A AND 选股B,QHJSJ*0.9998,23),COLORRED;
若上述公式在汇盈系列行情数据分析软件中有异常,请尝试如下公式:
Z:=20;
M:=32;
P1:=80;
P2:=100;
VAR111:=(2*CLOSE+HIGH+LOW)/4;
压力线:MA(VAR111,Z)*(1+P1/1000),POINTDOT,LINETHICK3;
支撑线:MA(VAR111,M)*(1-P2/1000),POINTDOT,LINETHICK3;
上中轨:压力线-(压力线-支撑线)*0.33,POINTDOT,COLORLIGRAY,LINETHICK3;
下中轨:支撑线+(压力线-支撑线)*0.33,POINTDOT,COLORGRAY,LINETHICK3;
AA:压力线*1.008,POINTDOT,COLORGRAY,LINETHICK4;
BB:支撑线*0.992,POINTDOT,COLORGRAY,LINETHICK4;
选股A:=CROSS(CLOSE,支撑线) OR (LOW<支撑线 AND CLOSE>支撑线);
工作线2:=MA(CLOSE,12);
选股B:=CROSS(CLOSE,工作线2) AND 选股A;
TDXSTEP102:DRAWICON(选股A AND 选股B,LOW*0.9998,23),COLORRED;
{-----------------------------------} |