{公式名称: V型反转魅力_
公式描述:
无参数
公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式版本: 0
显示小数: 缺省位数
坐标线位置: 自动
额外Y轴分界: 无
参数精灵:无
用法注释:
公式源码:}
X_1:=HHVBARS(HIGH,15);
X_2:=LLVBARS(LOW,15);
X_3:=(REF(CLOSE,X_2)-REF(CLOSE,X_1+1))/REF(CLOSE,X_1+1)*100;
X_4:=(CLOSE-REF(CLOSE,X_2+1))/REF(CLOSE,X_2+1)*100;
X_5:=CLOSE>=REF(CLOSE,X_1);
X_6:=X_1>X_2 AND X_3<(-5) AND COUNT(X_5,X_1+1)=1 AND X_5;
X_7:=BARSLAST(X_6);
X_8:=BACKSET(X_6,X_1+1);
X_9:=BACKSET(X_6,X_2+1);
X_10:=BARSLAST(CROSS(X_8=1,0.5));
X_11:=BARSLAST(CROSS(X_9=1,0.5));
DRAWLINE(X_10=0,HIGH,X_11=0,LOW,0),COLORRED,LINETHICK4;
DRAWLINE(X_11=0,LOW,X_6,LOW,0),COLORRED,LINETHICK4;
DRAWTEXT(X_11=0,LOW*0.95,VARCAT(VARCAT(21,VAR2STR(REFX(X_3,BARSNEXT(X_7=0)),2)),'24')),COLORYELLOW;
DRAWTEXT(X_7=0,HIGH*1.02,VARCAT(VARCAT(22,VAR2STR(REF(X_4,X_7),2)),'24')),COLORYELLOW;
STICKLINE(X_6,CLOSE,OPEN,3.1,0),COLORFF8800;
STICKLINE(X_6,HIGH,LOW,0,0),COLORFF8800;
IF(X_6=1,MIN(CLOSE,OPEN),DRAWNULL);
DRAWLINE(CURRBARSCOUNT,IF(X_6,MIN(CLOSE,OPEN),DRAWNULL),REF(MIN(CLOSE,OPEN),1),REF(IF(X_6,MIN(CLOSE,OPEN),DRAWNULL),1),1),COLORFF8800,LINETHICK3;
DRAWTEXT(ISLASTBAR,DRAWLINE(CURRBARSCOUNT,MIN(CLOSE,OPEN),REF(X_6=1,1),REF(MIN(CLOSE,OPEN),1),1),STRCAT(143,CON2STR(DRAWLINE(CURRBARSCOUNT,MIN(CLOSE,OPEN),REF(X_6=1,1),REF(MIN(CLOSE,OPEN),1),1),'V型反转'))),COLORFF8800;
STICKLINE(X_11=0,CLOSE,OPEN,3.2,0),COLORMAGENTA;
STICKLINE(X_11=0,HIGH,LOW,0,0),COLORMAGENTA;
DRAWLINE(CURRBARSCOUNT,LOW,REF(X_11=0,1),REF(LOW,1),1),COLORMAGENTA,LINETHICK3;
DRAWTEXT(ISLASTBAR,DRAWLINE(CURRBARSCOUNT,LOW,REF(X_11=0,1),REF(LOW,1),1),STRCAT(1565,CON2STR(DRAWLINE(CURRBARSCOUNT,LOW,REF(X_11=0,1),REF(LOW,1),1),'V反底'))),COLORMAGENTA;