由于剛開始的時候就用顧比均線,已經習慣了,使用它。今天分享一下本人常用的變色顧比均線的代碼,裡面還包含了布林帶代碼和維加斯通道的代碼,三者配合一起用,效果比較好。下面這是效果圖。
不廢話,上代碼:
E3:=EMA(C,3);
E5:=EMA(C,5);
E8:=EMA(C,8);
E10:=EMA(C,10);
E12:=EMA(C,12);
E15:=EMA(C,15);
E30:=EMA(C,30);
E35:=EMA(C,35);
E40:=EMA(C,40);
E45:=EMA(C,45);
E50:=EMA(C,50);
E60:=EMA(C,60);
PARTLINE(E3,E3>REF(E3,1),colormagenta,E3<=REF(E3,1),colorgreen),E3;
PARTLINE(E5,E5>REF(E5,1),colormagenta,E5<=REF(E5,1),colorgreen),E5;
PARTLINE(E8,E8>REF(E8,1),colormagenta,E8<=REF(E8,1),colorgreen),E8;
PARTLINE(E10,E10>REF(E10,1),colormagenta,E10<=REF(E10,1),colorgreen),E10;
PARTLINE(E12,E12>REF(E12,1),colormagenta,E12<=REF(E12,1),colorgreen),E12;
PARTLINE(E15,E15>REF(E15,1),colormagenta,E15<=REF(E15,1),colorgreen),E15;
PARTLINE(E30,E30>REF(E30,1),colorred,E30<=REF(E30,1),coloryellow),E30;
PARTLINE(E35,E35>REF(E35,1),colorred,E35<=REF(E35,1),coloryellow),E35;
PARTLINE(E40,E40>REF(E40,1),colorred,E40<=REF(E40,1),coloryellow),E40;
PARTLINE(E45,E45>REF(E45,1),colorred,E45<=REF(E45,1),coloryellow),E45;
PARTLINE(E50,E50>REF(E50,1),colorred,E50<=REF(E50,1),coloryellow),E50;
PARTLINE(E60,E60>REF(E60,1),colorred,E60<=REF(E60,1),coloryellow),E60;
E144:EMA(C,144),LINETHICK2,coloryellow;
E169:EMA(C,169),LINETHICK2,COLORFF0080;
MID:=MA(C,20),colorlimagenta,DOTLINE;
UPPER:MID 2*STD(C,20),colorblue,DOTLINE;
LOWER:MID-2*STD(C,20),colorblue,DOTLINE;
,更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!