conpkkd:ma1>ma2; //平空开多条件
conpdkk:ma1<ma2; //平多开空条件
sellshort(conpkkd,holding,market); //平空
buy(conpkkd,1,market); //开多
sell(conpdkk,holding,market); //平多
buyshort(conpdkk,1,market); //开空
另外,金字塔程序化教程学习资料链接:http://www.weistock.com/WeisoftHelp/index.html?cxhgnjc.htm