牛出牛入主图公式
N 1 100 20
M 1 100 32
P1 1 200 80
P2 1 200 70
M2 2 1000 12
以上参数请自行设定
VAR1:=(C+H+O+L)/4;
MA2:MA(CLOSE,M2),COLORRED;
牛出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK1;
牛入:XMA(VAR1,M)*(1-P2/1000),COLORWHITE,LINETHICK1;
牛身高:100*(牛出-牛入)/牛入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(牛出>LOW AND 牛出<HIGH,牛出,MAX(牛出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(牛出>MIN(C,O) AND 牛出<MAX(C,O),牛出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(牛出>LOW AND 牛出<HIGH,牛出,HIGH,0,0),COLORGREEN;
STICKLINE(牛出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(牛出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(牛入>LOW AND 牛入<HIGH,牛入,MIN(MIN(OPEN,CLOSE),牛入),3,0),COLORWHITE;
STICKLINE(牛入>MIN(C,O) AND 牛入<MAX(C,O),牛入,MIN(OPEN,CLOSE),3,0),COLORWHITE;
STICKLINE(牛入>LOW AND 牛入<HIGH,牛入,LOW,0,0),COLORWHITE;
STICKLINE(牛入>HIGH,OPEN,CLOSE,3,0),COLORWHITE;
STICKLINE(牛入>HIGH,HIGH,LOW,0,0),COLORWHITE;
DRAWTEXT(CROSS(LOW,牛入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(牛出,HIGH),HIGH*1.02,'S'),COLORGREEN;
76455517.png
|