文华财经盘立方同花顺期货通均线多空变色指标公式源码:
VAR1:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
多方:= SMA(VAR3,13,8),LINETHICK2;
A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
VARB:=3*VAR9-2*SMA(VAR9,15,1);
VARC:=100-VARB;
主力仓位:= (100-VARA),COLORRED,LINETHICK3;
VARE:=REF(LOW,1)*0.9;
VARF:=LOW*0.9;
VAR12:=CLOSE-REF(CLOSE,1);
VAR13:=MAX(VAR12,0);
VAR14:=ABS(VAR12);
VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;
VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;
VAR17:=BARSCOUNT(CLOSE);
VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;
VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);
VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
VAR21:=(HIGH+LOW+CLOSE)/3;
VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));
VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 AND VAR23<200,10,0);
VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24);
V6:=CLOSE/REF(CLOSE,3)>=1.1;
//STICKLINE1(VAR9>-150,0,VAR9,3,0), COLORFF00FF;
先知: =(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100, COLORCYAN;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D1:=SMA(K,3,1);
J:=3*K-2*D1;
B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
中期线:=D+100,COLORYELLOW,LINETHICK1;
QA:=((CLOSE)/(REF(CLOSE,1)) >= 1.065) OR (OPEN = LOW) AND (HIGH = CLOSE) OR ((CLOSE)/(OPEN) >= 1.07);
上线:=SMA(C,6.5,1);
下线:SMA(C,13.5,1),COLOR00FFFF;
DRAWTEXT( CROSS(上线,下线),下线,'多' ),COLORFF00FF,COLORWHITE;
DRAWTEXT( CROSS(下线,上线),上线,'卖' ),COLOR00FFFF;
PARTLINE1(下线>REF(下线,1),下线),COLORRED, LINETHICK3;
PARTLINE1(下线<REF(下线,1),下线),COLORGREEN, LINETHICK3;
STICKLINE((QA=1),OPEN,CLOSE,10,0),COLORFF00FF;
DRAWTEXT( CROSS(下线,REF(下线,1)),下线,'涨' ),COLORRED;
DRAWTEXT( CROSSDOWN(下线,REF(下线,1)),下线,'跌' ),COLORGREEN;