估计是只用了开多的交易函数 没用开空的函数
或者 干脆行情就只符合了开多。。。
估计是只用了开多的交易函数 没用开空的函数
或者 干脆行情就只符合了开多。。。
我短信您,麻烦看下问题出在哪里
runmode:1;
input:m(20,1,100,1);
input:p1(10,1,100,1);
input:p2(20,1,100,1);
input:n(2,1,100,1);
tr1 := max(max((high-low),abs(ref(close,1)-high)),abs(ref(close,1)-low));
atr := ma(tr1,m);
wx:=drawnull;
m1:=ema(close,p1);
m2:=ema(close,p2)*if(n<2,wx,1);
enterlong:cross(m1,m2) and m2<c and c<m2+0.7*atr,tfilter;
entershort:cross(m2,m1) and m2>c and c>m2-0.7*atr ,tfilter;
exitlong:cross(m2,m1) or c<=(m2-0.5*atr) ,tfilter;
exitshort:cross(m1,m2) or c>=(m2+0.5*atr) ,tfilter;
feich非常感谢,愿金字塔成为每个交易者的必备软件
把开仓条件都调式一下,看看条件是否符合。条件符合了,且费率设置没问题的话,会有信号的
调式方法 http://www.weistock.com/bbs/dispbbs.asp?boardid=4&id=1246