文华顶底趋势拐点指标公式源码:买卖笑脸和哭脸,看底和看顶文字提示
XAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
XAR2:=SMA(XAR1,3,1);
XAR3:=SMA(XAR2,3,1);
XAR4:=3*XAR2-2*XAR3;
XAR5:=LLV(LOW,5);
XAR6:=HHV(HIGH,5);
XAR7:=EMA((CLOSE-XAR5)/(XAR6-XAR5)*100,4)*2;
XAR8:=EMA(0.667*REF(XAR7,1)+0.333*XAR7,2);
XAR9:=3*XAR7-2*XAR8;
XARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
XARB:=POW(MA(LOW,5),2)+MA(LOW,5);
XARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
XARD:=(XARA-LLV(XARB,64))/(HHV(XARC,64)-LLV(XARB,64))*150+65-10;
XARE:=SMA(XARD,3,1)*1.5-100;
XARF:=SMA(XARE,3,1);
XAR10:=3*XARE-2*XARF;
XAR11:=(HIGH+LOW+CLOSE*2)/4;
XAR12:=EMA(XAR11,13);
XAR13:=STD(XAR11,13);
XAR14:=(XAR11-XAR12)*100/XAR13;
XAR15:=EMA(XAR14,5);
XAR17:=EMA(XAR15,13)+200-100;
XAR18:=EMA(XAR17,10);
XAR19:=3*XAR17-2*XAR18;
XAR1A:=XAR2+XAR7+XARE+XAR17;
XAR1B:=XAR3+XAR8+XARF+XAR18;
XAR1C:=XAR4+XAR9+XAR10+XAR19;
XAR1D:=(HIGH+LOW+CLOSE)/3;
XAR20:=(XAR1D-MA(XAR1D,34))/(0.015*AVEDEV(XAR1D,34));
XAR22:=(HIGH+LOW+CLOSE+XAR1D)/4;
XAR23:=EMA(XAR22,24);
XAR24:=STD(XAR22,24);
XAR25:=(XAR22-XAR23)/XAR24*100;
XAR26:=(XAR1D-MA(XAR1D,24))/(0.015*AVEDEV(XAR1D,24));
XAR27:=EMA(XAR25,5);
XAR2A:=((XAR27+XAR26+XAR20)/3+165)/4;
XAR2B:=(EMA(EMA(EMA(XAR2A,15),10),5)-25)*2;
XAR2C:=(XAR1A+XAR1B+XAR1C*30)/32/5-15;
XAR2D:=EMA(XAR2C,7);
XAR2E:=(XAR2A+XAR2C)/2/1.1;
超短:EMA(XAR2E,3),COLORRED,NODRAW ;
线:EMA(超短,5),COLORWHITE,NODRAW;
势线:EMA((XAR2B+XAR2D)/2,2) ,COLORYELLOW,NODRAW;
DRAWICON(CROSS(势线,0),L,1);
DRAWICON(CROSS(100,超短),H,2);
DRAWTEXT(势线>REF(势线,1) AND REF(势线,1)<REF(势线,2) AND COUNT(CROSS(超短,线),3)=1 AND 线<30,L*0.9998,’看底’),VALIGN0,FONTSIZE15;
DRAWTEXT(势线<REF(势线,1) AND REF(势线,1)>REF(势线,2) AND COUNT(CROSSDOWN(超短,线),3)=1 AND 线>70,H*1.001,’看顶’),VALIGN0,FONTSIZE15;