当前位置:→ 股海网飞狐公式 → 正文
  • 飞狐非常经典的江恩轮中轮主图指标公式

  • 相关简介:飞狐非常经典的江恩轮中轮主图指标公式 源码 INPUT:最近天(30,1,360);当前月:=FRACPART(ROUND(当前日期/100)/100)*100; 月:=MONTH;日:=DAY; N:=if(sysparam(1)=datacount,最近天,datacount-sysparam(1)+1); HH:=HHV(HIGH,N); LL:=LLV(LOW,N); VN:=N; IF VNDATACOUNT THEN VN=DATACOUNT+1; FOR I=DATACOUNT D

  • 文章来源:股海网作者:股海网发布时间:2016-01-12浏览次数:下载次数:0

飞狐非常经典的江恩轮中轮主图指标公式

源码

INPUT:最近天(30,1,360);当前月:=FRACPART(ROUND(当前日期/100)/100)*100;
月:=MONTH;日:=DAY;
 N:=if(sysparam(1)=datacount,最近天,datacount-sysparam(1)+1);
 HH:=HHV(HIGH,N);
 LL:=LLV(LOW,N);
 VN:=N;
 IF VN>DATACOUNT THEN
 VN=DATACOUNT+1;
 FOR I=DATACOUNT DOWNTO DATACOUNT-VN+1 DO BEGIN
     HH[I]:=HH[DATACOUNT];
     LL[I]:=LL[DATACOUNT];
 END;
 TMP:=SETLBOUND(hh,DATACOUNT-VN+1);
 TMP:=SETLBOUND(ll,DATACOUNT-VN+1);
 KKH:=BARSLAST(H=HH);
 KKL:=BARSLAST(L=LL);
 N低日:=STRTONUM(NUMTOSTR(REF(DATE,KKL),0));
 N高日:=STRTONUM(NUMTOSTR(REF(DATE,KKH),0));
多空:=IF(N低日>N高日,2,1),LINETHICK0;
 DATE1:=IF(多空=1,N低日,N高日);
LLOW:=ref(LOW,BARSLAST(DATE1=DATE));
 H1:=STRTONUM(NUMTOSTR(hh,2));
 L1:=STRTONUM(NUMTOSTR(LLOW,2));
 VERTLINE(DATE=DATE1),COLORFFAAAA,LINETHICK1;
 {DRAWTEXT(DATE=DATE1,SYSPARAM(4)*0.95,'起\n \n\n测\n \n点'),COLORFFFFFF;}

IF 多空=1 THEN BEGIN
 PARTLINE(DATE>N低日,L1),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.042),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.083),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N低日,L1*1.125),COLORMAGENTA;
 PARTLINE(DATE>N低日,L1*1.167),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.208),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N低日,L1*1.25),COLORMAGENTA;
 PARTLINE(DATE>N低日,L1*1.292),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N低日,L1*1.33),COLORMAGENTA;
 PARTLINE(DATE>N低日,L1*1.375),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.417),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.458),COLORFFFF99,LINEDOT;
     PARTLINE(DATE>N低日,L1*1.5),COLORMAGENTA;
 PARTLINE(DATE>N低日,L1*1.542),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.583),COLORFFFF99,LINEDOT;
     PARTLINE(DATE>N低日,L1*1.625),COLORMAGENTA;
 PARTLINE(DATE>N低日,L1*1.667),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.708),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N低日,L1*1.75),COLORMAGENTA;
 PARTLINE(DATE>N低日,L1*1.792),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.833),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N低日,L1*1.875),COLORMAGENTA;
 PARTLINE(DATE>N低日,L1*1.917),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N低日,L1*1.958),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N低日,L1*2),COLORMAGENTA;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1+0.002,NUMTOSTR(L1,2)+'     0             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.042+0.002,NUMTOSTR(L1*1.042,2)+'    15             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.083+0.002,NUMTOSTR(L1*1.083,2)+'    30             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.125+0.002,NUMTOSTR(L1*1.125,2)+'    45             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.167+0.002,NUMTOSTR(L1*1.167,2)+'    60             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.208+0.002,NUMTOSTR(L1*1.208,2)+'    75             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.25+0.002,NUMTOSTR(L1*1.25,2)+'    90             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.292+0.002,NUMTOSTR(L1*1.292,2)+'   105             '),COLORWHITE,ALIGN2;   
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.33+0.002,NUMTOSTR(L1*1.33,2)+'   120             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.375+0.002,NUMTOSTR(L1*1.375,2)+'   135             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.417+0.002,NUMTOSTR(L1*1.417,2)+'   150             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.458+0.002,NUMTOSTR(L1*1.458,2)+'   165             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.5+0.002,NUMTOSTR(L1*1.5,2)+'   180             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.542+0.002,NUMTOSTR(L1*1.542,2)+'   195             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.583+0.002,NUMTOSTR(L1*1.583,2)+'   210             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.625+0.002,NUMTOSTR(L1*1.625,2)+'   225             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.667+0.002,NUMTOSTR(L1*1.667,2)+'   240             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.708+0.002,NUMTOSTR(L1*1.708,2)+'   255             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.75+0.002,NUMTOSTR(L1*1.75,2)+'   270             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.792+0.002,NUMTOSTR(L1*1.792,2)+'   285             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.833+0.002,NUMTOSTR(L1*1.833,2)+'   290             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.875+0.002,NUMTOSTR(L1*1.875,2)+'   315             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.917+0.002,NUMTOSTR(L1*1.917,2)+'   330             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*1.958+0.002,NUMTOSTR(L1*1.958,2)+'   345             '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,L1*2+0.002,NUMTOSTR(L1*2,2)+'   360             '),COLORWHITE,ALIGN2;
 END;
 ELSE   BEGIN
 PARTLINE(DATE>N高日,H1),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.042),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.083),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.125),COLORMAGENTA;
 PARTLINE(DATE>N高日,H1-H1*0.167),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.208),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.25),COLORMAGENTA;
 PARTLINE(DATE>N高日,H1-H1*0.292),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.33),COLORMAGENTA;
 PARTLINE(DATE>N高日,H1-H1*0.375),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.417),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.458),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.5),COLORMAGENTA;
 PARTLINE(DATE>N高日,H1-H1*0.542),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.583),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.625),COLORMAGENTA;
 PARTLINE(DATE>N高日,H1-H1*0.667),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.708),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.75),COLORMAGENTA;
 PARTLINE(DATE>N高日,H1-H1*0.792),COLORFFFF99,LINEDOT;
 PARTLINE(DATE>N高日,H1-H1*0.833),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.875),COLORMAGENTA;
 PARTLINE(DATE>N高日,H1-H1*0.917),COLORFFFF99,LINEDOT;
      PARTLINE(DATE>N高日,H1-H1*0.958),COLORMAGENTA;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1+0.002,NUMTOSTR(H1-H1*0.042,2)+'     0      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.042+0.002,NUMTOSTR(H1-H1*0.042,2)+'    15      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.083+0.002,NUMTOSTR(H1-H1*0.083,2)+'    30      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.125+0.002,NUMTOSTR(H1-H1*0.125,2)+'    45      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.167+0.002,NUMTOSTR(H1-H1*0.167,2)+'    60      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.208+0.002,NUMTOSTR(H1-H1*0.208,2)+'    75      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.25+0.002,NUMTOSTR(H1-H1*0.25,2)+'    90      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.292+0.002,NUMTOSTR(H1-H1*0.292,2)+'   105      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.33+0.002,NUMTOSTR(H1-H1*0.33,2)+'   120      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.375+0.002,NUMTOSTR(H1-H1*0.375,2)+'   135      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.417+0.002,NUMTOSTR(H1-H1*0.417,2)+'   150      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.458+0.002,NUMTOSTR(H1-H1*0.458,2)+'   165      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.5+0.002,NUMTOSTR(H1-H1*0.5,2)+'   180      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.542+0.002,NUMTOSTR(H1-H1*0.542,2)+'   195      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.583+0.002,NUMTOSTR(H1-H1*0.583,2)+'   210      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.625+0.002,NUMTOSTR(H1-H1*0.625,2)+'   225      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.667+0.002,NUMTOSTR(H1-H1*0.667,2)+'   240      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.708+0.002,NUMTOSTR(H1-H1*0.708,2)+'   255      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.75+0.002,NUMTOSTR(H1-H1*0.75,2)+'   270      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.792+0.002,NUMTOSTR(H1-H1*0.792,2)+'   285      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.833+0.002,NUMTOSTR(H1-H1*0.833,2)+'   300      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.875+0.002,NUMTOSTR(H1-H1*0.875,2)+'   315      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.917+0.002,NUMTOSTR(H1-H1*0.917,2)+'   330      '),COLORWHITE,ALIGN2;
      DRAWTEXT(SYSPARAM(3)=BARPOS,H1-H1*0.958+0.002,NUMTOSTR(H1-H1*0.958,2)+'   345      '),COLORWHITE,ALIGN2;
 END;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='1',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21、*25\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='2',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='3',c,NUMTOSTR(当前月,0)+'月转折日:6、15、*20、21\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='4',c,NUMTOSTR(当前月,0)+'月转折日:6、15、21\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='5',c,NUMTOSTR(当前月,0)+'月转折日:6、*12、15、21\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='6',c,NUMTOSTR(当前月,0)+'月转折日:6、*14、21\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='7',c,NUMTOSTR(当前月,0)+'月转折日:8、15、*19、23\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='8',c,NUMTOSTR(当前月,0)+'月转折日:*6、8、15、23\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='9',c,NUMTOSTR(当前月,0)+'月转折日:8、15、*18、23\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='10',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*31\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='11',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*28\n \n   \n \n   '),COLOR00FFFF,ALIGN4;
 DRAWTEXT(SYSPARAM(2)=BARPOS and NUMTOSTR(当前月,0)='12',c,NUMTOSTR(当前月,0)+'月转折日:8、15、23、*31\n \n   \n \n   '),COLOR00FFFF,ALIGN4;

 

飞狐非常经典的江恩轮中轮主图指标公式

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

飞狐非常经典的江恩轮中轮主图指标公式

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2016-01-12
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.