上图写成这样好像有问题?
buy(holding=0 and pj<-4,ss,marketr); //pj为触发值,ss为手数
sell(holding>0 and pj>4 and c-enterprice>6,ss,marketr);
buyshort(holding=0 and pj>4,ss,marketr);
sellshort(holding<0 and pj<-4 and enterprice-c>10,ss,marketr);
在逐K模式下运行的,问题(用开空为列子)
1如果pj的值是这样的顺序 A:3、5、3,那用什么控制符能在中间5这根K线就触发开仓呢?
B:3、5、5,这样的情况,控制符又该怎么用?
2如果大的滑价导致实际无交易,但是交易信号产生了,这是怎么个原因呢?该如何处理
急切等待金字塔老师指导!!!
按下面的图中的内容,请老师帮忙

此主题相关图片如下:qq截图20141208190611.png

思路很不错,滤波很难控制好每一个点,只能以概率取胜,时间周期太短,难度更大....
sellshort(holding<0 and pj<-4 and enterprice-c>10,ss,marketr);
buy(holding=0 and pj<-4,ss,marketr);
sell(holding>0 and pj>4 and c-enterprice>6,ss,marketr);
buyshort(holding=0 and pj>4,ss,marketr);
开平顺序这样写