把筹码公式改为飞狐可用_公式指标编写

过去的时间段内最高,最低价

过去的时间段内最高,最低价

股票公式大全

编写条件:

编写方法:

 网友求助:

ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}

SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}

ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率}

ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}

ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}

ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}

ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}

ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}

ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}

SH8:=EMA(ZSHTL,8);

DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);

{散户套牢筹码}

STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;

{散户筹码警戒}

STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00FF00;

{主力控盘筹码}

STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;

{筑顶风险区}

STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;

{顶部:(ZZLKP>75),COLORFFFFFF;}

{主力筹码警戒}

STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;

{筑底散兵坑}

STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;

{底部:(ZSHTL>=90),COLOR66FFCC;}

{筹码总量上升}

IF(ZCMZL,ZCMZL>REF(ZCMZL,1),DRAWNULL),COLOR0066FF,LINETHICK1;

{增量资金};

{//------【数值显示】}

散户套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2;

主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2;

资金流入强度:ZJLRQD,LINETHICK2,COLORRED;

资金流入强度2:IF(ZJLRQD<10,ZJLRQD,DRAWNULL),LINETHICK2,COLORWHITE;

市场筹码总量:INTPART(ZCMZL),COLORWHITE,NODRAW;

DRAWICON(CROSS(主力控盘系数,散户套牢系数),散户套牢系数-5,11);

DRAWICON(CROSS(资金流入强度,散户套牢系数),散户套牢系数-5,17);
 
解答如下:
ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}

SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//散户筹码估算}

ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//散户套牢筹码比率}

ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比率}

ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}

ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}

ZSHJJ:=EMA(ZSHTL,89);{//散户警戒}

ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}

ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}

SH8:=EMA(ZSHTL,8);

DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);

{散户套牢筹码}

STICKLINE(C>0,ZSHTL,ZZLKP,1,0),COLORFFFFFF;

{散户筹码警戒}

STICKLINE(ZSHJJ>REF(ZSHJJ,1),ZSHTL,ZSHJJ,2,0),COLOR00FF00;

{主力控盘筹码}

STICKLINE(C>0,ZZLKP,0,1,0),COLORA4A4A4;

{筑顶风险区}

STICKLINE(ZZLKP>75,ZZLKP,0,1,0),COLORFFFFFF;

{顶部:(ZZLKP>75),COLORFFFFFF;}

{主力筹码警戒}

STICKLINE(ZZLJJ>REF(ZZLJJ,1),ZZLKP,ZZLJJ,2,0),COLORRED;

{筑底散兵坑}

STICKLINE(ZSHTL>=90,ZZLKP,0,2,0),COLOR66FFCC;

{底部:(ZSHTL>=90),COLOR66FFCC;}

{筹码总量上升}

IF(ZCMZL,ZCMZL>REF(ZCMZL,1),0),COLOR0066FF,LINETHICK1;

{增量资金};

{//------【数值显示】}

散户套牢系数:INTPART(ZSHTL),COLORCYAN,LINETHICK2;

主力控盘系数:INTPART(ZZLKP),COLORYELLOW,LINETHICK2;

资金流入强度:ZJLRQD,LINETHICK2,COLORRED;

资金流入强度2:IF(ZJLRQD<10,ZJLRQD,0),LINETHICK2,COLORWHITE;

市场筹码总量:INTPART(ZCMZL),COLORWHITE;

DRAWICON(CROSS(主力控盘系数,散户套牢系数),散户套牢系数-5,11);

DRAWICON(CROSS(资金流入强度,散户套牢系数),散户套牢系数-5,17);

 

{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}炒股软件

定义前一高最高价的办法

定义前一高最高价的办法

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu