通达信最好原始的主图公式
有cost函数,有人说cost是未来函数,不喜欢的免看,我把cost做趋势看。
cost走平股票暂时不再下跌或走平,就准备进场,本人愚笨编辑指标公式不是在行,只是懂点皮毛 。
用EMA作均线,PSY心理超卖超买指标,涨停战法等等。
DRAWBAND(EMA(C,12),RGB(166,16,160),EMA(C,50),RGB(10,50,50));DRAWKLINE(H,O,L,C);
STICKLINE((C>O),O,C,3,0),COLORRED;
STICKLINE((C<O),O,C,3,0),COLORLICYAN;
E:EMA(C,5);E1:EMA(C,12);E2:EMA(C,50),LINETHICK2;DRAWTEXT(ISLASTBAR,E2,'生命线'),COLORRED;
E3:MA(C,120);DRAWTEXT(ISLASTBAR,E3,'120日'),COLORWHITE;
DIF:=(EMA(C,12)-EMA(C,26));DEA:=EMA(DIF,9);
A:=CROSS(E,E2) AND V>=REF(V,1) AND DIF>=0 AND E2>REF(E2,1) AND C>O;
DRAWTEXT(A,E2-0.03,'注意主力前期表演意图');
DRAWTEXT(A,E2-0.15,'综合分析判研'),COLORYELLOW;
DRAWTEXT(A,H,'看懂操盘手法'),COLORWHITE;
STICKLINE(A,O,C,4,0),COLORMAGENTA;
STICKLINE(A,O,C,3,0),COLORYELLOW;
平均成本:COST(0.8),COLORLIBLUE;DRAWTEXT(ISLASTBAR,平均成本,'操盘线'),COLORLIBLUE;
心理线:COST(0.1),COLORYELLOW;DRAWTEXT(ISLASTBAR,心理线-0.03,'心理底线'),COLORYELLOW;
A1:=CROSS(C,E3) AND DIF>=DEA AND C>O;
STICKLINE(A1,O,C,4,0),COLORYELLOW;
STICKLINE(A1,O,C,2,0),COLORRED;
A3:=REF((C<O),1);
B:=H>O AND C=H AND L<O AND L>REF(L,1) AND A3 AND C>O;STICKLINE(B,C,O,1,0),COLORYELLOW;
DRAWTEXT(B,L-0.066,'★'),COLORYELLOW;
B1:=B AND 平均成本>=REF(平均成本,1)AND C<EMA(C,50);DRAWTEXT(B1,H-0.15,'★阶段底部区域'),COLORWHITE;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
DRAWTEXT(涨停,H+0.10,'涨停'),COLORYELLOW;
PSY:=COUNT(C>REF(C,1),12)/12*100;
PSYMA:=EMA(PSY,6);
BB:=PSY>=83;BB1:=PSY<=20 AND L>=REF(L,1);DRAWICON(BB,H+0.05,2);DRAWICON(BB1,L-0.05,1);
AAAA:=PSY<=10 AND L<=平均成本 AND 平均成本>=REF(平均成本,20);DRAWICON(AAAA,C-0.03,7);
AAA:+PSY<=10;DRAWICON(AAA,C+0.05,9);
DRAWTEXT(AAAA,H+0.05,'★抢反弹★'),COLORYELLOW;
DRAWTEXT_FIX(1,0.58,0.03,0,'★森财投资出品★'),COLORRED;
DRAWTEXT_FIX(1,0.88,0.03,0,HYBLOCK),COLORYELLOW;