学股做人 发表于 2011-10-6 17:06

发一个我的自用指标

生命线:MA(CLOSE,26),COLORRED,LINETHICK2;
   STICKLINE(C>=生命线 AND C>=O,H,L,0,1),COLORRED;
   STICKLINE(C>=生命线 AND C>=O,C,O,2.5,0),COLORRED;
   DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100 ;
多头线:=EMA(C,1.5),COLOR0000CC;
空头线:=EMA(C,5),COLORMAGENTA;
均衡线:=EMA(空头线,5),COLORGREEN;
    VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
    VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
    ZAI:=FILTER(VARF1 AND VARF2,2);
MTM:=CLOSE-REF(CLOSE,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
      LC:=REF(CLOSE,1);
      RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
         ZDF:=(C-REF(C,1))/REF(C,1)*100;
   STICKLINE(ZDF>9.8,O,C,2.5,0),COLORRED;
   STICKLINE(ZDF<-9.8,O,C,2.5,0),COLORBLUE;
白买进:DRAWNULL,NODRAW,COLORWHITE;
黄加仓:DRAWNULL,NODRAW,COLORYELLOW;
蓝跌:DRAWNULL,NODRAW,COLORBLUE;
绿见顶:DRAWNULL,NODRAW,COLORGREEN;
红强势:DRAWNULL,NODRAW,COLORRED;
红蓝调整:DRAWNULL,NODRAW,COLORGRAY;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),1);
{DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);}
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'↖买 '),COLOR4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.02),'卖 '),COLORFFFF34;
VARE1:=EMA(C,3);VARE2:=EMA(C,5);VARE3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EMA(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;VAR9:=EMA(VAR7,8);
    STICKLINE(VAR7<1*REF(VAR7,1),H,L,0,1),COLORBLUE;
    STICKLINE(VAR7<1*REF(VAR7,1),O,C,2.5,1),COLORBLUE;
    STICKLINE(VAR7<1*REF(VAR7,1) AND C<O,O,C,2.5,0),COLORBLACK;
    STICKLINE(VAR7<1*REF(VAR7,1) AND C<O,O,C,2.3,0),COLORBLUE;
    STICKLINE(VAR7>1*REF(VAR7,1),H,L,0,1),COLORRED;
    STICKLINE(VAR7>1*REF(VAR7,1),O,C,2.5,1),COLORRED;
    STICKLINE(VAR7>1*REF(VAR7,1) AND C<O,O,C,2.5,0),COLOR0000DD;
    STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),H,L,0,1),COLORGREEN;
    STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,2.5,1),COLORGREEN;
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1) AND C<O,O,C,2.5,0),COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,O,C,2.5,0),COLORYELLOW,LINETHICK2;
给:=EMA(C,2),COLORRED;
力:=EMA(SLOPE(C,9)*20+C,37);
买:=CROSS(给,力);
卖:=CROSS(力,给);
STICKLINE(CROSS(给,力),OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(CROSS(力,给),OPEN,CLOSE,2.5,0),COLORWHITE;
AA1:=MA(C,5);
BB1:=MA(C,15);
AF:=CROSS(AA1,BB1);
STICKLINE(AF,LLV(L,4),LLV(L,4),50,1),COLORYELLOW,LINETHICK3;
DRAWTEXT(AF,LLV(L,4)*0.95,''),COLORRED;
年线:=EMA(C,120);
追涨:EMA(C,3),COLORWHITE,LINETHICK2;
大行情:年线-(追涨-年线),COLORGREEN,LINETHICK2;

乘风飞翔 发表于 2011-10-6 18:30

谢谢分享!!!

太白开头 发表于 2011-10-6 18:43

生命线:MA(CLOSE,26),COLORRED,LINETHICK2;
   STICKLINE(C>=生命线 AND C>=O,H,L,0,1),COLORRED;
   STICKLINE(C>=生命线 AND C>=O,C,O,2.5,0),COLORRED;
   DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100 ;
多头线:=EMA(C,1.5),COLOR0000CC;
空头线:=EMA(C,5),COLORMAGENTA;
均衡线:=EMA(空头线,5),COLORGREEN;
    VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
    VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
    ZAI:=FILTER(VARF1 AND VARF2,2);

MTM:=CLOSE-REF(CLOSE,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
      LC:=REF(CLOSE,1);
      RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
         ZDF:=(C-REF(C,1))/REF(C,1)*100;
   STICKLINE(ZDF>9.8,O,C,2.5,0),COLORRED;
   STICKLINE(ZDF<-9.8,O,C,2.5,0),COLORBLUE;
白买进:RAWNULL,NODRAW,COLORWHITE;
黄加仓:RAWNULL,NODRAW,COLORYELLOW;
蓝跌RA:WNULL,NODRAW,COLORBLUE;
绿见顶R:AWNULL,NODRAW,COLORGREEN;
红强势R:AWNULL,NODRAW,COLORRED;
红蓝调整:RAWNULL,NODRAW,COLORGRAY;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),1);
{DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);}
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'↖买 '),COLOR4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.02),'卖 '),COLORFFFF34;
VARE1:=EMA(C,3);VARE2:=EMA(C,5);VARE3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EMA(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;VAR9:=EMA(VAR7,8);
    STICKLINE(VAR7<1*REF(VAR7,1),H,L,0,1),COLORBLUE;
    STICKLINE(VAR7<1*REF(VAR7,1),O,C,2.5,1),COLORBLUE;
    STICKLINE(VAR7<1*REF(VAR7,1) AND C<O,O,C,2.5,0),COLORBLACK;
    STICKLINE(VAR7<1*REF(VAR7,1) AND C<O,O,C,2.3,0),COLORBLUE;
    STICKLINE(VAR7>1*REF(VAR7,1),H,L,0,1),COLORRED;
    STICKLINE(VAR7>1*REF(VAR7,1),O,C,2.5,1),COLORRED;
    STICKLINE(VAR7>1*REF(VAR7,1) AND C<O,O,C,2.5,0),COLOR0000DD;
    STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),H,L,0,1),COLORGREEN;
    STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,2.5,1),COLORGREEN;
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1) AND C<O,O,C,2.5,0),COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,O,C,2.5,0),COLORYELLOW,LINETHICK2;

给:=EMA(C,2),COLORRED;
力:=EMA(SLOPE(C,9)*20+C,37);
买:=CROSS(给,力);
卖:=CROSS(力,给);


STICKLINE(CROSS(给,力),OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(CROSS(力,给),OPEN,CLOSE,2.5,0),COLORWHITE;
AA1:=MA(C,5);
BB1:=MA(C,15);
AF:=CROSS(AA1,BB1);
STICKLINE(AF,LLV(L,4),LLV(L,4),50,1),COLORYELLOW,LINETHICK3;
DRAWTEXT(AF,LLV(L,4)*0.95,''),COLORRED;

年线:=EMA(C,120);
追涨:EMA(C,3),COLORWHITE,LINETHICK2;
大行情:年线-(追涨-年线),COLORGREEN,LINETHICK2;

前方方向 发表于 2011-10-6 18:51

发指标最好有图,

陈方 发表于 2011-10-6 19:05

顶一下,支持!!!!:handshake

凌紫云 发表于 2011-10-6 21:30

学无止境,谢谢分享!

ZHENGSIR 发表于 2011-10-7 11:14

:handshake

雨、 发表于 2011-10-8 03:06

生命线:MA(CLOSE,26),COLORRED,LINETHICK2;
   STICKLINE(C>=生命线 AND C>=O,H,L,0,1),COLORRED;
   STICKLINE(C>=生命线 AND C>=O,C,O,2.5,0),COLORRED;
   DP:=IF(C=INDEXC,0,1);GJ:=AMOUNT/V/100 ;
多头线:=EMA(C,1.5),COLOR0000CC;
空头线:=EMA(C,5),COLORMAGENTA;
均衡线:=EMA(空头线,5),COLORGREEN;
    VARF1:=COUNT(CROSS(多头线,均衡线),2)=1;
    VARF2:=COUNT(CROSS(空头线,均衡线),2)=1;
    ZAI:=FILTER(VARF1 AND VARF2,2);

MTM:=CLOSE-REF(CLOSE,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    DY:=HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX);
      LC:=REF(CLOSE,1);
      RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
         ZDF:=(C-REF(C,1))/REF(C,1)*100;
   STICKLINE(ZDF>9.8,O,C,2.5,0),COLORRED;
   STICKLINE(ZDF<-9.8,O,C,2.5,0),COLORBLUE;
白买进:RAWNULL,NODRAW,COLORWHITE;
黄加仓:RAWNULL,NODRAW,COLORYELLOW;
蓝跌RA:WNULL,NODRAW,COLORBLUE;
绿见顶R:AWNULL,NODRAW,COLORGREEN;
红强势R:AWNULL,NODRAW,COLORRED;
红蓝调整:RAWNULL,NODRAW,COLORGRAY;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.998),1);
{DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.013),9);}
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.984),'↖买 '),COLOR4440FF;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.02),'卖 '),COLORFFFF34;
VARE1:=EMA(C,3);VARE2:=EMA(C,5);VARE3:=EMA(C,10);VAR4:=EMA(C,20);VAR5:=EMA(C,30);VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;VAR9:=EMA(VAR7,8);
    STICKLINE(VAR7<1*REF(VAR7,1),H,L,0,1),COLORBLUE;
    STICKLINE(VAR7<1*REF(VAR7,1),O,C,2.5,1),COLORBLUE;
    STICKLINE(VAR7<1*REF(VAR7,1) AND C<O,O,C,2.5,0),COLORBLACK;
    STICKLINE(VAR7<1*REF(VAR7,1) AND C<O,O,C,2.3,0),COLORBLUE;
    STICKLINE(VAR7>1*REF(VAR7,1),H,L,0,1),COLORRED;
    STICKLINE(VAR7>1*REF(VAR7,1),O,C,2.5,1),COLORRED;
    STICKLINE(VAR7>1*REF(VAR7,1) AND C<O,O,C,2.5,0),COLOR0000DD;
    STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),H,L,0,1),COLORGREEN;
    STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1),O,C,2.5,1),COLORGREEN;
STICKLINE(VAR7<1*REF(VAR7,1) AND VAR9>1*REF(VAR9,1) AND C<O,O,C,2.5,0),COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
STICKLINE(买进条件,H,L,0,1),COLORWHITE,LINETHICK1;
STICKLINE(买进条件,O,C,2.5,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);
STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;
STICKLINE(加码条件,O,C,2.5,0),COLORYELLOW,LINETHICK2;

给:=EMA(C,2),COLORRED;
力:=EMA(SLOPE(C,9)*20+C,37);
买:=CROSS(给,力);
卖:=CROSS(力,给);


STICKLINE(CROSS(给,力),OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(CROSS(力,给),OPEN,CLOSE,2.5,0),COLORWHITE;
AA1:=MA(C,5);
BB1:=MA(C,15);
AF:=CROSS(AA1,BB1);
STICKLINE(AF,LLV(L,4),LLV(L,4),50,1),COLORYELLOW,LINETHICK3;
DRAWTEXT(AF,LLV(L,4)*0.95,''),COLORRED;

年线:=EMA(C,120);
追涨:EMA(C,3),COLORWHITE,LINETHICK2;
大行情:年线-(追涨-年线),COLORGREEN,LINETHICK2;

陈方 发表于 2011-10-8 11:40

顶一下,支持!!!!:handshake

陈方 发表于 2011-10-9 21:52

顶一下,支持!!!!:handshake

老兵新传 发表于 2011-10-9 23:50

:handshake

获嘉小马哥 发表于 2011-10-9 23:54

人,人生,生命,思想,爱,恨,名,利,不过一执念吧了,看开看淡看清看轻,贪!慎!痴!道!悟!

清雨居 发表于 2011-10-11 09:43

感谢楼主分享。

海纳百川行 发表于 2011-10-11 12:53

好好学习,天天向上

武夷山 发表于 2011-10-12 12:09

10 学分
转载请注明出自股海明灯论坛 http://www.178448.com/,本贴地址:http://www.178448.com/thread-314346-1-1.html
页: [1] 2
查看完整版本: 发一个我的自用指标