
等级: 新手上路
- 注册:
- 2022-12-21
- 曾用名:
|
LHS:IF(DATE>910419,NULL,1),NODRAW;
MA3:=MA(C,170);
//DRAWGBK(MA3>C,RGB(0,0,0),RGB(9,60,1),0);
//DRAWGBK(MA3<C,RGB(0,0,0),RGB(62,1,1),0);
//DRAWGBK(MA3=0,RGB(0,0,0),RGB(0,0,0),0);
HH1:=IFELSE(H<REF(H,1)&&REF(H,1)<REF(H,2),REF(H,2),0);
LL1:=IFELSE(L>REF(L,1)&&REF(L,1)>REF(L,2),REF(L,2),0);
HH2:=VALUEWHEN(HH1>0,HH1);
LL2:=VALUEWHEN(LL1>0,LL1);
HH:=HHV(HIGH,1)/10+HHV(HIGH,1)/10+HHV(HIGH,1)/10+HHV(HIGH,4)/10+HHV(HIGH,1)/10+HHV(HIGH,6)/10+HHV(HIGH,6)/10+HHV(HIGH,6)/10+HHV(HIGH,26)/10+HHV(HIGH,8)/10;
LL:=LLV(LOW,1)/10+LLV(LOW,2)/10+LLV(LOW,2)/10+LLV(LOW,4)/10+LLV(LOW,4)/10+LLV(LOW,8)/10+LLV(LOW,8)/10+LLV(LOW,13)/10+LLV(LOW,40)/10+LLV(LOW,20)/10;
H1:=IFELSE(HH<REF(HH,1)&&LL<REF(LL,1)&&REF(OPEN,0)>CLOSE&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HH,0),0);
L1:=IFELSE(LL>REF(LL,1)&&HH>REF(HH,1)&&REF(OPEN,0)<CLOSE&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LL,2),0);
X:=DATE;
X0:=H1*LHS,LINETHICK2;
X00:=L1;
XXX0:=O*LHS,LINETHICK2;
XXX00:=C;
XXX000:=H;
XXX0000:=L;
H2:=VALUEWHEN(X0>0,X0)*LHS,LINETHICK2;
L2:=VALUEWHEN(X00>0,X00)*LHS,LINETHICK2;
K1:=IFELSE(CLOSE>H2,-3,IFELSE(CLOSE<L2,1,0));
K2:=VALUEWHEN(K1<>0,K1);
G:=IFELSE(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
//DRAWNUMBER(L>0,G1,G1,0,COLORCYAN);
//DRAWNUMBER(LL>0,G1,G1,0,COLORWHITE),ALIGN0,FONTSIZE30,VALIGN0;
X000:=K2*LHS,LINETHICK2;
TMP:=K2*LHS,LINETHICK2;
W1:=X000*LHS,LINETHICK2;
X0000:=OPEN-CLOSE*LHS,LINETHICK2;
W2:=X0000*LHS,LINETHICK2;
HT:=IFELSE(OPEN>CLOSE,OPEN,CLOSE)*LHS,LINETHICK2;
LT:=IFELSE(OPEN<CLOSE,OPEN,CLOSE)*LHS,LINETHICK2;
老师,在日线红K上涨时10分钟也红K上涨和下面副图指标同步也是红K上涨开多,平仓按10分钟出现绿K平多,
在日线绿K下跌时10分钟也绿K下跌和下面副图指标同步也是绿K下跌开空,平仓按10分钟出现红K平空哪样可以吗,
A:=EMA2(HIGH,30);
B:=EMA2(LOW,30);
A1:=EMA2(HIGH,150),LINETHICK2;
B1:=EMA2(LOW,150);
S1:=CROSS(CLOSE,EMA2(HIGH,150));
X1:=CROSS(EMA2(LOW,150),CLOSE);
WS1:=BARSLAST(S1)+1;
WX1:=BARSLAST(X1)+1;
SS1:=CROSS(SUM(S1,WX1),0.5);
XX1:=CROSS(SUM(X1,WS1),0.5);
S:=CROSS(CLOSE,EMA2(HIGH,30));
XZ:=CROSS(EMA2(LOW,30),CLOSE)*LHS,LINETHICK2;
WS:=BARSLAST(S)+1*LHS,LINETHICK2;
WX:=BARSLAST(XZ)+1,LINETHICK2;
SS:=CROSS(SUM(S,WX),0.5)*LHS;
XX:=CROSS(SUM(XZ,WS),0.5)*LHS;
KK0:SUM(XZ,WS)>0.5,NODRAW;
DD0:SUM(S,WX)>0.5,NODRAW;
DD1:CLOSE>EMA2(HIGH,150*LHS)&&C>EMA2(HIGH,150),NODRAW;
KK1:CLOSE<EMA2(LOW,150*LHS)&&C<EMA2(LOW,150),NODRAW;
|
|