给力100%的临界起涨主图的源码 :
M:=88;N1:=6;VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:(MA(VAR0A,13)*0.99),COLORYELLOW;
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
黄金线:(HHV(VAR1A,12)),LINETHICK2,COLOR0080FF;VAR1:=EMA(AMOUNT/VOL/100,3);
控盘成本:EMA(VAR1,M),LINETHICK1,COLORRED;低吸伏击:EMA(VAR1,M)*0.85,COLORCYAN ,LINETHICK1;
走势铁底:低吸伏击*0.87,LINETHICK1,COLORLIMAGENTA;VAR2:=LOW =走势铁底 AND CLOSE REF(CLOSE,1)*1.02;
IF(控盘成本 REF(控盘成本,1),控盘成本,DRAWNULL),LINETHICK1,COLORGREEN;DRAWICON(FILTER(VAR2,N1),L-0.55,5);
思路:觉得有必要把MA13和黄金线交叉的起涨点,用源码体现出来再加上量柱指标源码 这样可以方便分析股票的趋势
MA13线是要多头向上和黄金线 交叉才有用
下面是改进的源码
{www.9m8.cn}DRAWBAND(MA(CLOSE,5),RGB(140,42,43),MA(CLOSE,24),RGB(31,72,46));
DRAWKLINE(H,O,L,C);}
TJ:=VOL =REF(V,1)*1.91 AND C REF(C,1)*1.01;
{www.9m8.cn}DRAWTEXT(TJ,LOW*0.986,'↖高量柱'),COLORYELLOW;}
STICKLINE(TJ,OPEN,CLOSE,1.5,0),COLORYELLOW;
K1:=SUMBARS(TJ,1);
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),10,0),COLORYELLOW;
M:=88;N1:=6;VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);MA13:(MA(VAR0A,13)*0.99),COLORYELLOW;
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
黄金线:(HHV(VAR1A,12)),LINETHICK2,COLOR0080FF;VAR1:=EMA(AMOUNT/VOL/100,3);
控盘成本:EMA(VAR1,M),LINETHICK1,COLORRED;低吸伏击:EMA(VAR1,M)*0.85,COLORCYAN ,LINETHICK1;
走势铁底:低吸伏击*0.87,LINETHICK1,COLORLIMAGENTA;VAR2:=LOW =走势铁底 AND CLOSE REF(CLOSE,1)*1.02;
IF(控盘成本 REF(控盘成本,1),控盘成本,DRAWNULL),LINETHICK1,COLORGREEN;DRAWICON(FILTER(VAR2,N1),L-0.55,5);
DRAWICON(CROSS(MA13,黄金线)AND MA13 REF(MA13,1),L,1);
DRAWICON(CROSS(黄金线,MA13)AND MA13 REF(MA13,1),L,1);
{www.9m8.cn}涨跌停显示}
涨停:=IF((C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,3,0),COLORRED;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF -9.9,O,C,3,0),COLORGREEN;
选股公式为:VAR0A:=EMA(EMA(EMA(CLOSE,2),2),2);
MA13:=(MA(VAR0A,13)*0.99),COLORYELLOW;
TLAMSENR:=MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1)-HIGH))),ABS((REF(CLOSE,1)-LOW)));
ATR:=MA(TLAMSENR,13);VAR1A:=(REF(CLOSE,1)-REF(ATR,1));
黄金线:=(HHV(VAR1A,12)),LINETHICK2,COLOR0080FF;VAR1:=EMA(AMOUNT/VOL/100,3);
XG:DRAWICON(CROSS(MA13,黄金线)AND MA13 REF(MA13,1),L,1)OR DRAWICON(CROSS(黄金线,MA13)AND MA13 REF(MA13,1),L,1);