老师麻烦这个修改成人工看盘,海龟 [博易POBO]
咨询内容:
//N1,变量,自己定义,日子数
LC:=REF(CLOSE,1);
TR:=MAX((HIGH - LOW),MAX((HIGH - LC),(LC - LOW)));//TR是今日价格波幅
ATR:=SMA(TR,20,1);//SMA(X,N,M)得到X在N个周期内的移动平均,M为权重(M为常数)。
//计算方法:SMA(N)=SMA(N-1)*(N-M)/N+X(N)*M/N;ATR是20日内的平均波幅
AA:=(HHV(HIGH,20) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,10),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
B3B:=BARSLAST(B3);
SS:=CROSS(MAX(AA,MA(CLOSE,13)),CLOSE);
SS1:=(((SS AND ((B3B < B2B) OR (B2B < B1B))) AND (SSSB > B1B)) AND (COUNT(SS,B2B) < 2));
SS1B:=BARSLAST(SS1);
SS2:=((((SS AND (SS1B < SSSB)) AND (B3B < B2B)) AND (SS1B > 0)) AND (COUNT(SS,B2B) < 3));
SSSS:=(SSS AND (REF(SSSB,1) > REF(B1B,1)));
DRAWTEXT((B1 = 1),(LOW - 0.25),'买1'),COLORRED;
DRAWTEXT((B2 = 1),(LOW - 0.25),'买2'),COLORRED;
DRAWTEXT((B3 = 1),(LOW - 0.25),'买3'),COLORRED;
DRAWTEXT((SS1 = 1),(HIGH + 0.25),'止损1');
DRAWTEXT((SS2 = 1),(HIGH + 0.25),'止损2');
DRAWTEXT((SSSS = 1),(HIGH + 0.25),'快卖'),COLORBLUE;
老师麻烦这个修改成人工看盘,海龟
//N1,变量,自己定义,日子数
LC:=REF(CLOSE,1);
TR:=MAX((HIGH - LOW),MAX((HIGH - LC),(LC - LOW)));//TR是今日价格波幅
ATR:=SMA(TR,20,1);//SMA(X,N,M)得到X在N个周期内的移动平均,M为权重(M为常数)。
//计算方法:SMA(N)=SMA(N-1)*(N-M)/N+X(N)*M/N;ATR是20日内的平均波幅
AA:=(HHV(HIGH,20) - (2 * ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,10),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
B2B:=BARSLAST(B2);
B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));
B3B:=BARSLAST(B3);
SS:=CROSS(MAX(AA,MA(CLOSE,13)),CLOSE);
SS1:=(((SS AND ((B3B < B2B) OR (B2B < B1B))) AND (SSSB > B1B)) AND (COUNT(SS,B2B) < 2));
SS1B:=BARSLAST(SS1);
SS2:=((((SS AND (SS1B < SSSB)) AND (B3B < B2B)) AND (SS1B > 0)) AND (COUNT(SS,B2B) < 3));
SSSS:=(SSS AND (REF(SSSB,1) > REF(B1B,1)));
DRAWTEXT((B1 = 1),(LOW - 0.25),'买1'),COLORRED;
DRAWTEXT((B2 = 1),(LOW - 0.25),'买2'),COLORRED;
DRAWTEXT((B3 = 1),(LOW - 0.25),'买3'),COLORRED;
DRAWTEXT((SS1 = 1),(HIGH + 0.25),'止损1');
DRAWTEXT((SS2 = 1),(HIGH + 0.25),'止损2');
DRAWTEXT((SSSS = 1),(HIGH + 0.25),'快卖'),COLORBLUE;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,这个指标能够正常使用,请问您具体是什么需求? 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容