个人爱好分享
open是开盘价,close是收盘价,day trade是日内交易的意思,长仓和短仓就是买进和卖出
你持有的到期了就要调期,换到下个交割期。
如果只需要更改K线颜色,将公式中的“blue”和“red”互换就可以了:
S:=CROSS(CLOSE,EMA2(HIGH,30));
X:=CROSS(EMA2(LOW,30),CLOSE);
WS:=BARSLAST(S)+1;
WX:=BARSLAST(X)+1;
SS:=CROSS(SUM(S,WX),0.5);
XX:=CROSS(SUM(X,WS),0.5);
STICKLINE(CLOSEEMA2(HIGH,30),EMA2(HIGH,30),EMA2(LOW,30),COLORMAGENTA,1);
STICKLINE(CLOSEEMA2(LOW,30),EMA2(LOW,30),EMA2(HIGH,30),COLORRED,1);
STICKLINE(CLOSEEMA2(HIGH,150),EMA2(HIGH,150),EMA2(LOW,150),COLORLIGHTBLUE,1);
STICKLINE(CLOSEEMA2(LOW,150),EMA2(LOW,150),EMA2(HIGH,150),COLORLIGHTGREEN,1);
PARTLINE(CLOSEEMA2(HIGH,30),EMA2(HIGH,30),COLORMAGENTA);
PARTLINE(CLOSEEMA2(HIGH,30),EMA2(HIGH,30),COLORRED);
PARTLINE(CLOSEEMA2(LOW,30),EMA2(LOW,30),COLORMAGENTA);
PARTLINE(CLOSEEMA2(LOW,30),EMA2(LOW,30),COLORRED);
PARTLINE(CLOSEEMA2(HIGH,150),EMA2(HIGH,150),COLORLIGHTRED);
PARTLINE(CLOSEEMA2(HIGH,150),EMA2(HIGH,150),COLORLIGHTGREEN);
PARTLINE(CLOSEEMA2(LOW,150),EMA2(LOW,150),COLORLIGHTBLUE);
PARTLINE(CLOSEEMA2(LOW,150),EMA2(LOW,150),COLORLIGHTGREEN);
STICKLINE(OPEN=CLOSE,CLOSE,OPEN,COLORBLUE,0);
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,COLORCYAN,0);
DRAWTEXT(SS,LOW,'买入');
DRAWTEXT(XX,HIGH,'卖出');
[img]Close = 收盘价(Closing price的简写)
其它还有:
Open:开盘价
High:更高价
Low:更低价
Settle:结算价
四处搜罗的~~是不是这个啊
M1:=EMA(CLOSE,5);
M2:=MA(CLOSE,0);
M3:=MA(CLOSE,0);
M4:=EMA(CLOSE,50);
PARTLINE(M10,M1,COLORWHITE);
PARTLINE(M20,M2,COLORYELLOW);
PARTLINE(M30,M3,COLORGREEN);
PARTLINE(M40,M4,COLORMAGENTA);
Q1:=VALUEWHEN(ISLASTBAR,M1);
Q2:=VALUEWHEN(ISLASTBAR,M2);
Q3:=VALUEWHEN(ISLASTBAR,M3);
Q4:=VALUEWHEN(ISLASTBAR,M4);
DRAWNUMBER(LOW0,Q1,Q1,0,COLORWHITE);
DRAWNUMBER(LOW0,Q2,Q2,0,COLORYELLOW);
DRAWNUMBER(LOW0,Q3,Q3,0,COLORGREEN);
DRAWNUMBER(LOW0,Q4,Q4,0,COLORMAGENTA);
H:=HIGH;
L:=LOW;
HH1:=IF(HREF(H,2)REF(H,1)REF(H,2),REF(H,2),0);
LL1:=IF(LREF(L,2)REF(L,1)REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH10,HH1);
LL2:=VALUEWHEN(LL10,LL1);
K1:=IF(CLOSEHH2,-3,IF(CLOSELL2,1,0));
K2:=VALUEWHEN(K10,K1);
G:=IF(K2=1,HH2,LL2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(L0,G1,G1,0,COLORCYAN);
W1:=K2;
W2:=OPEN-CLOSE;
HT:=IF(OPENCLOSE,OPEN,CLOSE);
LT:=IF(OPENCLOSE,OPEN,CLOSE);
DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCYAN);
DRAWLINE(W1=1,LOW,W1=1,LT,COLORCYAN);
DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);
DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);
STICKLINE(W10,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(W1=0,OPEN,CLOSE,COLORRED,1);
STICKLINE(W20W1=0,OPEN,CLOSE,COLORRED,0);
STICKLINE(W20W10,OPEN,CLOSE,COLORCYAN,0);
HH:=IF(HREF(H,1)HREF(H,2)HREF(H,3)HREF(H,4)HREF(H,5)LREF(L,1)LREF(L,2)
LREF(L,3)LREF(L,4)LREF (L,5),H-(H-L)*0.333,H);
LL:=IF(HREF(H,1)HREF(H,2)HREF(H,3)HREF(H,4)HREF(H,5)LREF(L,1)LREF(L,2)
LREF(L,3)LREF(L,4)LREF (L,5),(H-L)*0.333+L,L);
H1:=IF(H=REF(H,1)H=REF(H,2)H=REF(H,3)H=REF(H,4)H=REF(H,5) HREFX(H,1)
HREFX(H,2)HREFX(H,3)HREFX(H,4) HREFX(H,5),HH,0);
L1:=IF(L=REF(L,1)L=REF(L,2)L=REF(L,3)L=REF(L,4)L=REF(L,5) LREFX(L,1)
LREFX(L,2)LREFX(L,3)LREFX(L,4) LREFX(L,5),LL,0);
H2:=BARSLAST(H1);
L2:=BARSLAST(L1);
H3:=REFX(REF(H1,H2),2);
L3:=REFX(REF(L1,L2),2);
H4:=ZIGZAG(H3,0,0);
L4:=ZIGZAG(L3,0,0);
H5:=VALUEWHEN(H4REF(H4,1)REF(H4,1)REF(H4,2),HH);
L5:=VALUEWHEN(L4REF(L4,1)REF(L4,1)REF(L4,2),LL);
PO *** LINE(H50,H5,COLORWHITE);
PO *** LINE(L50,L5,COLORWHITE);
DRAWNUMBER(H5REF(H5,1),H5,H5-L5,0,COLORMAGENTA);
DRAWNUMBER(L5REF(L5,1),L5,H5-L5,0,COLORMAGENTA);
D:=VALUEWHEN(ISLASTBAR,H5);
E:=VALUEWHEN(ISLASTBAR,L5);
DRAWNUMBER(LOW0,D,D,0,COLORWHITE);
DRAWNUMBER(LOW0,E,E,0,COLORWHITE);
DRAWTEXT(CROSS(CLOSE,H5),H5,'出击');
DRAWTEXT(CROSS(L5,CLOSE),L5,'出击');
HO:=HIGHREF(HIGH,1) HIGHREF(HIGH,2) HIGH=REFX(HIGH,1) IF(HIGH=REFX(HIGH,2),HIGHREFX(HIGH,3),HIGHREFX(HIGH,2));
FXH:=CROSS(HO,0.9);
RR:=REF(HIGH,BARSLAST(FXH));
LO:=LOWREF(LOW,1) LOWREF(LOW,2) LOW=REFX(LOW,1) IF(LOW=REFX(LOW,2),LOWREFX(LOW,3),LOWREFX(LOW,2));
FXL:=CROSS(LO,0.9);
JJ:=REF(LOW,BARSLAST(FXL));
STICKLINE(CLOSE,RR,RR+0.001,COLORYELLOW,0);
STICKLINE(CLOSE,JJ,JJ+0.001,COLORGREEN,0);
网站首页:期货手续费网-加1分开户(微信:527209157)
本文链接:http://52ol.cn/post/139265.html
本站福利推荐!!!
正规期货账户开户!交易所手续费加1分(+0.01元),无条件!无资金手续费要求,享受手续费加1分!期货开户微信:527209157
或扫描下方二维码添加微信
Copyright 2012-2024 期货手续费网-加1分开户 网站地图 邮箱:diyijiaoyi@qq.com 微信:527209157 湘ICP备18014167号