通达信自带的分时买卖力道公式源码

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

 

C/C++ Code复制内容到剪贴板
  1. VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*200*10;   
  2. 买卖力道: SMA(VAR2,5,1),COLORGREEN;   
  3. 卖出区: 1500,COLORYELLOW;   
  4. VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));   
  5. VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),VOL/2)));   
  6. VAR5:=AMOUNT/(100*VOL);   
  7. VAR6:=MA(VAR5,40);   
  8. VAR7:=100*(CLOSE-VAR6)/VAR6;   
  9. 底部追击: IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,300,200),COLORGREEN;   
  10. STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,1200,200,10,0) , COLORGREEN;   
  11. 买进: IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.05,300,200),COLORMAGENTA;   
  12. STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.05,800,200,6,1),COLORMAGENTA;   
  13. VAR8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;   
  14. VAR9:=SMA(VAR8,3,1);   
  15. VARA:=SMA(VAR9,3,1);   
  16. D: SMA(VARA,5,1)*20, COLORCYAN;  

 

回复

使用道具 举报

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

本版积分规则