九毛八公式指标
公式模块:
请老师根据“短线”副图源码做一个预警选股公式,当出现蓝色向上的箭头时进行预警。谢谢老师!原码如下:
LONGGGG发财线:=38,COLORFF3311;
STICKLINE(C>0,38,38,1,1),COLORFF9911;
LONGGGG趋势线:=51,COLORFF1155;
STICKLINE(C>0,51,51,1,1),COLORFF1199;
OK:=REF(CLOSE,1);
rsi1:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF;
RSI2:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF;
RSI3:SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100,COLORFFFFFF;
RSI4:SMA(RSI3,7,1),LINETHICK2,COLOR00CD00;
趋势A:=MA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,COLORFFFFFF;
趋势B:=MA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD;
趋势C:EMA(((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*50),17)+18,COLORYELLOW,LINETHICK2;
W1:MA(趋势A,7)*1.372,COLORRED,LINETHICK2;
W2:=W1*1.0887;
W3:(1.5*(趋势B+RSI4)-(W2+W1))+12,COLOR3377FF,COLORRED,LINETHICK2,COLORFF0000;
W4:IF((crOSS(W1,趋势C) OR CROSS(W1,W3) AND W3<LONGGGG发财线 AND RSI2<LONGGGG趋势线),48,38),COLORFFFFFF;
XG:IF((CROSS(RSI2,RSI4) OR CROSS(RSI2,W3) AND W3<LONGGGG发财线 AND RSI1<LONGGGG趋势线),48,38),COLORFF6655;
lc:=ref(c,1);
rsi1:=sma(max(c-lc,0),7,1)/sma(abs(c-lc),7,1)*100;
rsi2:=sma(max(c-lc,0),7,1)/sma(abs(c-lc),7,1)*100;
rsi3:=sma(max(c-lc,0),7,1)/sma(abs(c-lc),7,1)*100;
rsi4:=sma(rsi3,7,1);
趋势a:=ma(((c-llv(l,48))/(hhv(h,48)-llv(l,48))*50),17)+9;
趋势b:=ma(((c-llv(l,53))/(hhv(h,53)-llv(l,53))*50),17)+9;
w1:=ma(趋势a,7)*1.372;
w2:=w1*1.0887;
w3:=(1.5*(趋势b+rsi4)-(w2+w1))+12;
cross(rsi2,rsi4) or cross(rsi2,w3) and w3<38 and rsi1<51;