将共振买点指标刚刚出现黄线时做一个预警公式
将共振买点指标刚刚出现黄线时做一个预警公式
【股票资源馆】大智慧专业版破解版,大智慧机构破解版,大智慧ACE破解版,ACE策略,AI活跃度。
编写条件:
请老师帮我编一个均线粘连的公式,均线粘连度如图中所标。 指标源码;M60:=MA(C,60); M120:=MA(C,120); DRAWBAND(M60,RGB(90,0,0),M120,RGB(0,90,0)); {牛熊变线} 变线:=EMA(MA(CLOSE,30),5),LINETHICK0;{20 或 30 或 35} STICKLINE(C>=变线 AND C>=O,H,L,0,0),COLORRED; STICKLINE(C>=变线 AND C>=O,C,O,2.7,1),COLORRED; STICKLINE(C>变线 AND C<=O,H,L,0,1),COLORCYAN; STICKLINE(C>变线 AND C<=O,C,O,3,0),COLORCYAN; STICKLINE(C
<变线 and c<="O,H,L,0,1),COLORGRAY;" stickline(c<变线 c>
O,H,L,0,1),COLORGRAY; STICKLINE(C
<变线 and c>
O,C,O,3,1),COLORGRAY; STICKLINE(C
<变线 and c<="O,C,O,3,1),COLORGRAY;" {分水岭操作线} pm:ma(c,5),colorgray,linethick1;{可用13} if(pm
=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2; IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2; A:=MA(CLOSE,12)+ABS(MA(CLOSE,12)-REF(MA(CLOSE,12),1));{原公式为17,最终确定为12} B:=MA(CLOSE,12)+MA(CLOSE,12)-REF(MA(CLOSE,12),1); 分水岭:=IF(MA(CLOSE,12)
=MA(C,4); {AND VOL>=REF(VOL,1)} STICKLINE(RR,C,O,3,0),COLOR0000AA; STICKLINE(RR,C,O,2,0),COLOR0033CC; STICKLINE(RR,C,O,1,0),COLOR0055EE; STICKLINE(RR,C,O,0.3,0),COLOR0099EE; STICKLINE(RR,H,L,0,1),COLOR0099FF; MA5:MA(CLOSE,5),NODRAW; MA10:MA(CLOSE,10),COLORCC66FF; MA20:MA(CLOSE,20),COLORFFCC66,LINETHICK2; MA60:MA(CLOSE,60),COLOR00FF99,LINETHICK2; MA120:MA(C,120),COLORGRAY; DRAWTEXT(CROSS(MA60,MA120),MA60,'牛'),COLORYELLOW,LINETHICK4; DRAWTEXT(CROSS(MA120,MA60),MA60,'熊'),COLORWHITE,LINETHICK2; STICKLINE(ISLASTBAR,HHV(C,5)*0.95-0.01,HHV(C,5)*0.95,50,0),COLORWHITE; DRAWTEXT(ISLASTBAR,HHV(C,5)*0.95,'止损价位'),COLORWHITE;
变线>
变线>
变线>
编写方法:
ABS((MA(C,10)-C)/C)<0.01 AND ABS((MA(C,20)-C)/C)<0.01 AND ABS((MA(C,60)-C)/C)<0.01;
{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}炒股教程
合并2个选股公式为一个以便做条件预警所用
合并2个选股公式为一个以便做条件预警所用