老师这个能改成博弈主图吗 [博易POBO]
咨询内容:
AO:=SMA(VAR1,5,1)-SMA(VAR1,34,1),COLORCC9966;
AC:=SMA((AO-SMA(AO,5,1)),5,1),COLORCC9966;
X1:=AO>REF(AO,1) AND AC>REF(AC,1);
X2:=AO<REF(AO,1) AND AC<REF(AC,1);
Y:=(H+L)/2;
Y3:=REF(Y,3);
Y5:=REF(Y,5);
Y8:=REF(Y,8);
RED:=SMA(Y,8,1);
R2:=REF(RED,5);
KU1:=IF(H=HHV(H,3),1,0);
KD1:=IF(L=LLV(L,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
黄:=SMA(Y8,13,1),COLORYELLOW;
红:=SMA(Y5,8,1),COLORRED;
绿:=SMA(Y3,5,1),COLORGREEN;
上张:=黄>=REF(黄,1) AND 红>=REF(红,1) AND 绿>=REF(绿,1);
下张:=黄<REF(黄,1) AND 红<REF(红,1) AND 绿<REF(绿,1);
上碎:=IF(H>=R2,UL,REF(UL,BARSLAST(H>R2)));
下碎:=IF(L<=R2,DL,REF(DL,BARSLAST(L<=R2)));
//STICKLINE(BARSLAST(ABS(上碎-REF(上碎,1)))<BARSLAST(C>上碎 AND REF(C,1)<REF(上碎,1)),上碎,上碎,3,1),COLORMAGENTA;
//STICKLINE(BARSLAST(ABS(下碎-REF(下碎,1)))<BARSLAST(C<下碎 AND REF(C,1)>REF(下碎,1)),下碎,下碎,3,1),COLORCYAN;
LC := REF(C,4);
RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;
QS:= HHV(MA(RMI,3),13),COLORFFAD00;
RMIMA:= SMA(RMI,3,1),COLOR009C00;
KTEXT(C>上碎&&ISLASTBAR=1,-5,H+1,1,COLORFF0000,' 向上突破看涨情绪'),FONTSIZE30;
KTEXT(C<下碎&&ISLASTBAR=1,-5,L-1,1,COLOR00FFFF,' 向下突破恐慌情绪'),FONTSIZE30;
KTEXT(X1>0&&ISLASTBAR=1,-5,H+2,1,COLORFF00FF,' AO与AC为多方趋势'),FONTSIZE30;
KTEXT(X2>0&&ISLASTBAR=1,-5,L-2,1,COLOR00FF00,' AO与AC为空方趋势'),FONTSIZE30;
KTEXT(上张&&ISLASTBAR=1,-5,H+3,1,COLOR999999,' 情绪向上涨'),FONTSIZE30;
KTEXT(下张&&ISLASTBAR=1,-5,L-3,1,COLOR999999,' 情绪向下跌'),FONTSIZE30;
KTEXT(上张&&X1>0&&ISLASTBAR=1,-5,H+4,1,COLORFF00FF,' 怀疑中想多头'),FONTSIZE30;
KTEXT(下张&&X2>0&&ISLASTBAR=1,-5,L-4,1,COLOR00FF00,' 怀疑中想空头'),FONTSIZE30;
KTEXT((RMI>RMIMA&&RMI<QS)&&ISLASTBAR=1,-5,H+5,1,COLORFFFF00,' 小心做多'),FONTSIZE30;
KTEXT((RMI>RMIMA&&RMI>QS)&&ISLASTBAR=1,-5,H+5,1,COLORFF0000,' 坚决做多'),FONTSIZE30;
KTEXT((RMI<RMIMA&&RMI>20)&&ISLASTBAR=1,-5,L-5,1,COLOR0000FF,' 坚决做空'),FONTSIZE30;
KTEXT((RMI<RMIMA&&RMI<20)&&ISLASTBAR=1,-5,L-5,1,COLORFF00FF,' 小心做空'),FONTSIZE30;
//DRAWKLINE1(H,O,L,C);
AO:=SMA(VAR1,5,1)-SMA(VAR1,34,1),COLORCC9966;
AC:=SMA((AO-SMA(AO,5,1)),5,1),COLORCC9966;
X1:=AO>REF(AO,1) AND AC>REF(AC,1);
X2:=AO<REF(AO,1) AND AC<REF(AC,1);
Y:=(H+L)/2;
Y3:=REF(Y,3);
Y5:=REF(Y,5);
Y8:=REF(Y,8);
RED:=SMA(Y,8,1);
R2:=REF(RED,5);
KU1:=IF(H=HHV(H,3),1,0);
KD1:=IF(L=LLV(L,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
黄:=SMA(Y8,13,1),COLORYELLOW;
红:=SMA(Y5,8,1),COLORRED;
绿:=SMA(Y3,5,1),COLORGREEN;
上张:=黄>=REF(黄,1) AND 红>=REF(红,1) AND 绿>=REF(绿,1);
下张:=黄<REF(黄,1) AND 红<REF(红,1) AND 绿<REF(绿,1);
上碎:=IF(H>=R2,UL,REF(UL,BARSLAST(H>R2)));
下碎:=IF(L<=R2,DL,REF(DL,BARSLAST(L<=R2)));
//STICKLINE(BARSLAST(ABS(上碎-REF(上碎,1)))<BARSLAST(C>上碎 AND REF(C,1)<REF(上碎,1)),上碎,上碎,3,1),COLORMAGENTA;
//STICKLINE(BARSLAST(ABS(下碎-REF(下碎,1)))<BARSLAST(C<下碎 AND REF(C,1)>REF(下碎,1)),下碎,下碎,3,1),COLORCYAN;
LC := REF(C,4);
RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;
QS:= HHV(MA(RMI,3),13),COLORFFAD00;
RMIMA:= SMA(RMI,3,1),COLOR009C00;
DRAWTEXT(C>上碎&&ISLASTBAR=1,H+1,' 向上突破看涨情绪'),COLORFF0000;
DRAWTEXT(C<下碎&&ISLASTBAR=1,L-1,' 向下突破恐慌情绪'),COLOR00FFFF;
DRAWTEXT(X1>0&&ISLASTBAR=1,H+2,' AO与AC为多方趋势'),COLORFF00FF;
DRAWTEXT(X2>0&&ISLASTBAR=1,L-2,' AO与AC为空方趋势'),COLOR00FF00;
DRAWTEXT(上张&&ISLASTBAR=1,H+3,' 情绪向上涨'),COLOR999999;
DRAWTEXT(下张&&ISLASTBAR=1,L-3,' 情绪向下跌'),COLOR999999;
DRAWTEXT(上张&&X1>0&&ISLASTBAR=1,H+4,' 怀疑中想多头'),COLORFF00FF;
DRAWTEXT(下张&&X2>0&&ISLASTBAR=1,L-4,' 怀疑中想空头'),COLOR00FF00;
DRAWTEXT((RMI>RMIMA&&RMI<QS)&&ISLASTBAR=1,H+5,' 小心做多'),COLORFFFF00;
DRAWTEXT((RMI>RMIMA&&RMI>QS)&&ISLASTBAR=1,H+5,' 坚决做多'),COLORFF0000;
DRAWTEXT((RMI<RMIMA&&RMI>20)&&ISLASTBAR=1,L-5,' 坚决做空'),COLOR0000FF;
DRAWTEXT((RMI<RMIMA&&RMI<20)&&ISLASTBAR=1,L-5,' 小心做空'),COLORFF00FF;
//DRAWKLINE1(H,O,L,C); 谢谢老师 来源 程序化久久网
老师这个能改成博弈主图吗
VAR1:=(H+L)/2;AO:=SMA(VAR1,5,1)-SMA(VAR1,34,1),COLORCC9966;
AC:=SMA((AO-SMA(AO,5,1)),5,1),COLORCC9966;
X1:=AO>REF(AO,1) AND AC>REF(AC,1);
X2:=AO<REF(AO,1) AND AC<REF(AC,1);
Y:=(H+L)/2;
Y3:=REF(Y,3);
Y5:=REF(Y,5);
Y8:=REF(Y,8);
RED:=SMA(Y,8,1);
R2:=REF(RED,5);
KU1:=IF(H=HHV(H,3),1,0);
KD1:=IF(L=LLV(L,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
黄:=SMA(Y8,13,1),COLORYELLOW;
红:=SMA(Y5,8,1),COLORRED;
绿:=SMA(Y3,5,1),COLORGREEN;
上张:=黄>=REF(黄,1) AND 红>=REF(红,1) AND 绿>=REF(绿,1);
下张:=黄<REF(黄,1) AND 红<REF(红,1) AND 绿<REF(绿,1);
上碎:=IF(H>=R2,UL,REF(UL,BARSLAST(H>R2)));
下碎:=IF(L<=R2,DL,REF(DL,BARSLAST(L<=R2)));
//STICKLINE(BARSLAST(ABS(上碎-REF(上碎,1)))<BARSLAST(C>上碎 AND REF(C,1)<REF(上碎,1)),上碎,上碎,3,1),COLORMAGENTA;
//STICKLINE(BARSLAST(ABS(下碎-REF(下碎,1)))<BARSLAST(C<下碎 AND REF(C,1)>REF(下碎,1)),下碎,下碎,3,1),COLORCYAN;
LC := REF(C,4);
RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;
QS:= HHV(MA(RMI,3),13),COLORFFAD00;
RMIMA:= SMA(RMI,3,1),COLOR009C00;
KTEXT(C>上碎&&ISLASTBAR=1,-5,H+1,1,COLORFF0000,' 向上突破看涨情绪'),FONTSIZE30;
KTEXT(C<下碎&&ISLASTBAR=1,-5,L-1,1,COLOR00FFFF,' 向下突破恐慌情绪'),FONTSIZE30;
KTEXT(X1>0&&ISLASTBAR=1,-5,H+2,1,COLORFF00FF,' AO与AC为多方趋势'),FONTSIZE30;
KTEXT(X2>0&&ISLASTBAR=1,-5,L-2,1,COLOR00FF00,' AO与AC为空方趋势'),FONTSIZE30;
KTEXT(上张&&ISLASTBAR=1,-5,H+3,1,COLOR999999,' 情绪向上涨'),FONTSIZE30;
KTEXT(下张&&ISLASTBAR=1,-5,L-3,1,COLOR999999,' 情绪向下跌'),FONTSIZE30;
KTEXT(上张&&X1>0&&ISLASTBAR=1,-5,H+4,1,COLORFF00FF,' 怀疑中想多头'),FONTSIZE30;
KTEXT(下张&&X2>0&&ISLASTBAR=1,-5,L-4,1,COLOR00FF00,' 怀疑中想空头'),FONTSIZE30;
KTEXT((RMI>RMIMA&&RMI<QS)&&ISLASTBAR=1,-5,H+5,1,COLORFFFF00,' 小心做多'),FONTSIZE30;
KTEXT((RMI>RMIMA&&RMI>QS)&&ISLASTBAR=1,-5,H+5,1,COLORFF0000,' 坚决做多'),FONTSIZE30;
KTEXT((RMI<RMIMA&&RMI>20)&&ISLASTBAR=1,-5,L-5,1,COLOR0000FF,' 坚决做空'),FONTSIZE30;
KTEXT((RMI<RMIMA&&RMI<20)&&ISLASTBAR=1,-5,L-5,1,COLORFF00FF,' 小心做空'),FONTSIZE30;
//DRAWKLINE1(H,O,L,C);
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: VAR1:=(H+L)/2;AO:=SMA(VAR1,5,1)-SMA(VAR1,34,1),COLORCC9966;
AC:=SMA((AO-SMA(AO,5,1)),5,1),COLORCC9966;
X1:=AO>REF(AO,1) AND AC>REF(AC,1);
X2:=AO<REF(AO,1) AND AC<REF(AC,1);
Y:=(H+L)/2;
Y3:=REF(Y,3);
Y5:=REF(Y,5);
Y8:=REF(Y,8);
RED:=SMA(Y,8,1);
R2:=REF(RED,5);
KU1:=IF(H=HHV(H,3),1,0);
KD1:=IF(L=LLV(L,3),1,0);
UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
黄:=SMA(Y8,13,1),COLORYELLOW;
红:=SMA(Y5,8,1),COLORRED;
绿:=SMA(Y3,5,1),COLORGREEN;
上张:=黄>=REF(黄,1) AND 红>=REF(红,1) AND 绿>=REF(绿,1);
下张:=黄<REF(黄,1) AND 红<REF(红,1) AND 绿<REF(绿,1);
上碎:=IF(H>=R2,UL,REF(UL,BARSLAST(H>R2)));
下碎:=IF(L<=R2,DL,REF(DL,BARSLAST(L<=R2)));
//STICKLINE(BARSLAST(ABS(上碎-REF(上碎,1)))<BARSLAST(C>上碎 AND REF(C,1)<REF(上碎,1)),上碎,上碎,3,1),COLORMAGENTA;
//STICKLINE(BARSLAST(ABS(下碎-REF(下碎,1)))<BARSLAST(C<下碎 AND REF(C,1)>REF(下碎,1)),下碎,下碎,3,1),COLORCYAN;
LC := REF(C,4);
RMI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*100;
QS:= HHV(MA(RMI,3),13),COLORFFAD00;
RMIMA:= SMA(RMI,3,1),COLOR009C00;
DRAWTEXT(C>上碎&&ISLASTBAR=1,H+1,' 向上突破看涨情绪'),COLORFF0000;
DRAWTEXT(C<下碎&&ISLASTBAR=1,L-1,' 向下突破恐慌情绪'),COLOR00FFFF;
DRAWTEXT(X1>0&&ISLASTBAR=1,H+2,' AO与AC为多方趋势'),COLORFF00FF;
DRAWTEXT(X2>0&&ISLASTBAR=1,L-2,' AO与AC为空方趋势'),COLOR00FF00;
DRAWTEXT(上张&&ISLASTBAR=1,H+3,' 情绪向上涨'),COLOR999999;
DRAWTEXT(下张&&ISLASTBAR=1,L-3,' 情绪向下跌'),COLOR999999;
DRAWTEXT(上张&&X1>0&&ISLASTBAR=1,H+4,' 怀疑中想多头'),COLORFF00FF;
DRAWTEXT(下张&&X2>0&&ISLASTBAR=1,L-4,' 怀疑中想空头'),COLOR00FF00;
DRAWTEXT((RMI>RMIMA&&RMI<QS)&&ISLASTBAR=1,H+5,' 小心做多'),COLORFFFF00;
DRAWTEXT((RMI>RMIMA&&RMI>QS)&&ISLASTBAR=1,H+5,' 坚决做多'),COLORFF0000;
DRAWTEXT((RMI<RMIMA&&RMI>20)&&ISLASTBAR=1,L-5,' 坚决做空'),COLOR0000FF;
DRAWTEXT((RMI<RMIMA&&RMI<20)&&ISLASTBAR=1,L-5,' 小心做空'),COLORFF00FF;
//DRAWKLINE1(H,O,L,C); 谢谢老师 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容