 | |  |  |
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; |
| |  | |  |
|