「翔博精选指标」趋势成本,多空红绿彩带主图(通达信公式 副图免费资源
2021-10-25 来源:原创 编辑:翔博软件
趋势成本,多空红绿彩带 VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80; A:SMA(VAR1,7,1),LINETHICK1,COLOR00FFFF; VAR2:=SMA(A,5,1); B:IF(CROSS(A,VAR2) AND CRO
趋势成本,多空红绿彩带
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
A:SMA(VAR1,7,1),LINETHICK1,COLOR00FFFF;
VAR2:=SMA(A,5,1);
B:IF(CROSS(A,VAR2) AND CROSS(MA(C,5),MA(C,13) AND A>50) ,VAR2*2,VAR2),COLORYELLOW;
{PARTLINE(B,B>REF(B,1),RGB(255,0,0),B<REF(B,1),RGB(0,255,0)),LINETHICK2;}
DRAWBAND(B,RGB(255,0,0),REF(B,1),RGB(0,255,0));
{IF(B>REF(B,1),B,DRAWNULL),LINETHICK2,COLORRED;}
{IF(B<REF(B,1),B,DRAWNULL),LINETHICK2,COLORGREEN;}
DRAWTEXT(CROSS(B,A) ,B,'止赢!!'),COLOR0000FF;
DRAWTEXT(CROSS(A,B) ,A,'买'),COLOR00FFFF;
出局:REF(A,BARSLAST(CROSS(REF(A,3),A))+1),POINTDOT,COLORD3A9FF,LINETHICK2;