MACD背离买卖 神奇数字趋势【指标公式】(含选股)
第一部分 副图公式 手机/电脑G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
CAIH1:=1;
DIF:IF(CAIH1=1,MACD.DIF,0);
DEA:IF(CAIH1=1,MACD.DEA,0);
DRAWTEXT_FIX(CAIH1=0,0,0.01,0,27);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(REF(DIF,1)REF(DIF,1) AND DIF<0 AND DIF
CAIH2:=BARSLAST(REF(MACD,1)0);
CAIH3:=LLVBARS(MACD,CAIH2+20);
CAIH4:=IF(CAIH3>CAIH2,REF(MACD,CAIH3),0);
CAIH5:=MACDCAIH4 AND G2=LLV(G2,CAIH2+20) AND CAIH4REF(MACD,1) AND REF(DIF,CAIH3)<0 AND MACDCAIH2,REF(MACD,CAIH7),0);
CAIH9:=MACD>0 AND MACD0;
CAIH10:=REF(CAIH9,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,CAIH7)>0;
DRAWICON(CAIH10,MACD*1.2,15);
CAIH11:=G1/MA(G1,40)*100<78;
CAIH12:=G1/Ma(G1,60)*100G2*1.051;
CAIH14:=CAIH13 AND COUNT(CAIH13,5)>1;
CAIH15:=IF(CAIH14 AND (CAIH11 OR CAIH12),2,0);
CAIH16:=G1/REF(G1,25)<=1.1;
CAIH17:=SMA(MAX(G1-REF(G1,2),0),7,1)/SMA(ABS(G1-REF(G1,2)),7,1)*100REF(CAIH19,1) AND REF(CAIH19,1)
CAIH22:=100-100*(HHV(G4,5*8)-G1)/(HHV(G4,5*8)-LLV(G2,5*8));
CAIH23:=MA(G1,5);
CAIH24:=IF(G1>SAR(10,2,20),1,0);
CAIH25:=IF(G1
CAIH26:=ATAN((CAIH23/REF(CAIH23,1)-1)*100)*180/3.1416;
CAIH27:=IF(CAIH26>30,1,0);
CAIH28:=IF(CAIH26<(-30),(-1),0);
CAIH29:=CAIH24+CAIH27+CAIH25+CAIH28;
IF(CAIH29<(-1) OR CAIH2274.989998 OR CAIH29>0,DIF,DRAWNULL),COLORRED,LINETHICK2;
CAIH30:=MACD.MACD;
CAIH31:=BARSLASTCOUNT(CAIH30>0);
CAIH32:=MOD(CAIH31,2)*CAIH31;
CAIH33:=BARSLASTCOUNT(CAIH300,CAIH30,CAIH32);
DRAWNUMBER(CAIH34>0,CAIH30,CAIH34);
第二部分 选股公式
{选股公式一:红钻石图标}
CAIH1:=1;
DIF:=IF(CAIH1=1,MACD.DIF,0);
DEA:=IF(CAIH1=1,MACD.DEA,0);
MACD:=(DIF-DEA)*2;
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
CAIH2:=BARSLAST(REF(MACD,1)0);
CAIH3:=LLVBARS(MACD,CAIH2+20);
CAIH4:=IF(CAIH3>CAIH2,REF(MACD,CAIH3),0);
CAIH5:=MACDCAIH4 AND G2=LLV(G2,CAIH2+20) AND CAIH4REF(MACD,1) AND REF(DIF,CAIH3)<0 AND MACD<0;
红钻石图标:CAIH6;
{选股公式二:红箭头图标}
G1:=CLOSE;G2:=LOW;G3:=OPEN;G4:=HIGH;
CAIH1:=1;
DIF:=IF(CAIH1=1,MACD.DIF,0);
DEA:=IF(CAIH1=1,MACD.DEA,0);
MACD:=(DIF-DEA)*2;
CAIH2:=BARSLAST(REF(MACD,1)0);
CAIH3:=LLVBARS(MACD,CAIH2+20);
CAIH4:=IF(CAIH3>CAIH2,REF(MACD,CAIH3),0);
红箭头图标:REF(DIF,1)REF(DIF,1) AND DIF<0 AND DIF
真是 收益 匪浅 楼主好人一个! 一切尽在不言中,谢谢! 已收藏! 看帖回帖是美德!:lol 已收藏! 好东西,收了
页:
[1]