通达信公式 准确波段
出信号结合大势、位置买入,卖出信号出,结合K线卖出
{波段}
BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100,COLORFF00FF,LINETHICK2;
操作区:=IF(BIAS3 0,BIAS3,0),COLORRED,LINETHICK3;
观望区:=IF(BIAS3 0,BIAS3,0),COLORGREEN,LINETHICK3;
VAR2K:=TROUGHBARS(3,15,1)
VAR3K:=PEAKBARS(3,15,1)
VAR4K:=IF(VAR2K=1,50,0);
VAR5K:=IF(VAR3K=1,50,0);
TJ1K:=观望区 REF(观望区,1) OR 观望区-REF(观望区,1) REF(观望区,1)-REF(观望区,2);
TJ2K:=操作区 REF(操作区,1);
顶:=IF(TJ1K AND VAR5K=50,15,0),STICK,COLOR009900;
底:=IF(TJ2K AND VAR4K=50,10,0),STICK,COLOR000099;
DRAWICON(TJ1K AND VAR5K=50,HHV(H,10)+0.1,2);
DRAWICON(TJ2K AND VAR4K=50,LLV(L,10)-0.06,1);