文华财经开多开空提示主图指标公式源码:
X1:=(CLOSE+LOW+HIGH)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
VAR2:=EMA(EMA(X1,1),13);
VAR3:=EMA(VAR2,21);
XCLOSE:=EMA((OPEN+HIGH+LOW+CLOSE)/4,3);
XOPEN:=EMA((REF(OPEN,1)+REF(XCLOSE,1))/2,3);
TEMPG:=MAX(HIGH,XOPEN);
XHIGH:=EMA(MAX(TEMPG,XCLOSE),3);
TEMP:=MIN(LOW,XOPEN);
XLOW:=EMA(MIN(TEMP,XCLOSE),3);
O1:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE);
C1:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN);
AC:=CLOSE;
转强:=MA(HIGH,6);
转弱:=MA(LOW,6);
B:=CLOSE*0;
转折线:=IF(B=-1,MA(HIGH,6),MA(LOW,6)),LINETHICK2,COLORFFFFFF,NODRAW;
EM01:=EMA(C,10);
EM:=EMA(C,21);
UP:=EMA(EM,13);
DOWN:=EMA(EM,17);
MIDD:=(UP+DOWN)/2;
MAM:=(EMA(EM01,2)+EMA(EM01,5))/2;
X18:=(CLOSE+LOW+HIGH+OPEN)/4;
X28:=EMA(X18,6);
X38:=EMA(X28,2);
VAR200:=EMA(EMA(X18,1),18);
VAR300:=EMA(VAR200,18);
O100:=IF(XOPEN<XCLOSE,XOPEN,XCLOSE);
C100:=IF(XOPEN<XCLOSE,XCLOSE,XOPEN);
HH:=HHV(HIGH,22);
LL:=LLV(LOW,22);
HH3:=HHV(HIGH,14);
LL3:=LLV(LOW,14);
HH1:=BARSLAST((HH>REF(HH,1)));
LL1:=BARSLAST((LL<REF(LL,1)));
DRAWTEXT(CROSS(HH1,LL1),XHIGH,’开空’),COLORGREEN,VALIGN2,ALIGN1,FONTSIZE18;
DRAWTEXT(CROSS(LL1,HH1),XLOW,’开多’),COLORYELLOW,VALIGN0,ALIGN1,FONTSIZE18;
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(WRSI,15),L,”),COLORMAGENTA,FONTSIZE15;
DRAWTEXT(CROSS(85,WRSI),H,”),COLORLIGHTGREEN,FONTSIZE15;
LC8:=REF(CLOSE,1);
WRSI8:=SMA(MAX(CLOSE-LC8,0),6,1)/SMA(ABS(CLOSE-LC8),6,1)*100;
DRAWICON(CROSS(WRSI8,10),L,’ICO153′),VALIGN0;
DRAWICON(CROSS(90,WRSI8),H,’ICO152′),VALIGN2;