小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

【通達信】波段決策主圖指標(biāo)公式 明陽程序化

 yzy666 2018-12-13
  【通達信】波段決策主圖指標(biāo)公式

公式源碼:

  1. M1:=5;
  2. M2:=0;
  3. M3:=20;
  4. M4:=60;
  5. M5:=0;
  6. 財務(wù)數(shù)據(jù):=1;
  7. BS:=1;
  8. MA1:MA(CLOSE,M1)COLORWHITE,LINETHICK1;
  9. MA2:MA(CLOSE,M2)COLORYELLOW,LINETHICK1;
  10. MA3:MA(CLOSE,M3)COLORMAGENTA,LINETHICK2;
  11. MA4:MA(CLOSE,M4)COLORGREEN,LINETHICK2;
  12. MA5:MA(CLOSE,M5)COLORCYAN,LINETHICK1;
  13. CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLORMAGENTA;
  14. 止贏:1.05*CC,COLOR8000FF;
  15. 止損:0.97*CC,COLOR00F000;
  16. V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
  17. V2:=(1-7/100)*(DMA(CLOSE,V1));
  18. V3:=(1+7/100)*(DMA(CLOSE,V1));
  19. V5:=MA((LOW+HIGH+CLOSE)/3,5);
  20. 支撐:REFDATE(V2,DATE),DOTLINE,LINETHICK1,COLORFF0080;
  21. 阻力:REFDATE(V3,DATE),DOTLINE,LINETHICK1,COLOR676767;
  22. AAA:=CONST(HHV(H*0.5,90));
  23. AA:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;
  24. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.8,0.05,1,'今日保護價'),LINETHICK2,COLOR00FFFF;
  25. DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.84,0.05,1,AA);
  26. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.86,0.05,1,'元');
  27. PT:=REF(H,1)-REF(L,1);
  28. CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;
  29. AH:=CDP+PT;
  30. AL:=CDP-PT;
  31. NH:=CDP*2-REF(L,1);
  32. NL:=CDP*2-REF(H,1);
  33. 強:IF(AH>REF(C,1)*1.1,REF(C,1)*1.1,AH)NODRAW;
  34. 阻:IF(NH>強,(強-CDP)*0.618+CDP,NH)NODRAW,COLORBLUE;
  35. M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);
  36. 撐:IF(NL<M,CDP-(CDP-M)*0.618,NL)NODRAW;
  37. 底:IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL)NODRAW;
  38. 總股本:=STRCAT(STRCAT('總股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'億')*財務(wù)數(shù)據(jù);
  39. 流通盤:=STRCAT(STRCAT(' 流通盤: ',CON2STR(CAPITAL/1000000,2)),'億')*財務(wù)數(shù)據(jù);
  40. 全流通:=STRCAT(' 全流通: ',CON2STR((CAPITAL/1000000)/(TOTALCAPITAL/1000000),2))*財務(wù)數(shù)據(jù);
  41. 市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'億')*財務(wù)數(shù)據(jù);
  42. 上市天數(shù):=STRCAT(' 上市天數(shù): ',CON2STR(FINANCE(42),0))*財務(wù)數(shù)據(jù);
  43. 股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(STRCAT(總股本,流通盤),全流通),市值),上市天數(shù)))*財務(wù)數(shù)據(jù);
  44. 市盈率:=STRCAT('市盈率: ',CON2STR(C/FINANCE(33),2))*財務(wù)數(shù)據(jù);
  45. 市銷率:=STRCAT(' 市銷率: ',CON2STR(C/(FINANCE(20)/FINANCE(1)),2))*財務(wù)數(shù)據(jù);
  46. 市凈率:=STRCAT(' 市凈率: ',CON2STR(C/FINANCE(34),2))*財務(wù)數(shù)據(jù);
  47. 凈資收益率:=STRCAT(' 凈資收益率: ',CON2STR(FINANCE(33)/FINANCE(34)*100,2))*財務(wù)數(shù)據(jù);
  48. 毛利率:=STRCAT(' 毛利率: ',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2))*財務(wù)數(shù)據(jù);
  49. 凈利潤率:=STRCAT(' 凈利潤率 ',CON2STR(FINANCE(30)/FINANCE(20)*100,2))*財務(wù)數(shù)據(jù);
  50. 主營利潤率:=STRCAT(' 主營利潤率 ',CON2STR(FINANCE(23)/FINANCE(20)*100,2))*財務(wù)數(shù)據(jù);
  51. 當(dāng)前業(yè)績:=STRCAT('當(dāng)前業(yè)績: ',STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(市盈率,市銷率),市凈率),凈資收益率),毛利率),凈利潤率),主營利潤率))*財務(wù)數(shù)據(jù);
  52. X1:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
  53. X2:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;
  54. X3:=FINANCE(23)/FINANCE(10)*3.3;
  55. X4:=FINANCE(19)/FINANCE(15)*0.6;
  56. X5:=FINANCE(20)/FINANCE(15)*0.999;
  57. Z值:=X1+X2+X3+X4+X5;
  58. 預(yù)警:=IF(Z值<1.2,'重警',IF(Z值>=1.2 AND Z值<2.6,'輕警','無警'))*財務(wù)數(shù)據(jù);
  59. 財務(wù)預(yù)警:=STRCAT('財務(wù)預(yù)警: ',STRCAT(預(yù)警,STRCAT('-Z值: ',CON2STR(Z值,3))))*財務(wù)數(shù)據(jù);
  60. 優(yōu)質(zhì)資產(chǎn)率:=STRCAT(' 優(yōu)質(zhì)資產(chǎn)率: ',CON2STR((FINANCE(19)-FINANCE(22)-FINANCE(27))/FINANCE(19),2))*財務(wù)數(shù)據(jù);
  61. 現(xiàn)金負(fù)債比:=STRCAT(' 現(xiàn)金負(fù)債比: ',CON2STR(FINANCE(25)/FINANCE(15),3))*財務(wù)數(shù)據(jù);
  62. 財務(wù)系數(shù):=STRCAT('風(fēng)險系數(shù): ',STRCAT(STRCAT(財務(wù)預(yù)警,優(yōu)質(zhì)資產(chǎn)率),現(xiàn)金負(fù)債比))*財務(wù)數(shù)據(jù);
  63. DRAWTEXT_FIX(ISLASTBAR,0.00,0.12,0,股本市值),COLORGREEN;
  64. DRAWTEXT_FIX(ISLASTBAR,0.00,0.18,0,當(dāng)前業(yè)績),COLORGREEN;
  65. DRAWTEXT_FIX(ISLASTBAR,0.00,0.24,0,財務(wù)系數(shù)),COLORGREEN;
  66. DRAWTEXT_FIX(1,0.00,0,0,'所屬地區(qū):')COLOR00FFFF;
  67. DRAWTEXT_FIX(1,0.07,0,0,DYBLOCK)COLOR00FFFF;
  68. DRAWTEXT_FIX(1,0.00,0.06,0,'所屬行業(yè):')COLORFF00FF;
  69. DRAWTEXT_FIX(1,0.07,0.06,0,HYBLOCK)COLORFF00FF;
  70. 今日保護價:(REF(C,2)+REF(C,1)+O)/3 ,COLORCC3299,NODRAW;
  71. 頂點:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,HHV(H, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORRED,DOTLINE;
  72. 低點:IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L, BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL),COLORMAGENTA,DOTLINE;
  73. DRAWTEXT(ISLASTBAR,頂點,'頂點'),COLORRED;
  74. DRAWTEXT(ISLASTBAR,低點,'低點'),COLORMAGENTA;
  75. MA7:=MA(CLOSE,BS);
  76. 轉(zhuǎn)強:=(6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+2+1);
  77. 轉(zhuǎn)弱:=(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2+1);
  78. BB2:=IF(C>REF(轉(zhuǎn)強,1),1,IF(C<REF(轉(zhuǎn)弱,1),-1,0));
  79. DD2:=BARSLAST(NOT(BB2=0));
  80. B:=IF(BB2=0,REF(BB2,DD2),BB2);
  81. 中短:=IF(B=-1,MA(HIGH,6),MA(LOW,6));
  82. STICKLINE(MA7<中短,LOW,HIGH,0,1),COLORCYAN;
  83. STICKLINE(MA7>中短,LOW,HIGH,0,1),COLORRED;
  84. STICKLINE(((OPEN>CLOSE)AND(MA7<中短)),(CLOSE-0.003),OPEN,3.1,0),COLORLIBLUE;
  85. STICKLINE(((OPEN<CLOSE)AND(MA7<中短)),CLOSE,OPEN,3.1,1),COLORCYAN;
  86. STICKLINE(((OPEN>CLOSE)AND(MA7>中短)),OPEN,(CLOSE-0.003),3.1,0),COLORRED;
  87. STICKLINE(((OPEN<CLOSE)AND(MA7>中短)),OPEN,CLOSE,3.1,1),COLORRED;
  88. B點:CROSS(MA7,中短),COLORRED,NODRAW;
  89. 持股:MA7>中短,COLORRED,NODRAW;
  90. DRAWICON(CROSS(MA7,中短),L,7);
  91. DRAWICON(CROSS(中短,MA7),H,8);
  92. 超B:=L2_AMO(0,2)/10000.0;
  93. 大B:=L2_AMO(1,2)/10000.0;
  94. 中B:=L2_AMO(2,2)/10000.0;
  95. 小B:=L2_AMO(3,2)/10000.0;
  96. 超S:=L2_AMO(0,3)/10000.0;
  97. 大S:=L2_AMO(1,3)/10000.0;
  98. 中S:=L2_AMO(2,3)/10000.0;
  99. 小S:=L2_AMO(3,3)/10000.0;
  100. TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);
  101. 大宗進:=(超B)+(大B),NODRAW;
  102. 大宗出:=(超S)+(大S),NODRAW;
  103. 非大宗進:=(中B)+(小B),NODRAW;
  104. 非大宗出:=(中S)+(小S),NODRAW;
  105. DAZHIV:=CONST(MAX(ABS(大宗進),MAX(ABS(大宗出),MAX(ABS(非大宗進),ABS(非大宗出))))),NODRAW;
  106. DRAWRECTREL(0,CONST(950-(ABS(大宗進)*250/DAZHIV))-20,30,950,IF(CONST(大宗進>0),RGB(255,0,0),RGB(23,125,255)));
  107. DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV))-20,62,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));
  108. DRAWRECTREL(92,CONST(950-(ABS(非大宗進)*250/DAZHIV))-20,122,950,IF(CONST(非大宗進>0),RGB(255,0,0),RGB(23,125,255)));
  109. DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV))-20,154,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));
  110. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力進出'),COLORMAGENTA;
  111. DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散戶進出'),COLORCYAN;
  112. DRAWTEXT_FIX(C>O,0.85,0.001,0,'明陽程序化CXH110.COM'),COLORFF7F00;


轉(zhuǎn)載請注明原文鏈接:【通達信】波段決策主圖指標(biāo)公式

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多