用日堯清爭的
趨勢買賣及英超的條件交易。趨勢買賣指標(biāo)的源碼
請?jiān)O(shè)置計(jì)算參數(shù):
N: Param#0 (1.00--100.00) 20
M: Param#1 (1.00--100.00) 32
P1: Param#2 (1.00--100.00) 80
P2: Param#3 (1.00--100.00) 100

源碼如下:

VAR1:=(C+H+O+L)/4;
賣出:XMA(VAR1,N)*(1+P1/1000);
買入:XMA(VAR1,M)*(1-P2/1000);
幅度: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),COLORMAGENTA;
STICKLINE(買入>MIN(C,O) AND 買入<MAX(C,O),買入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;
STICKLINE(買入>LOW AND 買入<HIGH,買入,LOW,0,0),COLORMAGENTA;
STICKLINE(買入>HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(買入>HIGH,HIGH,LOW,0,0),COLORMAGENTA;
DRAWTEXT(CROSS(LOW,買入),LOW*0.95,'B'),COLORRED,LINETHICK2;
BY:CROSS(LOW,買入),NODRAW;
DRAWTEXT(CROSS(賣出,HIGH),HIGH*1.02,'S'),COLORGREEN;
SL:CROSS(賣出,HIGH),NODRAW;           英超版主的條件交易指標(biāo)MOM12:=CLOSE-REF(CLOSE,12);
MOM25:=CLOSE-REF(CLOSE,25);
MAMOM:=MA(MOM12,20);
UP:=MAMOM+1.96*STD(MAMOM-MOM12,20);
DOWN:=MAMOM-1.96*STD(MAMOM-MOM12,20);

ENTERLONG:CROSS(MOM12,DOWN);
EXITLONG:CROSS(UP,MOM25);

MOM12:=CLOSE-REF(CLOSE,12);
MOM25:=CLOSE-REF(CLOSE,25);
MAMOM:=MA(MOM12,20);
UP:=MAMOM+1.96*STD(MAMOM-MOM12,20);
DOWN:=MAMOM-1.96*STD(MAMOM-MOM12,20);

ENTERLONG:CROSS(MOM12,DOWN);
EXITLONG:CROSS(UP,MOM25);



英超版主的條件交易選股源碼MOM12:=CLOSE-REF(CLOSE,12);
MOM25:=CLOSE-REF(CLOSE,25);
MAMOM:=MA(MOM12,20);
UP:=MAMOM+1.96*STD(MAMOM-MOM12,20);
DOWN:=MAMOM-1.96*STD(MAMOM-MOM12,20);

ENTERLONG:CROSS(MOM12,DOWN);
                                         第一步將指標(biāo)趨勢買賣導(dǎo)入通達(dá)信主圖,英超版主的條件交易指標(biāo)源碼
導(dǎo)入條件選股公式導(dǎo)入,及然后將DPO導(dǎo)入主圖指標(biāo)。按CTRL+E選DPO為交易條件。   第二步
點(diǎn)綜合選股如圖

shun.JPG (263.81 KB)

 

shun.jpg