这个为什么有白色的三角啊?我需要每次上穿下穿都反手。请老师指导下,万分感谢!
MA20:MA(C,20);
XD:=CROSS(C,MA20);
XK:=CROSS(MA20,C);
if holding>0 and XK then sell(1,1,LIMIT,MA20);
if holding<0 and XD then sellshort(1,1,LIMIT,MA20);
if holding=0 and XD then buy(1,1,LIMIT,MA20);
if holding=0 and XK then buyshort(1,1,LIMIT,MA20);
用20线 正反手 ;仓位1手
用来测试的
老师啊:能否直接帮我改下啊。 帖子看了 还是弄不明白
MA20:MA(C,20);
XD:=CROSS(C,MA20);
XK:=CROSS(MA20,C);
if holding>0 and XK then sell(C<MA20,1,LIMIT,MA20);
if holding<0 and XD then sellshort(C>MA20,1,LIMIT,MA20);
if holding=0 and XD then buy(C>MA20,1,LIMIT,MA20);
if holding=0 and XK then buyshort(C<MA20,1,LIMIT,MA20);
还是不对啊??
有飘过的的大哥 会的吗啊?帮我改下 谢谢