通达信平台预测主图指标公式

[复制链接]
查看76 | 回复0 | 2021-8-20 20:04:17 | 显示全部楼层 |阅读模式

前期低点:=5;
前期高点:=5;
最近低点:=5;
XA_1:=IF(DATE<=1980601,1,1);
前期低点价格:LLV(REF(LOW,前期低点-1),1),NODRAW,COLORYELLOW;
前期高点价格:LLV(REF(HIGH,前期高点-1),1),NODRAW,COLORYELLOW;
最近低点价格:LLV(REF(LOW,最近低点-1),1),NODRAW,COLORYELLOW;
XA_2:=前期高点价格/前期低点价格;
XA_3:=最近低点价格*XA_2;
预测一阶平台:CONST(XA_3)*XA_1,NODRAW,COLORRED;
XA_4:=(XA_2-1)*2;
XA_5:=1+XA_4;
XA_6:=最近低点价格*XA_5;
预测二阶平台:CONST(XA_6)*XA_1,NODRAW,COLORRED;
XA_7:=最近低点价格*XA_5*XA_2;
预测三阶平台:CONST(XA_7)*XA_1,NODRAW,COLORRED;
STICKLINE(CURRBARSCOUNT<=最近低点,预测一阶平台,预测一阶平台,5,0),COLORWHITE,LINETHICK2;
STICKLINE(CURRBARSCOUNT<=最近低点,预测二阶平台,预测二阶平台,5,0),COLORWHITE,LINETHICK2;
STICKLINE(CURRBARSCOUNT<=最近低点,预测三阶平台,预测三阶平台,5,0),COLORWHITE,LINETHICK2;
XA_8:=REFDATE(HHV(HIGH,前期低点),DATE);
XA_9:=REFDATE(LLV(LOW,前期低点),DATE);
STICKLINE(CURRBARSCOUNT=前期低点,XA_8,XA_9,0,(-1)),COLORLIGREEN;
XA_10:=REFDATE(HHV(HIGH,前期高点),DATE);
XA_11:=REFDATE(LLV(LOW,前期高点),DATE);
STICKLINE(CURRBARSCOUNT=前期高点,XA_10,XA_11,0,(-1)),COLORLIGREEN;
XA_12:=REFDATE(HHV(HIGH,最近低点),DATE);
XA_13:=REFDATE(LLV(LOW,最近低点),DATE);
STICKLINE(CURRBARSCOUNT=最近低点,XA_12,XA_13,0,(-1)),COLORLIGREEN;

202108201219.jpg

202108201219.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则