压力线和支撑线 做个预警选股公式
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

写一个压力线和支撑线之间距离很小 做个预警选股公式 谢谢压力线和支撑线之间距离为百分之2一下(压力线和支撑线之间距离可调为最好) 谢谢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))));
距离:=2;
压力位/支撑位<REF(压力位/支撑位,1) AND 压力位/支撑位<=1+距离/100;

选股票看什么指标最好 >股票指标网