以下是一个非常不错的多空指标公式源码
一个非常不错的多空指标公式源码:
A:IF(CLOSE SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,colorred;
B:IF(CLOSE SAR(N,S,M),SAR(N,S,M),DRAWNULL),CIRCLEDOT,colorcyan;
DRAWKLINE(H,O,L,C);
10:EMA(C,10),coloryellow,LINETHICK2;
升10:IF(均线10 REF(均线10,1),均线10,DRAWNULL),colorred,LINETHICK2;
降10:IF(均线10 REF(均线10,1),均线10,DRAWNULL),colorgreen,LINETHICK2;
VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR3:=SMA(VAR0,3,1);
VAR1:=SMA(VAR3,4,1)-10;
VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR5:=SMA(VAR4,3,1);
VAR2:=SMA(VAR5,4,1)-90;
STICKLINE(REF(VAR1,1) VAR1,VAR1,REF(VAR1,1),10,0),COLOR0000FF;
0,CIRCLEDOT;
STICKLINE(REF(VAR1,1) VAR1,VAR1,REF(VAR1,1),5,0),COLOR00FF00;
STICKLINE(REF(VAR2,1) VAR2,VAR2,REF(VAR2,1),10,0),COLOR0000FF;
STICKLINE(REF(VAR2,1) VAR2,VAR2,REF(VAR2,1),5,0),COLOR00FF00;
0,COLOR0000FF;
空头:100*(1-WINNER(C)),COLORGREEN,linethick2;
多头筹码:100*WINNER(C),COLORRED,linethick2;
获利平均值:EMA(100*WINNER(C),20),coloryellow,linethick2;
获利99:=ma(COST(99),5);
获利80:=ma(cost(80),5);
均线5日:=ma(c,5);
获利20:=ma(cost(20),5);
获利1:=ma(cost(1),5);
a1:=(获利99-获利80)/获利80*100;
a2:=(获利80-获利20)/获利20*100;
aa3:=(获利20-获利1)/获利1*100;
a4:=IF(a2 10,100,0);
a5:=IF(a2 15,50,0);
a6:=IF(a2 20,25,0);
密集度:a2,colorFF0000,linethick2;
高密集:a4,color0000FF,linethick2;
中密集:a5,colorFF00FF,linethick2;
低密集:a6,color00FF00,linethick2;
一个非常不错的多空指标公式截图