请老师增加个条件 [博易POBO]
咨询内容:
A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>=REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,0),COLOR0000FF,LINETHICK0,PRECIS1;
A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,0),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1),COLOR0000FF;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1),COLOR00FF00;
B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);
A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>=REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,0),COLOR0000FF,LINETHICK0,PRECIS1;
A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,O),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2),LINETHICK2,COLOR0000FF;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2),LINETHICK2,COLOR00FF00;
B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);
A5:IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,0),COLOR0000FF,LINETHICK0,PRECIS1;
A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,0),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3),LINETHICK3,COLOR0000FF;
PARTLINE(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3),LINETHICK3,COLOR00FF00;
B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;
A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,O),COLOR0000FF,LINETHICK0,PRECIS1;
A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,O),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4),CIRCLEDOT,COLOR0000FF;
PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4),CROSSDOT,COLOR00FF00;
BB:=EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1) AND EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1) AND EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1) AND (EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1);
AA1:=FILTER(AA,10);
BB1:=FILTER(BB,10);
DRAWICON(AA1,L*0.99,4);
DRAWICON(BB1,H*1.01,5); DD1:=EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1);
DD2:=EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1);
DD3:=ALTFILTER(DD1,DD2);
DD4:=FILTER(DD3,10);
DD5:=ALTFILTER(DD2,DD1);
DD6:=FILTER(DD5,10);
AA1:=FILTER(AA,10);
BB1:=FILTER(BB,10);
DRAWTEXT(DD4,H*1.01,'多离场');
DRAWTEXT(DD6,L*0.99,'空离场');
DRAWTEXT(AA1,B1,'多');
DRAWTEXT(BB1,B1,'空');
加到你程序后面。 来源 程序化久久网
请老师增加个条件
请老师在四线同线同为红色时,当根K线下方增加一个“做多”,最细的线变绿时,当根K线增加“离场”。四线同为绿色时,增加“做空”最细的线变红时增加“离场”。B1:=EMA((2*CLOSE+HIGH+LOW)/4,5);A1:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>=REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,0),COLOR0000FF,LINETHICK0,PRECIS1;
A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1,0),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1),COLOR0000FF;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),B1),COLOR00FF00;
B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);
A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>=REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,0),COLOR0000FF,LINETHICK0,PRECIS1;
A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,O),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2),LINETHICK2,COLOR0000FF;
PARTLINE(EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2),LINETHICK2,COLOR00FF00;
B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);
A5:IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,0),COLOR0000FF,LINETHICK0,PRECIS1;
A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3,0),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3),LINETHICK3,COLOR0000FF;
PARTLINE(EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1),B3),LINETHICK3,COLOR00FF00;
B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;
A7:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,O),COLOR0000FF,LINETHICK0,PRECIS1;
A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4,O),COLOR00FF00,LINETHICK0,PRECIS1;
PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4),CIRCLEDOT,COLOR0000FF;
PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),B4),CROSSDOT,COLOR00FF00;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: AA:=EMA((2*CLOSE+HIGH+LOW)/4,6)>=REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1) AND EMA((2*CLOSE+HIGH+LOW)/4,10)>REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1) AND EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1) AND (EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1);BB:=EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1) AND EMA((2*CLOSE+HIGH+LOW)/4,10)<REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1) AND EMA((LOW+CLOSE+OPEN)/3,28)<REF(EMA((LOW+CLOSE+OPEN)/3,28),1) AND (EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2<REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1);
AA1:=FILTER(AA,10);
BB1:=FILTER(BB,10);
DRAWICON(AA1,L*0.99,4);
DRAWICON(BB1,H*1.01,5); DD1:=EMA((2*CLOSE+HIGH+LOW)/4,6)>REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1);
DD2:=EMA((2*CLOSE+HIGH+LOW)/4,6)<REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1);
DD3:=ALTFILTER(DD1,DD2);
DD4:=FILTER(DD3,10);
DD5:=ALTFILTER(DD2,DD1);
DD6:=FILTER(DD5,10);
AA1:=FILTER(AA,10);
BB1:=FILTER(BB,10);
DRAWTEXT(DD4,H*1.01,'多离场');
DRAWTEXT(DD6,L*0.99,'空离场');
DRAWTEXT(AA1,B1,'多');
DRAWTEXT(BB1,B1,'空');
加到你程序后面。 来源 程序化久久网
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容