股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索

[飞狐]飞狐短中结合源码公式


   
楼主
2020-1-2 04:10:42
飞狐短中结合源码公式:
input:N(5,1,50),N1(25,10,200);
A:=(N-HHVBARS(H,N))/N*100;
B:=(N-LLVBARS(L,N))/N*100;
P:=(N1-HHVBARS(H,N1))/N1*100;
Q:=(N1-LLVBARS(L,N1))/N1*100;
短高:(N-HHVBARS(H,N))/N*80,colorgreen;
短低:(N-LLVBARS(L,N))/N*80,colorred;
长高:(N1-HHVBARS(H,N1))/N1*90,colorcyan;
长低:(N1-LLVBARS(L,N1))/N1*90,colormagenta;
卖:if(ref(P,1)=ref(A,1) and ref(A,1)=100 and (A and P)<100 and Q<=40 and B<=50 ,100,110),colorgreen,linethick3;
买:if(ref(Q,1)=ref(B,1) and ref(B,1)=100 and (B and Q)<100 and P<=40 and A<=50 ,0,-10),coloryellow,linethick3;

stickLINE(b=100 and q=100 and 买=0 ,120,-20,0.5,0),colorwhite,POINTDOT;
stickLINE(a=100 and p=100 and 卖=100,120,-20,0.5,0),colorred,POINTDOT;


回复

举报