趨勢(shì)買(mǎi)賣(mài)指標(biāo)公式
VAR1:=(C+H+O+L)/4;
賣(mài)出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
買(mǎi)入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(賣(mài)出-買(mǎi)入)/買(mǎi)入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(賣(mài)出>LOW AND 賣(mài)出<HIGH,賣(mài)出,MAX(賣(mài)出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;
STICKLINE(賣(mài)出>MIN(C,O) AND 賣(mài)出<MAX(C,O),賣(mài)出,MAX(OPEN,CLOSE),3,0),COLORGREEN;
STICKLINE(賣(mài)出>LOW AND 賣(mài)出<HIGH,賣(mài)出,HIGH,0,0),COLORGREEN;
STICKLINE(賣(mài)出<LOW,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(賣(mài)出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(買(mǎi)入>LOW AND 買(mǎi)入<HIGH,買(mǎi)入,MIN(MIN(OPEN,CLOSE),買(mǎi)入),3,0),COLORMAGENTA;
STICKLINE(買(mǎi)入>MIN(C,O) AND 買(mǎi)入<MAX(C,O),買(mǎi)入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(買(mǎi)入>LOW AND 買(mǎi)入<HIGH,買(mǎi)入,LOW,0,0),COLORMAGENTA;
STICKLINE(買(mǎi)入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(買(mǎi)入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(LOW,買(mǎi)入),LOW*0.95,'B'),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(賣(mài)出,HIGH),HIGH*1.02,'S'),COLORGREEN;
選股公式:
VAR1:=(C+H+O+L)/4;
買(mǎi)入:=XMA(VAR1,M)*(1-P2/1000);
選股:買(mǎi)入>O OR 買(mǎi)入>C;
參數(shù) |
最小 |
最大 |
缺省 |
N |
1.00 |
100.00 |
20.00 |
M |
1.00 |
100.00 |
32.00 |
P1 |
1.00 |
100.00 |
80.00 |
P2 |
1.00 |
100.00 |
100.00 |
(責(zé)任編輯:張曉軒)