请老师帮忙写一个压力线和支撑线变成一条线 股价涨5个点上穿压力线和支撑线(压力线和支撑线变成一条线) 做个预警选股公式 谢谢 N:=30; STICKLINE(CLOSEREF(OPEN,1),REF(CLOSE,1),REF(CLOSE,1),8,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;
爱约股解答:
N:=30;
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))));
支撑位:=IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24))));
AA:=BARSLAST(CROSS(J24,J))>BARSLAST(CROSS(J,J24));
合并:=IF(AA>0,支撑位,压力位);
合并=REF(合并,1) AND C/REF(C,1)>=1.05 AND (CROSS(C,合并) OR (L<合并 AND C>合并 AND C>O));