求任意活性化线的空间线。

10-24 09:25发布

DRAWKLINE(9/10,COLORRED,1,COLORCYAN,1); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)); K:=SMA(RSV...

DRAWKLINE(9/10,COLORRED,1,COLORCYAN,1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
CURRBARSCOUNT1:=REFX1(BARPOS,100000)-BARPOS+1;

条件AF:=CROSS(K,D);
条件BF:=CROSSDOWN(K,D);

HJDF2:=ABS(K+D/J*18);
AXXR:=IF((条件AF||条件BF)&& ABS(HJDF2)> CURRBARSCOUNT1,ABS(HJDF2),0),NODRAW;
TJC1:=CROSS(BACKSET(ISLASTBAR,HHVBARS(AXXR,BARPOS)+1),0.5);
VERTLINE(TJC1,COLORRED);
//DRAWSL((条件AF||条件BF)&& ABS(K+D/J*18)> CURRBARSCOUNT1,H,0,ABS(K+D/J*18),0,COLORBLUE),DOT;
//DRAWSL((条件AF||条件BF)&& ABS(K+D/J*18)> CURRBARSCOUNT1&&TJC1,H,0,ABS(K+D/J*18),0,COLORYELLOW),DOT;
DJB0:=ROUND(8*ABS(HJDF2)/8,0);
DJB1 :=ROUND(1*ABS(HJDF2)/8,0);
DJB2 :=ROUND(2*ABS(HJDF2)/8,0);
DJB3 :=ROUND(3*ABS(HJDF2)/8,0);
DJB4 :=ROUND(4*ABS(HJDF2)/8,0);
DJB5 :=ROUND(5*ABS(HJDF2)/8,0);
DJB6 :=ROUND(6*ABS(HJDF2)/8,0);
DJB7 :=ROUND(7*ABS(HJDF2)/8,0);
DJB8 :=ROUND(8*ABS(HJDF2)/8,0);
DJB9 :=ROUND(7*ABS(HJDF2)/0,0);
TJA:=(条件AF||条件BF)&&(DJB0+2)>CURRBARSCOUNT1,NODRAW; //活性化线条件


AHX:=CROSS(BACKSET(ISLASTBAR,SUMBARS((条件AF||条件BF)&& ABS(HJDF2)> CURRBARSCOUNT1,1)),0.5);
BHX:=CROSS(BACKSET(ISLASTBAR,SUMBARS((条件AF||条件BF)&& ABS(HJDF2)> CURRBARSCOUNT1,2)),0.5);
CHX:=CROSS(BACKSET(ISLASTBAR,SUMBARS((条件AF||条件BF)&& ABS(HJDF2)> CURRBARSCOUNT1,3)),0.5);

THA0B8: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,8*ABS(HJDF2)/8),10000),0),NODRAW ;
THA0B7: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,7*ABS(HJDF2)/8),10000),0),NODRAW ;
THA0B6: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,6*ABS(HJDF2)/8),10000),0),NODRAW ;
THA0B5: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,5*ABS(HJDF2)/8),10000),0),NODRAW ;
THA0B4: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,4*ABS(HJDF2)/8),10000),0),NODRAW ;
THA0B3: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,3*ABS(HJDF2)/8),10000),0),NODRAW ;
THA0B2: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,2*ABS(HJDF2)/8),10000),0),NODRAW ;
THA0B1: AHX&&ROUND( 8*ABS(HJDF2)/8,0)=ROUND( REFX1(VALUEWHEN(BHX,1*ABS(HJDF2)/8),10000),0),NODRAW

付费偷看设置
发送
9条回答
文华解答
2楼-- · 10-24 10:54
具体描述您的问题
文期王华
3楼-- · 10-24 11:14
是否需要列举方法?
文华解答
4楼-- · 10-24 11:33
请具体说明一下您的问题
文期王华
5楼-- · 10-24 11:54
//任意的活性化线空间线
DRAWSL(TJA,H,0,2,0,COLORRED);
DRAWSL(TJA,L,0,2,0,COLORRED);

DRAWSL(REF(TJA,2)&&REFX1(C>VALUEWHEN(TJA,H),10000),VALUEWHEN(TJA,H+(H-L)) ,0,-BARSLAST(TJA),0,COLORCYAN);
DRAWSL(REF(TJA,2)&&REFX1(C>VALUEWHEN(TJA,H),10000),VALUEWHEN(TJA,H+(H-L)*2) ,0,-BARSLAST(TJA),0,COLORCYAN);
DRAWSL(REF(TJA,2)&&REFX1(C>VALUEWHEN(TJA,H),10000),VALUEWHEN(TJA,H+(H-L)*3) ,0,-BARSLAST(TJA),0,COLORCYAN);

DRAWSL(REF(TJA,2)&&REFX1(C DRAWSL(REF(TJA,2)&&REFX1(C DRAWSL(REF(TJA,2)&&REFX1(C

文华解答
6楼-- · 10-24 12:14
您用文字描述一下想要画什么思路
文期王华
7楼-- · 10-24 12:34
以上是我写的,但没有列举方法列举方法应该怎么写。