文华财经盘立方多空变色波段趋势线指标公式源码:
N1:=20;
N2:=ROUND(N1/2,1);
N3:=ROUND(SQRT(N1),1);
N4:=2*EMA2(C,N2)-EMA2(C,N1);
尊重市场:EMA2(N4,N3),COLORRED,LINETHICK2;
尊重市场1:IF(尊重市场<=REF(尊重市场,1), 尊重市场,NULL),COLORGREEN,LINETHIC K2;
量比:=V/REF(MA(V,1),1);
五日涨幅:=(C- REF(C,5))/REF(C,5)*100,NODRAW;
今获利:=(C)*100,NODRAW;
昨获利:=REF(今获利,1);
获利比增:=今获利-昨获利,NODRAW;
多方力度:=3*SMA(CLOSE- LLV(LOW,27)/(HHV(HIGH,27)- LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27)/(HHV(HIGH,27)- LLV(LOW,27)))*100,5,1),3,1),COLOR00FFFF,LINETHICK2;
空方力度:=100*(HHV(HIGH,55)- CLOSE)/(HHV(HIGH,55)- LLV(LOW,55)),COLOR00EC00,LINETHICK 1;
尊重市场2:=(CLOSE- LLV(LOW,33))/(HHV(HIGH,33)- LLV(LOW,33))*100;
K:=SMA(尊重市场2,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
ABC1:=3*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)- LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)- LLV(LOW,27))*100,5,1),3,1);
ABC2:=EMA(ABC1,8);
//ABC3:=3*SMA((CLOSE- LLV(LOW,55))/(HHV(HIGH,55)- LLV(LOW,55))*100,5,1)-2*SMA(SMA(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)- LLV(LOW,55))*100,5,1),3,1);
趋势线:= (MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOS E,15)+MA(CLOSE,20))/4;
牛熊线:=MA(CLOSE,26);
生命线:=EMA(CLOSE,55);
ACB1:=MAX(MAX(趋势线,牛熊线),生命线);
BCA1:=MIN(MIN(趋势线,牛熊线),生命线);
ACB2:=MAX(MAX(MA(C,5), MA(C,10)),MA(C,20));
BCA2:=MIN(MIN(MA(C,5),MA(C,10)),MA( C,20));
金手指1:=(C>生命线 AND L<生命线 AND C>趋势线 AND CROSS(多方力度,空方力度) AND C/REF(C,1)>1.02 AND 量比>1.1 AND C>0 AND H/MAX(O,C)<1.05);
金手指:=(H>ACB1 AND L<BCA1) AND C/REF(C,1)>1.03 AND 量比>1.3 AND H/MAX(O,C)<1.03;
STICKLINE(金手指 OR 金手指1,O,C,1,0),COLORYELLOW;
DRAWICON(金手指 OR 金手指1,L,11);
DRAWTEXT(金手指 OR 金手指1,L*0.9997, '☆金手指'),COLORYELLOW;