同花顺marsi. 请老师帮我去掉图中rsi1和rsi2两条线,并且金叉标红色三角形,背离标绿色三角形,详情请进.
楊小贰(KK)
2024-06-07 12:07:26
最佳回答
n1:=5;n2:=3;n3:=10;n4:=5;lc := ref(close,1);rsia:=sma(max(close-lc,0),n1,1)/sma(abs(close-lc),n1,1)*100;rsi1:=ma(rsia,n2);rsib:=sma(max(close-lc,0),n3,1)/sma(abs(close-lc),n3,1)*100;rsi2:=ma(rsib,n4);jc:cross(rsi1,rsi2),colorred;bl:ref(rsi1,1)>ref(rsi1,2) and ref(rsi1,1)>rsi1 and rsi1>65,colorgreen; 20210311