圆弧前不显示水平线 [文华财经]
-
咨询内容:
DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1);
DRAWKLINE1(H,O,L,C);
低天:=21;
高天:=13;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
CURR:=CURRBARSCOUNT;
高低:=TRENDLINES(CURR=高天,H,CURR=低天,L);
低高:=TRENDLINES(CURR=低天,L,CURR=高天,H);
高低线:=IF(高天>低天,高低,低高);
//DRAWBAND(高低线,RGB(225,226,199),高低线,RGB(225,226,199));
FILLRGN(高低线>=高低线,高低线,高低线,RGB(225,226,199));
FILLRGN(高低线<高低线,高低线,高低线,RGB(225,226,199));
IF(CURR=高天,H,IF(CURR=低天,L,IF(CURR=ROUND((低天+高天)/2,1),高低线,NULL))),COLORAA00AA,CROSSDOT,LINETHICK3;
SH:=REFX1(REF(H,BARSLAST(CURR=高天)),10000);
SL:=REFX1(REF(L,BARSLAST(CURR=低天)),10000);
高低距:=SH-SL;
天距:=ABS(低天-高天);
PR:=ABS(低天-高天)/2+IF(高天>低天,低天,高天);
RN:(SH+SL)/2;
Y弧:=(SH*SL);
{半径}
BX:=2*(SH*SL)/天距;
BY:=(SH*SL)/高低距;
XW:=IF(CURR<PR,PR-CURR,CURR-PR)*BX;
SY:=IF(XW<Y弧,SQRT(Y弧*Y弧-XW*XW),0)/BY;
Y震谱1:=IF(高天<低天,RN+SY,RN-SY),COLORRED;
Y震谱2:=IF(高天<低天,RN-SY,RN+SY),COLORRED;
高点:HHV(Y震谱1,10);
XW11:IF(REF(Y震谱1,1)<高点,高点,高点),COLORYELLOW;
低点:LLV(Y震谱1,(SH*SL)*2);
XW112:IF(REF(Y震谱1,1)>Y震谱1,Y震谱1,低点);
Y弧1:=(SH*SL)/2;
{半径}
BX1:=2*(SH*SL)/天距;
BY1:=(SH*SL)/高低距;
XW1:=IF(CURR<PR,PR-CURR,CURR-PR)*BX1;
SY1:=IF(XW<Y弧,SQRT(Y弧1*Y弧1-XW1*XW1),0)/BY1;
Y震谱3:=IF(高天<低天,RN+SY1,RN-SY1),COLORRED;
Y震谱4:=IF(高天<低天,RN-SY1,RN+SY1),COLORRED;
高点1:HHV(Y震谱3,10),COLORBLUE;
XW111:IF(REF(Y震谱3,1)<高点1,高点1,高点1);
XG:=CROSS(C,高点) OR CROSS(C,高点1) AND V/REF(MA(V,5),1)>1.2;
DRAWTEXT(CURRBARSCOUNT<10 AND XG ,低点-3,'圆弧突破',VALIGN0,COLORYELLOW;
文件名:ab75f9d771a11e0ea87c5952f5ecca6.png来源:程序化99
-
文华技术人员:
参考:
DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1); DRAWKLINE1(H,O,L,C); 低天:=21; 高天:=13; CURRBARSCOUNT:=DATACOUNT-BARPOS+1; CURR:=CURRBARSCOUNT; 高低:=TRENDLINES(CURR=高天,H,CURR=低天,L); 低高:=TRENDLINES(CURR=低天,L,CURR=高天,H); 高低线:=IF(高天>低天,高低,低高); //DRAWBAND(高低线,RGB(225,226,199),高低线,RGB(225,226,199)); FILLRGN(高低线>=高低线,高低线,高低线,RGB(225,226,199)); FILLRGN(高低线<高低线,高低线,高低线,RGB(225,226,199)); IF(CURR=高天,H,IF(CURR=低天,L,IF(CURR=ROUND((低天+高天)/2,1),高低线,NULL))),COLORAA00AA,CROSSDOT,LINETHICK3; SH:=REFX1(REF(H,BARSLAST(CURR=高天)),10000); SL:=REFX1(REF(L,BARSLAST(CURR=低天)),10000); 高低距:=SH-SL; 天距:=ABS(低天-高天); PR:=ABS(低天-高天)/2+IF(高天>低天,低天,高天); RN:(SH+SL)/2,NODRAW; Y弧:=(SH*SL); {半径} BX:=2*(SH*SL)/天距; BY:=(SH*SL)/高低距; XW:=IF(CURR<PR,PR-CURR,CURR-PR)*BX; SY:=IF(XW<Y弧,SQRT(Y弧*Y弧-XW*XW),0)/BY; Y震谱1:=IF(高天<低天,RN+SY,RN-SY),COLORRED; Y震谱2:=IF(高天<低天,RN-SY,RN+SY),COLORRED; 高点:HHV(Y震谱1,10),NODRAW; QQ:=BACKSET(ISLASTBAR,BARSLAST(CROSS(高点>REF(高点,1),0.5))+2); XW11:IF(REF(Y震谱1,1)<=高点&&QQ,高点,NULL),COLORYELLOW;
低点:LLV(Y震谱1,(SH*SL)*2),NODRAW; XW112:IF(REF(Y震谱1,1)>Y震谱1&&QQ,Y震谱1,NULL);
Y弧1:=(SH*SL)/2; {半径} BX1:=2*(SH*SL)/天距; BY1:=(SH*SL)/高低距; XW1:=IF(CURR<PR,PR-CURR,CURR-PR)*BX1; SY1:=IF(XW<Y弧,SQRT(Y弧1*Y弧1-XW1*XW1),0)/BY1; Y震谱3:=IF(高天<低天,RN+SY1,RN-SY1),COLORRED; Y震谱4:=IF(高天<低天,RN-SY1,RN+SY1),COLORRED; 高点1:HHV(Y震谱3,10),COLORBLUE,NODRAW; XW111:IF(REF(Y震谱3,1)<高点1&&QQ,高点1,NULL); XG:=CROSS(C,高点) OR CROSS(C,高点1) AND V/REF(MA(V,5),1)>1.2; DRAWTEXT(CURRBARSCOUNT<10 AND XG ,低点-3,'圆弧突破',VALIGN0,COLORYELLOW;
来源: WWW.CXH99.COM
-
文华客服:
文件名:f9564c6792a1361d9bec02c3a2b99d9.png -
网友回复:
这样再看下:
DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1); DRAWKLINE1(H,O,L,C); 低天:=21; 高天:=13; CURRBARSCOUNT:=DATACOUNT-BARPOS+1; CURR:=CURRBARSCOUNT; 高低:=TRENDLINES(CURR=高天,H,CURR=低天,L); 低高:=TRENDLINES(CURR=低天,L,CURR=高天,H); 高低线:=IF(高天>低天,高低,低高); //DRAWBAND(高低线,RGB(225,226,199),高低线,RGB(225,226,199)); FILLRGN(高低线>=高低线,高低线,高低线,RGB(225,226,199)); FILLRGN(高低线<高低线,高低线,高低线,RGB(225,226,199)); IF(CURR=高天,H,IF(CURR=低天,L,IF(CURR=ROUND((低天+高天)/2,1),高低线,NULL))),COLORAA00AA,CROSSDOT,LINETHICK3; SH:=REFX1(REF(H,BARSLAST(CURR=高天)),10000); SL:=REFX1(REF(L,BARSLAST(CURR=低天)),10000); 高低距:=SH-SL; 天距:=ABS(低天-高天); PR:=ABS(低天-高天)/2+IF(高天>低天,低天,高天); RN:(SH+SL)/2,NODRAW; Y弧:=(SH*SL); {半径} BX:=2*(SH*SL)/天距; BY:=(SH*SL)/高低距; XW:=IF(CURR<PR,PR-CURR,CURR-PR)*BX; SY:=IF(XW<Y弧,SQRT(Y弧*Y弧-XW*XW),0)/BY; Y震谱1:=IF(高天<低天,RN+SY,RN-SY),COLORRED; Y震谱2:=IF(高天<低天,RN-SY,RN+SY),COLORRED; 高点:HHV(Y震谱1,10),NODRAW; QQ:=BACKSET(ISLASTBAR,BARSLAST(CROSS(高点>REF(高点,1),0.5))+2);DRAWSL(ISLASTBAR,高点,0,-BARSLAST(CROSS(QQ=1,0.5)),0,COLORGRAY); XW11:IF(REF(Y震谱1,1)<=高点&&QQ,高点,NULL),COLORYELLOW;
低点:LLV(Y震谱1,(SH*SL)*2),NODRAW; XW112:IF(REF(Y震谱1,1)>Y震谱1&&QQ,Y震谱1,NULL);
Y弧1:=(SH*SL)/2; {半径} BX1:=2*(SH*SL)/天距; BY1:=(SH*SL)/高低距; XW1:=IF(CURR<PR,PR-CURR,CURR-PR)*BX1; SY1:=IF(XW<Y弧,SQRT(Y弧1*Y弧1-XW1*XW1),0)/BY1; Y震谱3:=IF(高天<低天,RN+SY1,RN-SY1),COLORRED; Y震谱4:=IF(高天<低天,RN-SY1,RN+SY1),COLORRED; 高点1:HHV(Y震谱3,10),COLORBLUE,NODRAW; XW111:IF(REF(Y震谱3,1)<高点1&&QQ,高点1,NULL); XG:=CROSS(C,高点) OR CROSS(C,高点1) AND V/REF(MA(V,5),1)>1.2; DRAWTEXT(CURRBARSCOUNT<10 AND XG ,低点-3,'圆弧突破',VALIGN0,COLORYELLOW;
-
网友回复:
文件名:6b201d18f686ef7f5f6ec5405920e3d.png
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容