指标 修改 [文华财经]
-
咨询内容:
MA10:MA(C,8),COLORRED,LINETHICK1;MA20:MA(C,18),COLORGREEN,LINETHICK1;
MA120:MA(C,120),COLORGRAY,LINETHICK1;//IF(C<MA60,MA60,NULL),RGB(0,128,128),LINETHICK2;//IF(C<MA120,MA120,NULL),RGB(0,0,255),LINETHICK2;DRAWICON(CROSS(MA10,MA20),L,4),VALIGN0;DRAWICON(CROSS(MA20,MA10),H,5),VALIGN2;DRAWCOLORKLINE(C>MA20,COLORRED,0);DRAWCOLORKLINE(C<=MA20,COLORGREEN,0);
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H,'CO5';DDD:=BARSLAST(CC);CURRBARSCOUNT:=DATACOUNT-BARPOS;GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=REFX1(DINGBUTS,10000);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=REFX1(DINGBUTS1,10000);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L,'CO4';DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=REFX1(DDTS1,10000);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=REFX1(DDTS2,10000);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT;DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;
老师 你好 可以把上面这个指标中的小箭头 如图 圈中 小箭头 去除
谢谢来源:程序化99
-
文华技术人员:
参考:
MA10:MA(C,8),COLORRED,LINETHICK1; MA20:MA(C,18),COLORGREEN,LINETHICK1;
MA120:MA(C,120),COLORGRAY,LINETHICK1; //IF(C<MA60,MA60,NULL),RGB(0,128,128),LINETHICK2; //IF(C<MA120,MA120,NULL),RGB(0,0,255),LINETHICK2; //DRAWICON(CROSS(MA10,MA20),L,4),VALIGN0; //DRAWICON(CROSS(MA20,MA10),H,5),VALIGN2; DRAWCOLORKLINE(C>MA20,COLORRED,0); DRAWCOLORKLINE(C<=MA20,COLORGREEN,0);
HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); //DRAWICON(CC,H,'CO5'; DDD:=BARSLAST(CC); CURRBARSCOUNT:=DATACOUNT-BARPOS; GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H); {顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=REFX1(DINGBUTS,10000); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=REFX1(DINGBUTS1,10000); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); //DRAWICON(CC1,L,'CO4'; DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=REFX1(DDTS1,10000); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=REFX1(DDTS2,10000);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;来源: WWW.CXH99.COM
-
文华客服:
谢谢了
上图指标中有 虚线支持 线现在想要 虚线压力 线
加入指标部分 可以用其它颜色 谢谢 -
网友回复:
您需要自己来定义压力线,我们帮你分析下。
-
网友回复:
MA10:MA(C,10),COLORRED,LINETHICK1;
MA20:MA(C,20),COLORGREEN,LINETHICK1;
MA60:MA(C,60),COLORMAGENTA,LINETHICK1;
MA120:MA(C,120),COLORWHITE,LINETHICK1;
//IF(C<MA60,MA60,NULL),RGB(0,128,128),LINETHICK2;
//IF(C<MA120,MA120,NULL),RGB(0,0,255),LINETHICK2;
DRAWICON(CROSS(MA10,MA20),L,4),VALIGN0;
DRAWICON(CROSS(MA20,MA10),H,5),VALIGN2;
DRAWCOLORKLINE(C>MA20,COLORRED,0);
DRAWCOLORKLINE(C<=MA20,COLORGREEN,0);
HIGHN:=10; LOWN:=10; HIGHDISPLAY:=0; LOWDISPLAY:=0; ZGDISPLAY:=0; MADISPLAY:=0; AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1); QY:=BACKSET(AA,HIGHN+1); CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1); DRAWICON(CC,H,'CO5'; DDD:=BARSLAST(CC); CURRBARSCOUNT:=DATACOUNT-BARPOS; GDTS:=IF(CC,CURRBARSCOUNT,0); DINGBU:=IF(DDD,REF(H,DDD),H); {顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS); DINGBU1:=REF(DINGBU,DDD+1); GDCS1:=REFX1(DINGBUTS,10000); DINGBUTS1:=REF(DINGBUTS,DDD+1); GDCS2:=REFX1(DINGBUTS1,10000); DINGBU2:=REF(DINGBU1,DDD+1); MM:=IF(CURRBARSCOUNT>GDCS2,0,1); 高点压力:TRENDLINES(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H),COLORGREEN,DOT;
DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS1,H,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=GDCS2,H,COLORLIGHTGREY),POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1); QY1:=BACKSET(AA1,LOWN+1); CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1); DRAWICON(CC1,L,'CO4'; DD1:=BARSLAST(CC1); DDTS:=IF(CC1,CURRBARSCOUNT,0); YDB:=IF(DD1,REF(L,DD1),L); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); DDCS1:=REFX1(DDTS1,10000); ZDB:=REF(YDB,DD1+1); DDTS2:=REF(DDTS1,DD1+1); DDCS2:=REFX1(DDTS2,10000); 低点支撑:TRENDLINES(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L),COLORRED,DOT; ZGSTAR:=(高点压力+低点支撑)/2; ZGEND:=REFX1((高点压力+低点支撑)/2,10000); STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);
DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS1,L,COLORLIGHTGREY),POINTDOT; DRAWHORIZONTALLINE(CURRBARSCOUNT=DDCS2,L,COLORLIGHTGREY),POINTDOT;
老师 你好 找到最初的指标 我现在只需要 白色虚线 压力 和支撑 2种 谢谢
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容