#最新
文华财经红绿多空矩形框指标公式源码

2024-07-28 0 86,232

文华财经红绿多空矩形框指标公式源码

RB:=3;
HC:=2;
BS:=0;
DV:=1;
IK:=6;
X_1:=IF(HC=1 OR HC=3,HIGH,CLOSE);
X_2:=IF(HC=1 OR HC=3,LOW,CLOSE);
X_3:=IK=1 OR IK=5 OR IK=6;
X_4:=IK=2 OR IK=5 OR IK=6;
X_5:=IK=3 OR IK=6;
X_6:=IK=4 OR IK=6;
X_7:=1;
X_8:=IF(X_7=1,REF(X_7,1)-1,IF(X_7=(-1),REF(X_7,1)+1,X_7));
X_9:=IF(X_8<0,X_8+1,X_8-1);
X_10:=TROUGHBARS(C,RB,1,1);
X_11:=PEAKBARS(C,RB,1,1);
X_12:=IF(X_10=0,(-1),IF(X_11=0,1,0));
X_13:=IF(X_10=0,X_11,IF(X_11=0,-X_10,IF(X_10>X_11,X_11,-X_10)));
X_14:=1;
X_15:=BARSLAST(X_14<0);
X_16:=BARSLAST(X_14>0);
X_17:=IF(X_15=0,(-1),IF(X_16=0,1,0));
X_18:=IF(X_15=0,X_16,IF(X_16=0,-X_15,IF(X_15>X_16,X_16,-X_15)));
X_19:=IF(HC=2,X_12,IF(HC=3,X_17,X_7));
X_20:=IF(HC=2,X_13,IF(HC=3,X_18,X_9));
X_21:=IF(X_20<0,-X_20,X_20);
周期:X_21,NODRAW,COLORWHITE;
X_22:=IF(X_20>0,100*(X_2/REF(X_1,X_21)-1),100*(X_1/REF(X_2,X_21)-1));
涨跌幅:X_22,NODRAW,COLORWHITE;

X_24:=IF(BS=0,X_21,MIN(X_21,BS));
X_25:=IF(X_20>0,100*(X_2/REF(X_1,X_24)-1),100*(X_1/REF(X_2,X_24)-1));

DRAWLINE(X_3 AND X_19=(-1),X_2,X_3 AND X_19=1,X_1,0),DOT,COLORYELLOW;
DRAWLINE(X_3 AND X_19=1,X_1,X_3 AND X_19=(-1),X_2,0),DOT,COLORYELLOW;

X_29:=BARSLAST(X_19=1);
X_30:=BARSLAST(X_19=(-1));

X_31:=BARSLAST(X_19=1);
X_32:=BARSLAST(X_19=(-1));
X_33:=IF(X_31=0 OR X_32=0,NULL,(REF(X_1,X_31)+REF(X_2,X_32))/2);
R50%:IF(X_5,X_33,NULL),POINTDOT,COLORWHITE;
X_34:=IF(HIGH<REF(LOW,1),REF(LOW,1),HIGH);
X_35:=IF(LOW>REF(HIGH,1),REF(HIGH,1),LOW);
X_36:=HHV(X_34,3);
X_37:=LLV(X_35,3);
X_38:=BARSLAST(X_37<REF(X_37,1));
X_39:=BARSLAST(X_36>REF(X_36,1));
X_40:=IF(HHV(X_34,X_39+1)=X_34,1,0);
X_41:=IF(LLV(X_35,X_38+1)=X_35,1,0);
X_42:=BARSLAST(X_40);
X_43:=REF(LLV(X_35,3),X_42);
X_44:=BARSLAST(X_41);
X_45:=REF(HHV(X_34,3),X_44);
X_46:=VALUEWHEN(X_45>0,X_45);
X_47:=VALUEWHEN(X_43>0,X_43);
X_48:=IF(CLOSE>X_46,(-1),IF(CLOSE<X_47,1,0));
X_49:=VALUEWHEN(X_48<>0,X_48);
X_50:=BARSLAST(CROSS(0,X_49));
X_51:=BARSLAST(CROSS(X_49,0));
X_52:=IF(X_49=1,IF(LLV(X_46,X_51+1)=X_46,X_46,LLV(X_46,X_51+1)),X_46);
X_53:=IF(X_49=(-1),IF(HHV(X_47,X_50+1)=X_47,X_47,HHV(X_47,X_50+1)),X_47);
X_54:=IF(CLOSE>X_52,(-1),IF(CLOSE<X_53,1,0));
X_55:=VALUEWHEN(X_54<>0,X_54);
X_56:=BARSLAST(CROSS(0,X_54));
X_57:=BARSLAST(CROSS(X_54,0));

X_58:=IF(X_55=1,IF(LLV(X_52,X_57+1)=X_52,X_52,LLV(X_52,X_57+1)),IF(HHV(X_53,X_56+1)=X_53,X_53,HHV(X_53,X_56+1)));

AA:=DATE<>REFX(DATE,1)||ISLASTBAR;
OO:=REF(O,DAYBARPOS-1);
CC:=VALUEWHEN(AA,C);
HH:=VALUEWHEN(AA,HHV(H,DAYBARPOS));
LL:=VALUEWHEN(AA,LLV(L,DAYBARPOS));
DRAWLINE(AA,CC,CC>OO,OO,COLORRED);
DRAWLINE3(AA&&CC>OO,CC,DAYBARPOS-1,AA&&CC>OO,OO,DAYBARPOS-1,0),COLORRED;
DRAWSL(AA&&CC>OO,CC,0,-DAYBARPOS+1,0,COLORRED);
DRAWSL(AA&&CC>OO,OO,0,-DAYBARPOS+1,0,COLORRED);
DRAWLINE(AA,CC,CC<OO,OO,COLORGREEN);
DRAWLINE3(AA&&CC<OO,CC,DAYBARPOS-1,AA&&CC<OO,OO,DAYBARPOS-1,0),COLORGREEN;
DRAWSL(AA&&CC<OO,CC,0,-DAYBARPOS+1,0,COLORGREEN);
DRAWSL(AA&&CC<OO,OO,0,-DAYBARPOS+1,0,COLORGREEN);

文华财经红绿多空矩形框指标公式源码

常见问题及下载声明: 1、指标不提供具体的使用方法,详情里一般会说明使用建议,需自行学习研究。 2、指标下载后,代表已对该指标认可,顾不退款! 3、指标不会安装,可在首页点击指标公式安装,各大软件指标安装教程。 4、指标是分析学习工具,不能依赖操作,仅供学习之用,依次操作,盈亏自负! 转载文章声明:本网站转载文章仅为传播更多期货行业信息,并不代表本网站赞同其观点,本网站也不保证文章内容的真实性、准确性和可靠性、完整性。 文章解释权归原作者所有,依次操作,所有后果自行承担,与本站无任何关系。如该文章涉及作品内容、版权或禁止转载的,请及时联系,我们将在第一时间处理。

云析赢指标公式网首席工程师

相关文章

发表评论
暂无评论