帮你建横向统计
文章出处:易坚 发布时间:2005-09-08
(大盘转折点)源码!大家指正!
建横向统计,名称自编!
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=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);//股市场个股统计
分成3个公式
横向1号
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=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号
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=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;
横向2号:if(A线=B线 and ref(A线,1)>A线,1,0);//宝塔线翻红
横向3号
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=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;
横向3号:if(c>0,1,0);//股市场个股统计
建公式后,点管理,点横向统计,点新增,范围点A股,确定,刷新ok
建横向统计,名称自编!
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
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);//股市场个股统计
分成3个公式
横向1号
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
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号
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
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;
横向2号:if(A线=B线 and ref(A线,1)>A线,1,0);//宝塔线翻红
横向3号
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
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;
横向3号:if(c>0,1,0);//股市场个股统计
建公式后,点管理,点横向统计,点新增,范围点A股,确定,刷新ok