請老師幫忙!!
作者:文華財經 來源:cxh99.com 發布時間:2021年10月09日
-
咨詢內容:
?博易大師修改文華
T1:=1300101;
KA1:IF(CURRENTDATE<T1,EMA(CLOSE,3),0),POINTDOT,COLORFF00FF;
KA2:IF(CURRENTDATE<T1,EMA(CLOSE,5),0),POINTDOT,COLORFF00FF;?
KA3:IF(CURRENTDATE<T1,EMA(CLOSE,8),0),POINTDOT,COLORFF00FF;??KA4:IF(CURRENTDATE<T1,EMA(CLOSE,10),0),POINTDOT,COLORFF00FF;??KA5:IF(CURRENTDATE<T1,EMA(CLOSE,12),0),POINTDOT,COLORFF00FF;??KA6:IF(CURRENTDATE<T1,EMA(CLOSE,15),0),POINTDOT,COLORFF00FF;??KA7:IF(CURRENTDATE<T1,EMA(CLOSE,30),0),POINTDOT,COLORFF8000;??KA8:IF(CURRENTDATE<T1,EMA(CLOSE,35),0),POINTDOT,COLORFF8000;??KA9:IF(CURRENTDATE<T1,EMA(CLOSE,40),0),POINTDOT,COLORFF8000;??KA10:IF(CURRENTDATE<T1,EMA(CLOSE,45),0),POINTDOT,COLORFF8000;??KA11:IF(CURRENTDATE<T1,EMA(CLOSE,50),0),POINTDOT,COLORFF8000;??KA12:IF(CURRENTDATE<T1,EMA(CLOSE,60),0),POINTDOT,COLORFF8000;??KA13:IF(CURRENTDATE<T1,EMA(CLOSE,144),0),POINTDOT,COLOR00FFFF,LINETHICK2;??KA14:IF(CURRENTDATE<T1,EMA(CLOSE,169),0),POINTDOT,COLOR00FFFF,LINETHICK2;??KA15:=EMA(CLOSE,3),COLOR8000FF,LINETHICK3;
KA003:=MA(CLOSE,3);?KA007:=MA(CLOSE,7);?KA0014:=MA(CLOSE,14);?RED:=CROSS(C,KA14);?GREEN:=CROSS(KA14,C);?FLAG:=IF(BARSTATUS=1,0,IF(RED,1,IF(GREEN,-1,REF(FLAG,1))));?STICKLINE(FLAG>0,HIGH,MAX(C,O),0,1),COLORRED;?STICKLINE(FLAG>0,LOW,MIN(C,O),0,1),COLORRED;?STICKLINE(FLAG>0,C,O,4,1),COLORRED;?STICKLINE(FLAG<0,HIGH,MAX(C,O),0,0),COLORGREEN;?STICKLINE(FLAG<0,LOW,MIN(C,O),0,0),COLORGREEN;?STICKLINE(FLAG<0,C,O,4,0),COLORGREEN;?STICKLINE(FLAG=0,HIGH,MAX(C,O),0,0),COLORYELLOW;?STICKLINE(FLAG=0,LOW,MIN(C,O),0,0),COLORYELLOW;?STICKLINE(FLAG=0,C,O,4,0),COLORYELLOW;?
?MID:=MA(CLOSE,18),COLORMAGENTA;?TMP2:=STD(CLOSE,18);?TOP:=MID+2*TMP2,COLORBLUE;?BOTTOM:=MID-2*TMP2,COLORBLUE;?MA03:=MA(CLOSE,3),COLORWHITE,LINETHICK2;?MA013:=EMA(CLOSE,144),COLORRED;D:=EMA(CLOSE,144),LINETHICK4;
PARTLINE(D>REF(D,1),D),COLORRED,LINETHICK2;
PARTLINE(D<REF(D,1),D),COLOR00FF00,LINETHICK2;
KA014:=EMA(CLOSE,169),COLORRED;E:=EMA(CLOSE,169),LINETHICK4;
PARTLINE(E>REF(E,1),E),COLORRED,LINETHICK2;
PARTLINE(E<REF(E,1),E),COLOR00FF00,LINETHICK2;
DRAWTEXT(FLAG>0 AND CROSS(KA3,KA7),LOW*0.999,'',COLORYELLOW;DRAWTEXT(FLAG<0 AND CROSS(KA7,KA3),HIGH*1.001,'',COLORYELLOW;
KA121:EMA(CLOSE,3),POINTDOT,COLORFF00FF;?KA221:EMA(CLOSE,5),POINTDOT,COLORFF00FF;?KA321:EMA(CLOSE,8),POINTDOT,COLORFF00FF;
?
?來源:程序化99
-
文華技術人員:
不同軟件對函數處理機制略有不同
,變量不支持引用自身,因此部分指標不支持修改已經刪除,效果可能會略有差異,參考:
?T1:=1300101;
KA1:IF(CURRENTDATE<T1,EMA(CLOSE,3),0),POINTDOT,COLORFF00FF;
KA2:IF(CURRENTDATE<T1,EMA(CLOSE,5),0),POINTDOT,COLORFF00FF;?
KA3:IF(CURRENTDATE<T1,EMA(CLOSE,8),0),POINTDOT,COLORFF00FF;?
?
KA4:IF(CURRENTDATE<T1,EMA(CLOSE,10),0),POINTDOT,COLORFF00FF;?
?
KA5:IF(CURRENTDATE<T1,EMA(CLOSE,12),0),POINTDOT,COLORFF00FF;?
?
KA6:IF(CURRENTDATE<T1,EMA(CLOSE,15),0),POINTDOT,COLORFF00FF;?
?
KA7:IF(CURRENTDATE<T1,EMA(CLOSE,30),0),POINTDOT,COLORFF8000;?
?
KA8:IF(CURRENTDATE<T1,EMA(CLOSE,35),0),POINTDOT,COLORFF8000;?
?
KA9:IF(CURRENTDATE<T1,EMA(CLOSE,40),0),POINTDOT,COLORFF8000;?
?
KA10:IF(CURRENTDATE<T1,EMA(CLOSE,45),0),POINTDOT,COLORFF8000;?
?
KA11:IF(CURRENTDATE<T1,EMA(CLOSE,50),0),POINTDOT,COLORFF8000;?
?
KA12:IF(CURRENTDATE<T1,EMA(CLOSE,60),0),POINTDOT,COLORFF8000;?
?
KA13:IF(CURRENTDATE<T1,EMA(CLOSE,144),0),POINTDOT,COLOR00FFFF,LINETHICK2;?
?
KA14:IF(CURRENTDATE<T1,EMA(CLOSE,169),0),POINTDOT,COLOR00FFFF,LINETHICK2;?
?
KA15:=EMA(CLOSE,3),COLOR8000FF,LINETHICK3;
KA003:=MA(CLOSE,3);
?
KA007:=MA(CLOSE,7);
?
KA0014:=MA(CLOSE,14);
?
RED:=CROSS(C,KA14);
?
GREEN:=CROSS(KA14,C);
?
?
MID:=MA(CLOSE,18),COLORMAGENTA;
?
TMP2:=STD(CLOSE,18);
?
TOP:=MID+2*TMP2,COLORBLUE;
?
BOTTOM:=MID-2*TMP2,COLORBLUE;
?
MA03:=MA(CLOSE,3),COLORWHITE,LINETHICK2;
?
MA013:=EMA(CLOSE,144),COLORRED;
D:=EMA(CLOSE,144),LINETHICK4;
PARTLINE1(D>REF(D,1),D),COLORRED,LINETHICK2;
PARTLINE1(D<REF(D,1),D),COLOR00FF00,LINETHICK2;
KA014:=EMA(CLOSE,169),COLORRED;
E:=EMA(CLOSE,169),LINETHICK4;
PARTLINE1(E>REF(E,1),E),COLORRED,LINETHICK2;
PARTLINE1(E<REF(E,1),E),COLOR00FF00,LINETHICK2;