以下是通达信捕捉牛股箱高(压力位、支撑位)公式

通达信捕捉牛股箱高(压力位、支撑位)公式

STICKLINE(CLOSE<OPEN AND REF(CLOSE,1)>REF(OPEN,1),REF(CLOSE,1),REF(CLOSE,1),2,0),COLORFFFFFF;
 RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
 K:=SMA(RSV,3,1);
 D:=SMA(K,3,1);
 J:=3*K-2*D;
 RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
 K12:=SMA(RSV12,3,1);
 D12:=SMA(K12,3,1);
 J12:=3*K12-2*D12;
 RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
 K24:=SMA(RSV24,3,1);
 D24:=SMA(K24,3,1);
 J24:=3*K24-2*D24;
压力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLORRED,LINETHICK2;
支撑位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLOR77AAFF,,LINETHICK2;
 AA10:=MA(C,10);
 BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;
 STICKLINE(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),8,0),COLORRED;
 STICKLINE(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),8,1),COLORGREEN;
 AA20:=MA(C,20);
 BB20:=ATAN((AA20-REF(AA20,1)))*180/3.1416;
 STICKLINE(BB20>1,AA20,REF(AA20,1),8,0),COLORYELLOW;
 STICKLINE(BB20<1,AA20,REF(AA20,1),8,1),COLORBBCCCC;
【箱顶】:PEAK(CLOSE,N,1)*0.98;
【箱底】:TROUGH(CLOSE,N,1)*1.02;
【箱高】:100*(【箱顶】-【箱底】)/【箱底】,NODRAW;
 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。