太子加倉-簡單、實用,操作性強的一套公式(有原碼及附圖及說明)
一主圖 名稱:太子加倉 MA(C,3),LINETHICK2; MA(C,9),LINETHICK2,COLORYELLOW; MA(C,21),LINETHICK2,COLORRED; IF(MA(C,3)<REF(MA(C,3),1),MA(C,3),DRAWNULL),LINETHICK2,COLORGRAY; IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK2,COLORBLUE; IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK2,COLORGREEN; VAR1:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4)<0) AND ((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)>REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),3))); DRAWTEXT(VAR1,L*0.98,'買'),COLORYELLOW; DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L*0.98,'加'),COLORMAGENTA; 二、副 圖 名稱:新MACD 紅柱:IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL), STICK,COLORRED; 綠柱:IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL), STICK,COLORYELLOW; _抄底:ABS((CROSS("MACD.DIF","MACD.DEA") &&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA; _DIF:"MACD.DIF",COLORWHITE; _DEA:"MACD.DEA",COLORYELLOW; __強度:IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK2; _強度:IF(_DEA<_DIF,_DEA,DRAWNULL),COLORMAGENTA,LINETHICK2; DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW; DRAWICON(ABS(_抄底)>0,_抄底*1.10,4); DRAWICON(CROSS(_DIF,_DEA),_DEA,1); DRAWICON(CROSS(_DEA,_DIF),_DEA,2); 三、附圖使用說明 關(guān)鍵字:公式,說明,實用,簡單,DCLOSE, |
|