!!!该主图公式,同花顺 通达信是通用的,在这里就只说下同花顺的导入了。!!!
简要说明:(注 该指标只做为技术交流,不作任何投资依据)用法:趋势预判 类 详可见图 无未来
指标镶入步骤:
工具→公式管理→常用→技术指标→五彩k线/交易系统→新建→名称和描述→粘贴指标源码→确定
源码:
MA5:MA(CLOSE,5),COLORFFFFFF,LINETHICK2;
MA13:MA(CLOSE,13),COLOR00FF00;
MA21:MA(CLOSE,21),COLOR00FFFF,LINETHICK2;
MA34:MA(CLOSE,34),COLORFF00FF;
{MA55:MA(CLOSE,55),COLOR0000FF;}
{MA120:=MA(CLOSE,120),COLORFFFF00;}
盟军:=EMA(C,2),COLOR000000;
日寇:=EMA(SLOPE(C,21)*20+C,42),COLOR000000;
B:=CROSS(盟军,日寇);
S:=CROSS(日寇,盟军);
DRAWICON(B,L*0.97,1);
DRAWTEXT(B,L*0.92,'地狱猫攻击'),COLORYELLOW;
DRAWICON(S,H*1.03,2);
DRAWTEXT(S,H*1.08,'三零式后退'),COLORWHITE;
STICKLINE(盟军>=日寇,LOW,HIGH,0.01,0),COLOR0000DD;
STICKLINE(盟军>=日寇,CLOSE,OPEN,2,1),COLORRED;
{STICKLINE(盟军>=日寇,CLOSE,OPEN,3,0),COLOR0000CC;
STICKLINE(盟军>=日寇,CLOSE,OPEN,2,0),COLOR0000DD;
STICKLINE(盟军>=日寇,CLOSE,OPEN,1,0),COLOR0000FF;}
{STICKLINE(盟军<日寇,CLOSE,OPEN,1,0),COLOREEEE00;
STICKLINE(盟军<日寇,CLOSE,OPEN,2,0),COLORDDDD00;
STICKLINE(盟军<日寇,CLOSE,OPEN,3,0),COLORCCCC00;}
STICKLINE(盟军<日寇,LOW,HIGH,0.01,0),COLORFFDD00;
STICKLINE(盟军<日寇,CLOSE,OPEN,2,0),COLORFFFF00;
STICKLINE(CROSS(盟军,日寇),OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(CROSS(日寇,盟军),OPEN,CLOSE,2.5,0),COLORWHITE;