//开盘9:15全部卖出3X开仓
//当第一根K线的收盘价>N时,买平2X仓位
//当第二根K线收盘价也>N时,买开X仓位
//当第二根K线收盘价<N时,不执行操作
//当第三根K线收盘价也>N时,买平X仓位,买开全部仓位
//当第三根K线收盘价<N时,卖开全部3X仓位
这个思路加载在3分钟周期上
if time=091800 then tbuyshort(1,3x,mkt);
if time=091800 and c>n then tsellshort(1,2x,mkt);
if time=092100 and c>n then tbuy(1,x,mkt);
if time=092400 and c>n then tsell(1,x,mkt);
if time=092400 and c<n then tbuyshort(1,3x,mkt);
all(条件,3)
类似这样的,能明白吗?
老师,不好意思,我还是不太明白,您能帮我把语句写全吗?非常感谢。
再问一下SORTPOS这个函数能实现提取连续3K线的功能吗?