龙听期货论坛's Archiver

龙听 发表于 2018-11-29 16:26

多空参考指标[文华财经公式]

标签: 公式 文华 财经 期货 多空参考 多空参考指标



源码:

[code]
VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;
VAR2:=SMA(VAR1,10,1);
MS:=SMA(VAR2,5,1);
RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;
RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
FATK:=SMA(RSV1,3,1);
XX:=SMA(FATK,3,1);
VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARB:=SMA(VARA,3,1);
VARC:=SMA(VARB,3,1);
JS: EMA(3*VARB-2*VARC,2),COLORYELLOW;
D:6,COLORLIGHTRED;
DI:-6,COLORMAGENTA;
DN:90,COLORGREEN;
DDN:100,COLORWHITE;
VAR11:=LLV(LOW,5)=LLV(LOW,45) && CLOSE>=OPEN*1.04;
VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
MR:=VAR11 && VAR22,COLORRED;
VAR3:=REF(CLOSE,1);
VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
MC:=CROSS(80,VAR4),COLORGREEN;
VAR5:=CROSS(JS,100);VAR6:=CROSS(JS,-6);
VAR7:=CROSS(80,JS);VAR8:=CROSS(JS,6);
DRAWTEXT(VAR5,85,'注意顶'),COLORBLUE;
DRAWTEXT(VAR6,0,'关注底'),COLORRED;
DRAWTEXT(VAR7,95,'空'),COLORGREEN;
DRAWTEXT(VAR8,5,'多'),COLORMAGENTA;

[/code]

页: [1]