520量化编程

标题: 通达信——决策生命线副图源码 [打印本页]

作者: 520量化编程    时间: 2024-11-4 23:40
标题: 通达信——决策生命线副图源码
[attach]4682[/attach]


  1. VAR2:=LLV(LOW,10);
  2. VAR3:=HHV(HIGH,25);
  3. 小心: 3.2,COLORYELLOW;
  4. 风险: 3.5,COLORLIBLUE;
  5. 动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
  6. STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),0,0),COLORLIRED;
  7. STICKLINE(动力线<=REF(动力线,1) ,动力线 ,REF(动力线,1),0,0),COLORLIGREEN;
  8. 底部:0.2,COLORC6C600;
  9. 关注:0.5,COLORFF75FF;
  10. DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,3);
  11. DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,3);
  12. 强弱分界:1.75,COLORRED,DOTLINE;
  13. 趋势:MA(动力线,3);
  14. IF(趋势>REF(趋势,1),趋势,DRAWNULL),LINETHICK1,COLORRED;
  15. IF(趋势<REF(趋势,1),趋势,DRAWNULL),LINETHICK1,COLORLIBLUE;
  16. 出击:IF((趋势>REF(趋势,1)) AND (REF(趋势,1)<REF(趋势,2)) AND (趋势<0.5),0.3,0);
  17. AW:=CROSS(趋势,0.5);
  18. J值金叉:COUNT(AW,20)>=2 AND KDJ.J<60 AND AW;
复制代码








欢迎光临 520量化编程 (https://520lhjy.com/) Powered by Discuz! X3.4