[求助]老师帮我修改一下谢谢 [文华财经]
-
咨询内容:
N:=60; P:=0; ZGD:=HHV(H,60); ZGD2:=REFX1(ZGD,10000); ZDD:=LLV(L,60); ZDD2:=REFX1(ZDD,10000); GJ:=(C+H+L+O)/4; 明日阻力:=L+(GJ-L)+(C-L); 明日支撑:=L+(C-GJ); KOH:=L>REF(H,1); KOL:=H<REF(L,1); HIF:=L>REF(H,BARSLAST(KOH)+1); NHIF:=L<=REF(H,BARSLAST(KOH)+1); LIF:=H<REF(L,BARSLAST(KOL)+1); NLIF:=H>=REF(L,BARSLAST(KOL)+1); 下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1); KKK:=SMA(RRRSV,3,1); DDDDD:=((3 * RRRSV) - (2 * KKK)); JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(JJ12,3,1); K24:=SMA(RSV24,3,1); D24:=((3 * RSV24) - (2 * K24)); 压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORFFFFFF; 底部:=LLV(HIGH,30),COLOR00FF00; AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L,N)=LLV(L,2*N+1); QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1); CC:=FILTER(QY,N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1); CURRBARSCOUNT:=REFX1(BARPOS,10000)-BARPOS+1; GDTS:=IF(CC,CURRBARSCOUNT,0); DDTS:=IF(CC1,CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=REFX1(DINGBUTS,10000); DDCS1:=REFX1(DDTS1,10000); GDCS13:=REFX1(REF(HIGH,GDCS1-1),10000); DDCS13:=REFX1(REF(L,DDCS1-1),10000); DINGBUTS1:=REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1); GDCS2:=REFX1(DINGBUTS1,10000); DDCS2:=REFX1(DDTS2,10000); GDCS23:=REFX1(REF(HIGH,DINGBUTS1-1),10000); DDCS23:=REFX1(REF(L,DDTS2-1),10000); XG1:=BACKSET(ISLASTBAR,GDCS1); XD1:=BACKSET(ISLASTBAR,DDCS1); XG2:=BACKSET(ISLASTBAR,DINGBUTS1); XD2:=BACKSET(ISLASTBAR,DDTS2); XDD:=IF(DDCS13<=DDCS23,XD1,XD2); BCG:=SUM(XG1,0); BCD:=SUM(XDD,0); 今日阻力:REF(明日阻力 , 1),NODRAW; 今日支撑:REF(明日支撑 , 1),NODRAW; 压力位:IF(ISLASTBAR,压力2,NULL),NODRAW; 底部位:IF(ISLASTBAR,底部,NULL),NODRAW; 高点压力:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H) ,COLORGREEN,LINETHICK2; 低点支撑:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORBLUE,LINETHICK2; 高:=REFX1(MAX(MAX(MAX(ZGD2,高点压力),GDCS13),GDCS23),10000); 低:=REFX1(MIN(MIN(MIN(ZDD2,DDCS23),DDCS13),低点支撑),10000); ZGSTAR:=(高点压力+低点支撑)/2; ZGEND:=REFX1((高点压力+低点支撑)/2,10000); STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2); DRAWLINE1(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLOR555555,LINETHICK2; M:INTPART(3*N/5),NODRAW; AAA:=REF(H,M)=HHV(H,2*36+1); QYY:=BACKSET(AAA,M+1); CCC:=FILTER(QYY,36) AND H=HHV(H,M+1); DDDD:=BARSLAST(CCC),NODRAW; GDTSS:=IF(CCC,CURRBARSCOUNT,0); DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS); GDCS11:=REFX1(DINGBUTSS,10000);
DINGBUTS11:=REF(DINGBUTSS,DDDD+1); GDCS22:=REFX1(DINGBUTS11,10000); 上缺口:=P=0 AND HIF AND BARSLAST(KOH)<BARSLAST(NHIF) AND BARSLAST(HIF)<BARSLAST(NHIF); HG:=IF(上缺口,REF(H,BARSLAST(KOH)+1),NULL); STICKLINE(上缺口,HG,HG*1.001,10,0),COLOR888888; 下缺口:=P=0 AND LIF AND BARSLAST(KOL)<BARSLAST(NLIF) AND BARSLAST(LIF) <BARSLAST(NLIF); LG:=IF(下缺口,REF(L,BARSLAST(KOL)+1),NULL); STICKLINE(下缺口,LG,LG*0.999,10,0),COLOR888888; DRAWLINE1(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORRED,LINETHICK1; AA11:=REF(L,M)=LLV(L,2*M+1); QY11:=BACKSET(AA11,M+1); CC11:=FILTER(QY11,36) AND L=LLV(L,M+1); DD11:=BARSLAST(CC11); DDTSS:=IF(CC11,CURRBARSCOUNT,0); DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS); DDCS11:=REFX1(DDTS11,10000); DDTS22:=REF(DDTS11,DD11+1); DDCS22:=REFX1(DDTS22,10000); DRAWLINE1(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1), COLORRED,LINETHICK1; STICKLINE1(XG2,GDCS23,GDCS23,0.5,1),COLORWHITE; STICKLINE1(XG1,GDCS13,GDCS13,0.5,1),COLORYELLOW; STICKLINE1(XD2,DDCS23,DDCS23,0.5,1),COLORMAGENTA; STICKLINE1(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN; STICKLINE(ISLASTBAR AND C>=今日阻力,今日阻力,今日阻力,10,1),COLOR0000FF; STICKLINE(ISLASTBAR AND C<今日阻力,今日阻力,今日阻力,10,1),COLOR00FF00; STICKLINE(ISLASTBAR AND C>=今日支撑,今日支撑,今日支撑,10,1),COLORFF00FF; STICKLINE(ISLASTBAR AND C<今日支撑,今日支撑,今日支撑,10,1),COLORFF8800; STICKLINE(ISLASTBAR ,压力位,压力位,120,0),COLORFFFFFF; STICKLINE(ISLASTBAR ,底部位,底部位,100,0),COLOR00FF00;来源:程序化99
-
文华技术人员:
类似这图片下跌变蓝颜色
文件名:333.png来源: WWW.CXH99.COM
-
文华客服:
下跌变蓝色,是对哪个指标进行变色?如果判断下跌?
-
网友回复:
麻烦老师把死叉下跌的线改蓝色,类似于图片
A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
黑马线:=EMA(A1,5),LINETHICK2,COLOR6600FF;
A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
A3:=EMA(C,5);
A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
趋势线:=(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;
A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),H,'',COLOR00FF00;
DRAWTEXT(CROSS(趋势线,0) AND 黑马线<40,H,'马';
DRAWTEXT(CROSS(趋势线,0) AND 黑马线<40,H,'马'; -
网友回复:
4楼的指标只有标注,没有画线
另外,您是想对1楼指标里哪根K线下跌变成蓝色?
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容