收集:中国股票市场经济分析网


   建横向统计,名称自编!
a1:=ref(c,1);
a2:=hhv(a1,2);
a3:=llv(a1,1);
a4:=hhv(a1,2);
a5:=ref(a4,1);
a6:=llv(a1,1);
a7:=ref(a6,1);
a8:=BARSLAST(c<a6 and a1>=a7);
a9:=ref(a8,1);
b1:=BARSLAST(c>a4 and a1<=a5);
b2:=ref(b1,1);
b3:=BARSLAST(a8-b1>0 and a9<=b2)+1;
b4:=BARSLAST(b1-a8>0 and b2<=a9)+1;
b5:=hhv(a4,b3);
b6:=llv(a6,b4);
b7:=if(a8-b1>0 and a9<=b2,1,if(b1-a8>0 and b2<=a9,0,2));
A线:=if(a8-b1>0,c,b5);
h2:=if(b7=1,c,a2);
h3:=if(a8-b1<0,c,b6);
B线:=if(b7=1,c,b6);
DIFF:=EMA(CLOSE,10) - EMA(CLOSE,22),colorred;
DEA:=EMA(DIFF,9),COLORYELLOW;
横向1号:if(A线=B线?and A线=ref(A线,1),1,0);//宝塔线翻绿
横向2号:if(A线=B线 and ref(A线,1)>A线,1,0);//宝塔线翻红
横向3号:if(c>0,1,0);//股市场个股统计


以下加在主图或你的副图都可!
a1:=sum(if(close>ref(close,1),amount,if(close<ref(close,1),-amount,0)),0);
a2:=ma(a1,13);
a3:=a2+2*std(a1,13);
a4:=a2-2*std(a1,13);
a5:=(a1-a4)/(a3-a4)*100;
a6:=a5>70;
a7:=a5<10;
b1:=BARSLAST(a6)<5;
b2:=BARSLAST(a7)<10;
a11:=ESTDATA(1);
a12:=ESTDATA(2);
a13:=ESTDATA(3);
a14:=a11/a13;
a15:=a12/a13;
tt:=a14>0.39;
dd:=a15>0.4;
DRAWTEXT(ttand b1,h,'[url=www.macd.cn/result.php?sn=大盘][color=blue][u]大盘[/u][/color][/url]转折点'),coloryellow;
DRAWTEXT(ddand b2 and indexc>indexo,l,'[url=www.macd.cn/result.php?sn=大盘][color=blue][u]大盘[/u][/color][/url]转折点'),colorgreen;

发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口


相关内容


  • 上一篇教程:
  • 下一篇教程: