1.error C202: 'k': undefined identifier
2.通达信指标仙人指路指标公式(副图+选股)
error C202: 'k': undefined identifier
因为没有源代码,源码只能做错误分析如下:.c(): error C: 'n': undefined identifier
这个错误信息表明.c文件的源码行的变量n没有定义,修改方法,源码在使用前定义下n,源码异动k线源码例如:
int n = 0;.c(): error C: 'k': undefined identifier
这个错误信息表明.c文件的源码行的变量k没有定义,修改方法,源码脚本源码教程在使用前定义下k,源码例如:
int k = 0;通达信指标仙人指路指标公式(副图+选股)
指标介绍
1. 仙人指路指标公式是源码用于股价上升起飞试盘动作的预警,一旦发出信号,源码即表示主力正在试盘拉升,源码此时买入并等待拉升即可;
2. 在仙人指路信号发出后,源码需要关注股价不能处在高位,源码从底部横盘算起涨幅不宜超过%。源码源码输出经常无声同时,源码要严格设置好止损位于止盈位。源码回测胜率平仓条件为+%或-%,蚂蚁宝盒源码或持股个交易日,满足任何一个条件就平仓,胜率%。纪念爱情表白源码但在去除一些高位股及涨停板买不进去的个股后,胜率可达到%,因此选股后需要做减法;
3. 该指标不含未来函数,指标不漂移。
公式源码
{ 仙人指路--副图}
GHC1:=O>REF(C,1) AND L>REF(H,1);
GHC2:=BETWEEN(C/O,1.,0.);
GHC3:=H/MAX(C,O)>MAX(C,O)/MIN(C,O) OR H/MAX(C,O)>1.;
GHC4:=MIN(C,O)/L
GHC5:=BETWEEN(V/REF(V,1),1.1,4);
GHC6:=C>MA(C,5) AND C>MA(C,) AND C>MA(C,);
GHC7:=C=HHV(C,7);
仙人开会:=GHC1 AND GHC2 AND GHC3 AND GHC4 AND GHC5 AND GHC6 AND GHC7;
CZS1:=O/REF(C,1)>0.;
CZS2:=L>REF(H,2);
CZS3:=C/REF(MAX(C,O),1)>1.;
今天拉升:=CZS1 AND CZS2 AND CZS3;
成仙之路:=REF(仙人开会,1) AND 今天拉升;
DRAWTEXT_FIX(1,0,0.,0,' 股市长红网: www.gushichanghong.com'),COLORMAGENTA,LINETHICK4;
DRAWTEXT(成仙之路,,'---仙人指路'),COLORMAGENTA;
STICKLINE(成仙之路,,,3.5,0),COLORA8A8A8;
STICKLINE(成仙之路,,,1.7,0),COLORA8A8A8;
STICKLINE(成仙之路,,,1.9,0),COLORA8A8A8;
STICKLINE(成仙之路,,,2.1,0),COLORA8A8A8;
STICKLINE(成仙之路,,,2.3,0),COLORA8A8A8;
STICKLINE(成仙之路,,,2.5,0),COLORA8A8A8;
STICKLINE(成仙之路,,,2.7,0),COLORA8A8A8;
STICKLINE(成仙之路,,,2.9,0),COLORA8A8A8;
STICKLINE(成仙之路,,,3.1,0),COLORA8A8A8;
STICKLINE(成仙之路,,,3.3,0),COLORA8A8A8;
STICKLINE(成仙之路,,,3.5,0),COLORA8A8A8;
STICKLINE(成仙之路,,,0.1,0),COLORWHITE;
STICKLINE(成仙之路,,,0.3,0),COLORWHITE;
STICKLINE(成仙之路,,,0.6,0),COLORWHITE;
STICKLINE(成仙之路,,,0.9,0),COLORWHITE;
STICKLINE(成仙之路,,,1.2,0),COLORWHITE;
STICKLINE(成仙之路,,,1.4,0),COLORWHITE;
STICKLINE(成仙之路,,,0.6,0),COLORRED;
STICKLINE(成仙之路,,,1.5,0),COLORBLUE;
STICKLINE(成仙之路,,,1.5,0),COLORBLUE;
STICKLINE(成仙之路,,,1.5,0),COLORWHITE;
STICKLINE(成仙之路,,,1.3,0),COLORRED;
STICKLINE(成仙之路,,,1,0),COLORRED;
STICKLINE(成仙之路,,7,0.7,0),COLORRED;
STICKLINE(成仙之路,7,1,0.3,0),COLORRED;
STICKLINE(成仙之路,1,(-7),0.1,0),COLORRED;
STICKLINE(成仙之路,.,.,1,0),COLORYELLOW;
STICKLINE(成仙之路,.,.,0.5,0),COLORYELLOW;
STICKLINE(成仙之路,.,.8,0.1,0),COLORYELLOW;
STICKLINE(成仙之路,,,0.5,0),COLORRED;
选股公式
{ 仙人指路--选股}
GHC1:=O>REF(C,1) AND L>REF(H,1);
GHC2:=BETWEEN(C/O,1.,0.);
GHC3:=H/MAX(C,O)>MAX(C,O)/MIN(C,O) OR H/MAX(C,O)>1.;
GHC4:=MIN(C,O)/L
GHC5:=BETWEEN(V/REF(V,1),1.1,4);
GHC6:=C>MA(C,5) AND C>MA(C,) AND C>MA(C,);
GHC7:=C=HHV(C,7);
仙人开会:=GHC1 AND GHC2 AND GHC3 AND GHC4 AND GHC5 AND GHC6 AND GHC7;
CZS1:=O/REF(C,1)>0.;
CZS2:=L>REF(H,2);
CZS3:=C/REF(MAX(C,O),1)>1.;
今天拉升:=CZS1 AND CZS2 AND CZS3;
成仙之路:REF(仙人开会,1) AND 今天拉升;