涨跌幅度(主图,源码,贴图)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-01-30 20:26:00
公式简介:
祝朋友们新的一年。家人幸福安康!兔年发财!
此指标是利用近期的低高点(也可是波段)的涨跌幅度研判来做止跌止盈操作
{涨跌幅度 ZD: 0 55 0 J: 0 2 0 ZG:0 255 0 J2: 0 2 0}
最低:=TROUGHBARS(L,ZD,1);
低价:=REF(L,BARSLAST(最低=0));
低价_:DRAWLINE(最低=0 AND ZD>0,L,ISLASTBAR,低价,0),COLORFFFF00;
FU:=C-低价_;
低到当前幅度:FU/低价_*100,NODRAW,COLOR00FFFF;
_3%:DRAWLINE(最低=0 AND J>=1,L*1.03,ISLASTBAR,低价*1.03,0),COLOR999999;
_5%:DRAWLINE(最低=0 AND J>=1,L*1.05,ISLASTBAR,低价*1.05,0),COLOR999999;
_8%:DRAWLINE(最低=0 AND J>=1,L*1.08,ISLASTBAR,低价*1.08,0),COLOR999999;
_13%:DRAWLINE(最低=0 AND J>=1,L*1.13,ISLASTBAR,低价*1.13,0),COLOR999999;
_18%:DRAWLINE(最低=0 AND J>=2,L*1.18,ISLASTBAR,低价*1.18,0),COLOR999999;
_25%:DRAWLINE(最低=0 AND J>=2,L*1.25,ISLASTBAR,低价*1.25,0),COLOR999999;
DRAWNUMBER(最低=0 AND 低价_,低价_,低价),COLOR999900;
DRAWNUMBER(最低=0 AND _3%,_3%,L*1.03),COLOR999999;
DRAWTEXT(最低=0 AND _3%,_3%*1.009,'3%'),COLOR208FFF;
DRAWNUMBER(最低=0 AND _5%,_5%,L*1.05),COLOR999999;
DRAWTEXT(最低=0 AND _5%,_5%*1.009,'5%'),COLOR208FFF;
DRAWNUMBER(最低=0 AND _8%,_8%,L*1.08),COLOR999999;
DRAWTEXT(最低=0 AND _8%,_8%*1.009,'8%'),COLOR208FFF;
DRAWNUMBER(最低=0 AND _13%,_13%,L*1.13),COLOR999999;
DRAWTEXT(最低=0 AND _13%,_13%*1.009,'13%'),COLOR208FFF;
DRAWNUMBER(最低=0 AND _18%,_18%,L*1.18),COLOR999999;
DRAWTEXT(最低=0 AND _18%,_18%*1.009,'18%'),COLOR208FFF;
DRAWNUMBER(最低=0 AND _25%,_25%,L*1.25),COLOR999999;
DRAWTEXT(最低=0 AND _25%,_25%*1.009,'25%'),COLOR208FFF;
最高:=PEAKBARS(H,ZG,1);
高价:=REF(H,BARSLAST(最高=0));
高价_:DRAWLINE(最高=0 AND ZG>0,H,ISLASTBAR,高价,0),COLORFFFF00;
_3%A:DRAWLINE(最高=0 AND J2>=1,H*0.97,ISLASTBAR,高价*0.97,0),COLOR999900;
_5%A:DRAWLINE(最高=0 AND J2>=1,H*0.95,ISLASTBAR,高价*0.95,0),COLOR999900;
_8%A:DRAWLINE(最高=0 AND J2>=1,H*0.92,ISLASTBAR,高价*0.92,0),COLOR999900;
_13%A:DRAWLINE(最高=0 AND J2>=1,H*0.87,ISLASTBAR,高价*0.87,0),COLOR999900;
_18%A:DRAWLINE(最高=0 AND J2>=1,H*0.82,ISLASTBAR,高价*0.82,0),COLOR999900;
_28%A:DRAWLINE(最高=0 AND J2>=2,H*0.72,ISLASTBAR,高价*0.72,0),COLOR999900;
_36%A:DRAWLINE(最高=0 AND J2>=2,H*0.64,ISLASTBAR,高价*0.64,0),COLOR999900;
DRAWNUMBER(最高=0 AND 高价_,高价_,高价),COLOR999900;
DRAWNUMBER(最高=0 AND _3%A,_3%A,H*0.97),COLORBBBBBB;
DRAWTEXT(最高=0 AND _3%A,_3%A*1.0099,' 3%'),COLOR00DDDD;
DRAWNUMBER(最高=0 AND _5%A,_5%A,H*0.95),COLOR999999;
DRAWTEXT(最高=0 AND _5%A,_5%A*1.0099,' 5%'),COLOR00DDDD;
DRAWNUMBER(最高=0 AND _8%A,_8%A,H*0.92),COLOR999999;
DRAWTEXT(最高=0 AND _8%A,_8%A*1.0099,' 8%'),COLOR00DDDD;
DRAWNUMBER(最高=0 AND _13%A,_13%A,H*0.87),COLOR999999;
DRAWTEXT(最高=0 AND _13%A,_13%A*1.0099,' 13%'),COLOR00DDDD;
DRAWNUMBER(最高=0 AND _18%A,_18%A,H*0.82),COLOR999999;
DRAWTEXT(最高=0 AND _18%A,_18%A*1.0099,' 18%'),COLOR00DDDD;
DRAWNUMBER(最高=0 AND _28%A,_28%A,H*0.72),COLOR999999;
DRAWTEXT(最高=0 AND _28%A,_28%A*1.0099,' 28%'),COLOR00DDDD;
DRAWNUMBER(最高=0 AND _36%A,_36%A,H*0.64),COLOR999999;
DRAWTEXT(最高=0 AND _36%A,_36%A*1.0099,' 36%'),COLOR00DDDD;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
GB:IF(RSI1>76,H*1.001,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORFFFF00;
GBB:IF(RSI1>80,H*1.002,DRAWNULL),CROSSDOT,LINETHICK3,COLOR0000FF;
AS:=(O+H+L+C)/4;
BL:EMA(AS,17),LINETHICK2,COLORFF6000;
DRAWNUMBER(ISLASTBAR AND BL,BL*1.005,BL);
XGM:=CROSS(C,BL);
DRAWICON(XGM,BL,9);
IF(BL>REF(BL,1),BL,DRAWNULL),LINETHICK2,COLORYELLOW;
{请设置计算参数:
ZD: Param#0 (0.00--55.00) 调整任意低点;
J: Param#1 (0.00--2.00) 显示涨幅幅度
ZG: Param#2 (0.00--255.00)调整任意高点;
J2: Param#3 (0.00--2.00) 显示跌幅幅度}
使用旧版本用这个
{涨跌幅度 ZD: 0 55 0 J: 0 2 0 ZG:0 255 0 J2: 0 2 0}
最低:=TROUGHBARS(L,ZD,1);
低价:=REF(L,BARSLAST(最低=0));
低价_:DRAWLINE(最低=0 AND ZD>0,L,ISLASTBAR,低价,0),COLORFFFF00;
FU:=C-低价_;
低到当前幅度:FU/低价_*100,NODRAW,COLOR00FFFF;
_3%:DRAWLINE(最低=0 AND J>=1,L*1.03,ISLASTBAR,低价*1.03,0),COLOR999999;
_5%:DRAWLINE(最低=0 AND J>=1,L*1.05,ISLASTBAR,低价*1.05,0),COLOR999999;
_8%:DRAWLINE(最低=0 AND J>=1,L*1.08,ISLASTBAR,低价*1.08,0),COLOR999999;
_13%:DRAWLINE(最低=0 AND J>=1,L*1.13,ISLASTBAR,低价*1.13,0),COLOR999999;
_18%:DRAWLINE(最低=0 AND J>=2,L*1.18,ISLASTBAR,低价*1.18,0),COLOR999999;
_25%:DRAWLINE(最低=0 AND J>=2,L*1.25,ISLASTBAR,低价*1.25,0),COLOR999999;
最高:=PEAKBARS(H,ZG,1);
高价:=REF(H,BARSLAST(最高=0));
高价_:DRAWLINE(最高=0 AND ZG>0,H,ISLASTBAR,高价,0),COLORFFFF00;
_3%A:DRAWLINE(最高=0 AND J2>=1,H*0.97,ISLASTBAR,高价*0.97,0),COLOR999900;
_5%A:DRAWLINE(最高=0 AND J2>=1,H*0.95,ISLASTBAR,高价*0.95,0),COLOR999900;
_8%A:DRAWLINE(最高=0 AND J2>=1,H*0.92,ISLASTBAR,高价*0.92,0),COLOR999900;
_13%A:DRAWLINE(最高=0 AND J2>=1,H*0.87,ISLASTBAR,高价*0.87,0),COLOR999900;
_18%A:DRAWLINE(最高=0 AND J2>=1,H*0.82,ISLASTBAR,高价*0.82,0),COLOR999900;
_28%A:DRAWLINE(最高=0 AND J2>=2,H*0.72,ISLASTBAR,高价*0.72,0),COLOR999900;
_36%A:DRAWLINE(最高=0 AND J2>=2,H*0.64,ISLASTBAR,高价*0.64,0),COLOR999900;
DRAWTEXT(最低=0 AND _3%,_3%*1.009,'3%'),COLOR208FFF;
DRAWTEXT(最低=0 AND _5%,_5%*1.009,'5%'),COLOR208FFF;
DRAWTEXT(最低=0 AND _8%,_8%*1.009,'8%'),COLOR208FFF;
DRAWTEXT(最低=0 AND _13%,_13%*1.009,'13%'),COLOR208FFF;
DRAWTEXT(最低=0 AND _18%,_18%*1.009,'18%'),COLOR208FFF;
DRAWTEXT(最低=0 AND _25%,_25%*1.009,'25%'),COLOR208FFF;
DRAWTEXT(最高=0 AND _3%A,_3%A*1.0099,' 3%'),COLOR00DDDD;
DRAWTEXT(最高=0 AND _5%A,_5%A*1.0099,' 5%'),COLOR00DDDD;
DRAWTEXT(最高=0 AND _8%A,_8%A*1.0099,' 8%'),COLOR00DDDD;
DRAWTEXT(最高=0 AND _13%A,_13%A*1.0099,' 13%'),COLOR00DDDD;
DRAWTEXT(最高=0 AND _18%A,_18%A*1.0099,' 18%'),COLOR00DDDD;
DRAWTEXT(最高=0 AND _28%A,_28%A*1.0099,' 28%'),COLOR00DDDD;
DRAWTEXT(最高=0 AND _36%A,_36%A*1.0099,' 36%'),COLOR00DDDD;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
GB:IF(RSI1>76,H*1.001,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORFFFF00;
GBB:IF(RSI1>80,H*1.002,DRAWNULL),CROSSDOT,LINETHICK3,COLOR0000FF;
AS:=(O+H+L+C)/4;
BL:EMA(AS,17),LINETHICK2,COLORFF6000;
DRAWNUMBER(ISLASTBAR AND BL,BL*1.005,BL);
XGM:=CROSS(C,BL);
DRAWICON(XGM,BL,9);
IF(BL>REF(BL,1),BL,DRAWNULL),LINETHICK2,COLORYELLOW;
[url=http://www.goodgupiao.com/gupiaogongshi/11988.html][B]涨跌幅度(主图,源码,贴图)[/B][/url]