《文华财经指标公式源码 量动红绿量价多空》由会员分享,可在线阅读,更多相关《文华财经指标公式源码 量动红绿量价多空(3页珍藏版)》请在金锄头文库上搜索。
1、N:=5;/自行定义PRN:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1),ABS(LOW-REF(CLOSE,1),N,1);HDN:=HIGH-REF(HIGH,1);LDN:=REF(LOW,1)-LOW;DMPN:=SMA(IF(HDN0 AND HDNLDN,HDN,0),N,1);DMMN:=SMA(IF(LDN0 AND LDNHDN,LDN,0),N,1);TR : MAX(MAX(HIGH-LOW),ABS(REF(CLOSE,1)-HIGH),ABS(REF(CLOSE,1)-LOW);PDIN:=DMPN*100/TR;MDIN:=
2、DMMN*100/TR;ADX:=SMA(ABS(MDIN-PDIN)/(MDIN+PDIN)*100,N,1);熊力:=DMMN*100/TR;RRYUE:=DMMN*100/PRN;BJH:=RRYUE0 AND HDLD,HD,0),14);DMM:=EMA(IF(LD0 AND LDHD,LD,0),14);DI:=DMM*100/TR;PY:=COUNT(CLOSEREF(CLOSE,1),12)/12*100;VOLU:=VOL/PY;FGBJ:MA(VOLU,60)*12/10000;VOLUME:VOL/DI/10000,VOLSTICK;量动:IF(VOLUMEFGBJ,VO
3、LUME*1.1,0);量动绿红:0,NODRAW,COLORGREEN;上升:IF(FGBJ=REF(FGBJ,1),FGBJ,NULL),COLORRED,LINETHICK2;下降:IF(FGBJFGBJ AND VOLUMEREF(VOLUME,1)*5;XC1:=COUNT(PPQ,20);XC2:=VOLUMEREF(VOLUME,1)*0.3 OR VOLUMEREF(VOLUME,2)*0.2 AND XC1;XC22:=VOLUMEREF(VOLUME,1)*5 OR VOLUMEREF(VOLUME,2)*5 AND VOLUMEFGBJ AND BJH;XC4:=VOLU
4、MEREF(VOLUME,1)*10 OR VOLUMEREF(VOLUME,2)*10 AND VOLUMEFGBJ AND BJH;XC5:=VOLUMEREF(VOLUME,1)*20 OR VOLUMEREF(VOLUME,2)*20 AND VOLUMEFGBJ;STICKLINE1(XC3,0,VOLUME,3,0),COLORMAGENTA;STICKLINE1(XC4,0,VOLUME,3,0),COLORYELLOW;STICKLINE1(XC5,0,VOLUME,3,0),COLORGRAY;STICKLINE1(XC2,0,VOLUME,3,0),COLORGREEN;STICKLINE1(XC22,0,VOLUME,3,0),COLORWHITE;DRAWICON(XC3,VOLUME+1,34);