马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
621.问:
给一个含有未来数据的飞狐主图公式,要准确的公式,带有用法
答(飓风水手):
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30),colorred;
MA60:MA(C,60),colorgreen;
MA90:MA(C,90),COLORffff00;
MA113:MA(C,113),COLORff3399;
MA125:MA(C,125),COLORyellow; MA250:MA(C,250),color0099ff;
STICKLINE(c>o,C,O,8,0), COLORRED; STICKLINE(c>o,C,O,3,0), COLOR0000FF; STICKLINE(c>o,H,L,1,0),colorred;
STICKLINE(c<=o,c,o,8,0),COLOR006600; STICKLINE(c<=o,c,o,3,0),COLOR009900; STICKLINE(c<=o,h,l,1,0),COLOR00EE00;
Var1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
Var2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
STICKLINE(Var1,C,O,8,0),colorwhite;{高位白色}
STICKLINE(Var1,C,O,3,0),colorwhite;{高位白色}
STICKLINE(Var1,H,L,1,0),colorwhite;{高位白色}
STICKLINE(Var2,C,O,8,0),COLORff3399;{底位紫色}
STICKLINE(Var2,C,O,3,0),COLORff3399;{底位紫色}
STICKLINE(Var2,H,L,1,0),COLORff3399;{底位紫色}
VarB:=IF(DATE<=1051230,1,0);
Var85:=FILTER(YEAR=2005 AND MONTH=12 AND (DAY=30),3);
Var86:=FILTER(YEAR=2005 AND MONTH=12 AND (DAY=30),3);
Var87:=FILTER(YEAR=2005 AND MONTH=12 AND (DAY=30),3);
Var88:=FILTER(YEAR=2005 AND MONTH=12 AND (DAY=30),3);
{LHY:='股市没秘诀.乃胆略+智慧.吾须忍而避燥也 ';}
DRAWTEXT(sysparam(1)=BARSCOUNT(CLOSE),C,'股市没秘诀.乃胆略+智慧.吾须忍而避燥也'),COLORff3399,ALIGN5;
LHY:='≡ 《威廉.江恩》只要趋势向上,股价永远不会高得不能买 ≡';
DRAWTEXT(sysparam(2)=BARSCOUNT(CLOSE),C,LHY),colorgreen,ALIGN4;
LHY:='≡ 《威廉.江恩》而只要趋势向下,股价也永远不会低得不能抛 ≡';
DRAWTEXT(sysparam(2)=BARSCOUNT(CLOSE),C,LHY),color0099ff,ALIGN5;
622.问:
当买的信号出现后,只显示第一次卖的提示,然后只到再次出现买的信号为止。即把卖和下一次买之间的卖的信号全部过滤。
答(一鸣):
参考看看
卖 and ref(BARSLAST(买),1)<ref(BARSLAST(卖),1);
答(懒汉):
南客老师有个专门的帖,可以看看。
w1:=barslast(买);
w2:=barslast(卖);
买:cross(sum(买,w2),0.5);
卖:cross(sum(卖,w1),0.5); 。
|