飞天主图
2019/12/7 18:27:07
公式编写说明:
飞天主图源码如下:飞天:MA(CLOSE,25)+MA(CLOSE,25)*20/100,COLORRED,LINETHICK2;强势线:MA(CLOSE,25)+MA(CLOSE,25)*6/100,COLORYELLOW,LINETHICK2;支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFFCC00,LINETHICK2;压力线:MA(HIGH,5),COLORMAGENTA;MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK0;MA54:MA(CLOSE,54),COLORFFCCCC,LINETHICK0;PL1:=(((CLOSE-MA54)/MA54)0.1);PL2:=(((CLOSE-MA10)/MA10)0.3);偏离率:=(((PL1=1)AND(PL2=1))*0.2);平台突破:=((((偏离率=0)AND(REF(偏离率,1)=0.2))AND(REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);DRAWTEXT(平台突破,L,'突破★牛股'),COLORFFCC00;该源码在通达信K线主图上无法显示“平台突破和突破★牛股”的文字,请高手们帮忙修改下,非常感谢
公式源码回答:
飞天:MA(CLOSE,25)+MA(CLOSE,25)*20/100,COLORRED,LINETHICK2;
强势线:MA(CLOSE,25)+MA(CLOSE,25)*6/100,COLORYELLOW,LINETHICK2;
支撑线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORFFCC00,LINETHICK2;
压力线:MA(HIGH,5),COLORMAGENTA;
MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK0;
MA54:MA(CLOSE,54),COLORFFCCCC,LINETHICK0;
PL1:=(((CLOSE - MA54) / MA54) < 0.1);
PL2:=(((CLOSE - MA10) / MA10) < 0.3);
偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);
平台突破:=((((偏离率 = 0) AND (REF(偏离率,1) = 0.2)) AND (REF((COUNT((偏离率 = 0.2),10) = 10),1) = 1)) * -0.1);
DRAWTEXT(平台突破=-0.1,L,'突破★牛股'),COLORFFCC00;
投 股票网 www.to u18.cn
股市公式下载推荐