涨跌测量60天--主图源码-----看股价明明白白!!放在如何主图公式都可以使用。你不再盲目跟疯,让庄家自鸣自放,狗咬狗吧!!
{跌测量}
TIAOJIAN1:=C=HHV(C,60);
DAYS11:=BARSLAST(TIAOJIAN1);
跌50﹪:IF(CURRBARSCOUNT =20 AND L REF(C,DAYS11)/1.5 ,REF(C,DAYS11)/1.5,DRAWNULL),COLORCYAN,CROSSDOT;
DRAWTEXT(ISLASTBAR AND L REF(C,DAYS11)/1.5,REF(C,DAYS11)/1.5,'跌-50﹪'),COLORCYAN;
跌60﹪:IF(CURRBARSCOUNT =20 AND L REF(C,DAYS11)/1.6 ,REF(C,DAYS11)/1.6,DRAWNULL),COLORGREEN,CROSSDOT;
DRAWTEXT(ISLASTBAR AND L REF(C,DAYS11)/1.6,REF(C,DAYS11)/1.6,'跌-60﹪'),COLORGREEN;
跌70﹪:IF(CURRBARSCOUNT =10 AND L REF(C,DAYS11)/1.7 ,REF(C,DAYS11)/1.7,DRAWNULL),COLORGRAY,CROSSDOT;
DRAWTEXT(ISLASTBAR AND L REF(C,DAYS11)/1.7,REF(C,DAYS11)/1.7,'跌-70﹪'),COLORGRAY;
跌80﹪:IF(CURRBARSCOUNT =10 AND L REF(C,DAYS11)/1.8 ,REF(C,DAYS11)/1.8,DRAWNULL),COLORBLUE,CROSSDOT;
DRAWTEXT(ISLASTBAR AND L REF(C,DAYS11)/1.8,REF(C,DAYS11)/1.8,'跌-80﹪'),COLORBLUE;
跌90﹪:IF(CURRBARSCOUNT =10 AND L REF(C,DAYS11)/1.9 ,REF(C,DAYS11)/1.9,DRAWNULL),COLORMAGENTA,CROSSDOT;
DRAWTEXT(ISLASTBAR AND L REF(C,DAYS11)/1.9,REF(C,DAYS11)/1.9,'跌-90﹪'),COLORMAGENTA;
{涨测量}
TIAOJIAN:=C=LLV(C,60) AND (C-HHV(C,15))/HHV(C,15) 0.10;
XA:=BACKSET(CROSS(0.5,TIAOJIAN),2);
DA:=BACKSET(CROSS(XA,0.5) OR (REF(TIAOJIAN,2)=1 AND REF(TIAOJIAN,1)=0 AND TIAOJIAN=1),1);
DAYS:=BARSLAST(DA);
涨幅:100*(C-REF(C,DAYS))/REF(C,DAYS),NODRAW;
低价:IF(CURRBARSCOUNT =10 ,REF(C,DAYS),DRAWNULL),COLORBLUE,CROSSDOT;
DRAWTEXT(ISLASTBAR,REF(C,DAYS),'0﹪'),COLORBLUE;
XA1:=BACKSET(CROSS(0.5,TIAOJIAN),1);
DA1:=BACKSET(CROSS(XA1,0.5) OR (REF(TIAOJIAN,2)=1 AND REF(TIAOJIAN,1)=0 AND TIAOJIAN=1),1);
DAYS1:=BARSLAST(DA1);
低价1:=IF(CURRBARSCOUNT =10 ,REF(C,DAYS1),DRAWNULL),CIRCLEDOT,COLORCYAN,LINETHICK7;
DRAWTEXT(ISLASTBAR,REF(C,DAYS1),'------买'),COLORCYAN;
涨跌测量:=REF(BETWEEN(C,低价1,低价),1) AND C 低价1 AND DYNAINFO(4)
STICKLINE(涨跌测量=1,H,H+(H-L),1.0,0),COLOR008080;
涨10﹪:IF(CURRBARSCOUNT =10 AND H REF(C,DAYS)*1.1 ,REF(C,DAYS)*1.1,DRAWNULL),COLORWHITE,CROSSDOT;
DRAWTEXT(ISLASTBAR AND H REF(C,DAYS)*1.1,REF(C,DAYS)*1.1,'涨10﹪'),COLORWHITE;
涨20﹪:IF(CURRBARSCOUNT =10 AND H REF(C,DAYS)*1.2 ,REF(C,DAYS)*1.2,DRAWNULL),COLORRED,CROSSDOT;
DRAWTEXT(ISLASTBAR AND H REF(C,DAYS)*1.2,REF(C,DAYS)*1.2,'涨20﹪'),COLORRED;
涨30﹪:IF(CURRBARSCOUNT =10 AND H REF(C,DAYS)*1.3 ,REF(C,DAYS)*1.3,DRAWNULL),COLORYELLOW,CROSSDOT;
DRAWTEXT(ISLASTBAR AND H REF(C,DAYS)*1.3,REF(C,DAYS)*1.3,'涨30﹪');
涨40﹪:IF(CURRBARSCOUNT =10 AND H REF(C,DAYS)*1.4 ,REF(C,DAYS)*1.4,DRAWNULL),COLORMAGENTA,CROSSDOT;
DRAWTEXT(ISLASTBAR AND H REF(C,DAYS)*1.4,REF(C,DAYS)*1.4,'涨40﹪'),COLORMAGENTA;
涨50﹪:IF(CURRBARSCOUNT =10 AND H REF(C,DAYS)*1.5 ,REF(C,DAYS)*1.5,DRAWNULL),COLORCYAN,CROSSDOT;
DRAWTEXT(ISLASTBAR AND H REF(C,DAYS)*1.5,REF(C,DAYS)*1.5,'涨50﹪'),COLORCYAN;
涨60﹪:IF(CURRBARSCOUNT =10 AND H REF(C,DAYS)*1.6 ,REF(C,DAYS)*1.6,DRAWNULL),COLORGREEN,CROSSDOT;
DRAWTEXT(ISLASTBAR AND H REF(C,DAYS)*1.6,REF(C,DAYS)*1.6,'涨60﹪'),COLORGREEN;
涨70﹪:IF(CURRBARSCOUNT =10 AND H REF(C,DAYS)*1.7 ,REF(C,DAYS)*1.7,DRAWNULL),COLORGRAY,CROSSDOT;
DRAWTEXT(ISLASTBAR AND H REF(C,DAYS)*1.7,REF(C,DAYS)*1.7,'涨70﹪'),COLORGRAY;
再相送副图公式买卖游标尺:DA:=MAX(MA(C,60),MA(C,120));
DB:=MIN(MA(C,60),MA(C,120));
红持股:C DA,COLORRED,NODRAW;
绿持币:C DB,COLORGREEN,NODRAW;
黄观望:DA =C AND C =DB,COLORYELLOW,NODRAW;
STICKLINE(C DA,0.5,1.0,3,0),COLORRED,LINETHICK2;
STICKLINE(C DB,0.5,1.0,3,0),COLORGREEN,LINETHICK2;
STICKLINE(DA =C AND C =DB,0.5,0.8,2,0),COLORYELLOW,LINETHICK2;