作业帮 > 综合 > 作业

我想把两个附图公式和 MA2六条均线组合成一个指标!

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 01:36:53
我想把两个附图公式和 MA2六条均线组合成一个指标!
BT附图
N1:=5;N2:=10;
STICKLINE(C>0,0,10,15,0),COLOR781816;
LC:=REF(CLOSE,1);
RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF00FF,LINETHICK1;
RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLOR00FFFF;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR250 AND COST(85)0,控盘,0),COLORFF00FF,NODRAW;
STICKLINE(控盘0,控盘,0,1,0),COLOR00FF00;
主力出货:IF(控盘0,控盘,0),COLOR00FF00,NODRAW;
D:MA(J,3),COLORGREEN,LINETHICK1;
K:MA(J,1),COLORCYAN,LINETHICK1;
IF(D>REF(D,1),D,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(J>REF(J,1),J,DRAWNULL),COLORRED,LINETHICK2;
把高度控盘的时候K线变实心粉色 然后把BT上面的买卖点在K线上显示!让MA均线简洁明了!
我上面写错了!应该是有庄控盘>0 和高度控盘>0的时候K线画实心粉色!
我想把两个附图公式和 MA2六条均线组合成一个指标!
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
VAR11:=EMA(EMA(C,9),9);
控盘:=(VAR11-REF(VAR11,1))/REF(VAR11,1)*1000;
VAR22:=100*WINNER(C*0.95);
STICKLINE(控盘>REF(控盘,1) AND 控盘>0,O,C,1.5,0),COLORFF00FF;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
M5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS
(MA13,M5))+1),H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS
(M5,MA13))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS
(M5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS
(MA13,M5))+1),0);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2
再问: 哈哈 ! 真感谢你!但是还得厚着脸皮请你帮忙!应该是有庄控盘和高度控盘同时>0的时候K线画实心粉色! 真有点不好意思了!回头给你刷分!
再答: MA1:MA(CLOSE,M1); MA2:MA(CLOSE,M2); MA3:MA(CLOSE,M3); MA4:MA(CLOSE,M4); MA5:MA(CLOSE,M5); MA6:MA(CLOSE,M6); VAR11:=EMA(EMA(C,9),9); 控盘:=(VAR11-REF(VAR11,1))/REF(VAR11,1)*1000; VAR22:=100*WINNER(C*0.95); STICKLINE(VAR22>50 AND COST(85)0,O,C,1.5,0),COLORFF00FF; VAR1:=C-REF(C,1); VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6); M5:=EMA(C,5); MA13:=EMA(C,13); UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS (MA13,M5))+1),H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS (M5,MA13))+1),0); DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS (M5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS (MA13,M5))+1),0); BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2REF(控盘,1) AND 控盘>0,控盘,0); VAR2:=100*WINNER(CLOSE*0.95); BB:=IF(VAR2>50 AND COST(85)0,控盘,0); XG:AA AND BB;
再答: MA1:MA(CLOSE,M1); MA2:MA(CLOSE,M2); MA3:MA(CLOSE,M3); MA4:MA(CLOSE,M4); MA5:MA(CLOSE,M5); MA6:MA(CLOSE,M6); VAR11:=EMA(EMA(CLOSE,9),9); 控盘:=(VAR11-REF(VAR11,1))/REF(VAR11,1)*1000; AA:=IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0); VAR22:=100*WINNER(CLOSE*0.95); BB:=IF(VAR22>50 AND COST(85)0,控盘,0); STICKLINE(AA AND BB,O,C,1.5,0),COLORFF00FF; VAR1:=C-REF(C,1); VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6); M5:=EMA(C,5); MA13:=EMA(C,13); UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS (MA13,M5))+1),H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS (M5,MA13))+1),0); DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(M5,MA13))+1),HHV(H,BARSLAST(CROSS (M5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,M5))+1),LLV(L,BARSLAST(CROSS (MA13,M5))+1),0); BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2