通达信公式:看趋势做波段

MA55:=MA(CLOSE,55);

QS:=(CLOSE-MA55)/MA55*100;

N:=20;

N1:=55;

N2:=N+N1;

回调卖出价:(CONST(REF(HHV(QS,N1),N))/100+1)*MA55,COLORRED;

回调买入价:(CONST(LLV(QS,N2))/100+1)*MA55,COLORYELLOW;

一一一:=C=回调买入价;

DRAWICON(C=回调买入价,L*0.96,9);

DRAWTEXT(C=回调买入价,L*0.94,'送钱');

DRAWICON(C=回调卖出价,H*1.006,2);

DRAWTEXT(C=回调卖出价,H*1.012,'逃命');

DRAWKLINE(H,O,L,C);

LL:=L=LLV(L,11);

Q:=BACKSET(LL,10);

T:=BARSLAST(CROSS(Q=1,0.5));

QT:=CONST(BARSLAST(Q=1));

YX:=C<O OR (C=O AND C<=REF(C,1));

VV:=IF(YX AND Q AND CURRBARSCOUNT<=QT+11,V,0);

HT:=BARSLAST(VV=HHV(VV,T+1));

EXT:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,O,ISLASTBAR,REF(O,HT),0),DOTLINE,COLORYELLOW;

TT:=BARSLAST(CROSS(EXT!=DRAWNULL,0.5));

TJ:=CROSS(C,EXT);

XG:COUNT(TJ,TT)=1 AND TJ;

DRAWICON(XG,L*0.98,25);

DRAWTEXT(XG,L*0.96,'干');

预警:EXT*0.99;

DRAWTEXT(CURRBARSCOUNT=CONST(TT)+12,CONST(EXT)*1.02,VARCAT(VARCAT('阴量实体最高价',VAR2STR(CONST(EXT),2)),'元')),COLORYELLOW;

Tags:通达信公式源码入门知识股票学习股票入门知识新手炒股主图测试图K线

版权声明:本文仅代表作者观点,不代表本站立场。本文系作者授权本站发表。

(0)

相关推荐