通达信简单、实用,操作性强的一套公式(有原码及附图及说明)

[复制链接]
查看232 | 回复0 | 2022-7-24 09:03:07 | 显示全部楼层 |阅读模式

 通达信简单、实用,操作性强的一套公式(有原码及附图及说明)

复制内容到剪贴板
  1. 一主图   
  2. 名称:太子加仓   
  3.   
  4. MA(C,3),LINETHICK2;   
  5. MA(C,9),LINETHICK2,COLORYELLOW;   
  6. MA(C,21),LINETHICK2,COLORRED;   
  7. IF(MA(C,3)<REF(MA(C,3),1),MA(C,3),DRAWNULL),LINETHICK2,COLORGRAY;   
  8. IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK2,COLORBLUE;   
  9. IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK2,COLORGREEN;   
  10. 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)));   
  11. DRAWTEXT(VAR1,L*0.98,'买'),COLORYELLOW;   
  12. DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L*0.98,'加'),COLORMAGENTA;   

 

复制内容到剪贴板
  1. 二、副 图   
  2. 名称:新MACD   
  3. 红柱:IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),   
  4. STICK,COLORRED;   
  5. 绿柱:IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL),   
  6. STICK,COLORYELLOW;   
  7. _抄底:ABS((CROSS("MACD.DIF","MACD.DEA")   
  8. &"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;   
  9. _DIF:"MACD.DIF",COLORWHITE;   
  10. _DEA:"MACD.DEA",COLORYELLOW;   
  11. __强度:IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK2;   
  12. _强度:IF(_DEA<_DIF,_DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;   
  13. DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW;   
  14. DRAWICON(ABS(_抄底)>0,_抄底*1.10,4);   
  15. DRAWICON(CROSS(_DIF,_DEA),_DEA,1);   
  16. DRAWICON(CROSS(_DEA,_DIF),_DEA,2);   

3B81412274.png

3B81412274.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则