资源描述:
《文华鳄鱼分形指标》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、//{混沌分形主图}TMP:=OPEN-CLOSE;DRAWLINE(TMP>0.0001,HIGH,TMP>0.0001,OPEN,COLORCYAN);DRAWLINE(TMP>0.0001,LOW,TMP>0.0001,CLOSE,COLORCYAN);DRAWLINE(TMP<-0.0001,HIGH,TMP<-0.0001,CLOSE,COLORRED);DRAWLINE(TMP<-0.00012、(TMP)<0.0001,LOW,ABS(TMP)<0.0001,OPEN,COLORWHITE);DRAWLINE(ABS(TMP)<0.0001,HIGH,ABS(TMP)<0.0001,OPEN,COLORWHITE);STICKLINE(TMP>0,OPEN,CLOSE,COLORCYAN,0);STICKLINE(TMP<=0,OPEN,CLOSE,COLORRED,1);VAR1:=HIGH>=REFX(HIGH,1)&&HIGH>=REFX(HIGH,2)&&HIGH=HHV(HIGH,3
3、);VAR2:=LOW<=REFX(LOW,1)&&LOW<=REFX(LOW,2)&&LOW=LLV(LOW,3);STICKLINE(VAR1,OPEN,CLOSE,COLORMAGENTA,0);STICKLINE(VAR2,OPEN,CLOSE,COLORGREEN,0);STICKLINE(CROSS(HIGH,REF(HIGH,BARSLAST(VAR1))),REF(HIGH,BARSLAST(VAR1)),1.002*REF(HIGH,BARSLAST(VAR1)),COLORWHITE
4、,0);STICKLINE(CROSS(REF(LOW,BARSLAST(VAR2)),LOW),REF(LOW,BARSLAST(VAR2)),0.998*REF(LOW,BARSLAST(VAR2)),COLORYELLOW,0);DRAWTEXT(VAR1,1.02*HIGH,'----');DRAWTEXT(VAR2,1.02*LOW,'----');DRAWTEXT(CROSS(HIGH,REF(HIGH,BARSLAST(VAR1))),1.004*REF(HIGH,BARSLAST(VAR
5、1)),'涨');DRAWTEXT(CROSS(REF(LOW,BARSLAST(VAR2)),LOW),1.004*REF(LOW,BARSLAST(VAR2)),'跌');文华财经用鳄鱼线指标(主图)var1:=(HIGH+LOW)/2;Lip:REF(SMA(var1,5,1),3),COLORGREEN;Tooth:REF(SMA(var1,8,1),5),COLORRED;Jaw:REF(SMA(var1,13,1),8),COLORBLUE;//{平衡线}P1:=REF(HIGH,1)>HI
6、GHANDREF(HIGH,1)>Jaw;BBUY:REF(REF(HIGH,1),BARSLAST(P1)),COLORWHITE;STICKLINE(CROSS(HIGH,BBUY)ANDLOW>BBUY,(HIGH+LOW)/2,(HIGH+LOW)/2,COLORWHITE,0);STICKLINE(CROSS(HIGH,BBUY)ANDLOW<=BBUY,BBUY,BBUY,COLORWHITE,0);P2:=REF(LOW,1)7、REF(LOW,1),BARSLAST(P2)),COLORMAGENTA;STICKLINE(CROSS(BSELL,LOW)ANDHIGH=BSELL,BSELL,BSELL,COLORMAGENTA,0);ho:=HIGH>REF(HIGH,1)ANDHIGH>REF(HIGH,2)ANDHIGH>=REFX(HIGH,1)ANDIF
8、ELSE(HIGH=REFX(HIGH,2),HIGH>REFX(HIGH,3),HIGH>REFX(HIGH,2));fxh:=CROSS(ho,0.9);hh:=REF(HIGH,BARSLAST(fxh));lo:=LOW[ ]