当前位置:→ 公式网 > 通达信公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是小散看主图做股票 源码(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. {N=1,100,3; M1=1,100,20; M2=1,100,20}   
  2.   
  3. MID:((1+M1/100)*MA(CLOSE,N)+(1-M2/100)*MA(CLOSE,N))/2,COLORFFFFFF;   
  4. RSV:=((HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)))*(100);   
  5. LWR1:=SMA(RSV,3,1);   
  6. LWR2:=SMA(LWR1,5,1);   
  7. STICKLINE((LWR1>=LWR2),HIGH,LOW,0.05,0),COLORFFDDC0;   
  8. STICKLINE((LWR1>=LWR2),OPEN,CLOSE,2,0),COLORGREEN;   
  9. STICKLINE((LWR1<LWR2),HIGH,LOW,0.05,0),COLOR0000FF;   
  10. STICKLINE((LWR1<LWR2),OPEN,CLOSE,2,1),COLOR0000FF;   
  11. VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);   
  12. VAR2AA:=VOL;   
  13. 上升:(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8)),COLORRED;   
  14. 下降:LLV(上升,8),COLOR00FF00;   
  15. VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);   
  16. VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);   
  17. DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.94999998),'大胆搏 '),COLOR00FFFF;   
  18. DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★'),COLOR00FFFF;   
  19. A1AA:=9;   
  20. A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);   
  21. DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心'),COLORFFFFFF;   
  22. VAR1:=REF(CLOSE,1);   
  23. VAR2:=MA(CLOSE,5);   
  24. VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;   
  25. VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;   
  26. VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100;   
  27. VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5))));   
  28. VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3))));   
  29. VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);   
  30. VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);   
  31. VARA:=IF(VAR3<VAR8 AND REF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));   
  32. VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));   
  33. VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));   
  34. VARD:=IF(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5)));   
  35. VARE:=IF(VAR3>VAR9 AND REF(VAR3,1)<=VAR9,LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 AND REF(VAR3,1)>VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 AND REF(VAR3,1)>VAR9)   
  36. -1),BARSLAST(VAR3>VAR9 AND REF(VAR3,1))));   
  37. VARF:=IF(LOW<VARE,HIGH,REF(HIGH,BARSLAST(LOW<VARE)));   
  38. VAR10:=IF(LOW<VARE,VAR3,REF(VAR3,BARSLAST(LOW<VARE)));   
  39. VAR11:=IF(LOW<VARF AND VAR3>VAR10 AND VAR3>VAR5,LOW,REF(LOW,BARSLAST(LOW<VARF AND VAR3>VAR10 AND VAR3>VAR5)));  



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识