期货期权交流为什么没法加仓
作者:MC 来源:cxh99.com 发布时间:2016年07月23日
- 咨询内容:
我写了以下的程序,想要加仓,结果图上只有一个entry信号,没法加仓,请问如何解决,很急
var: LTT( 0 ), Myfhigh( 0 ), Myflow( 0 ), Myshigh( 0 ), Myslow( 0 ), mp( 0 ), Myatr( 0 );
mp = marketposition;
condition1 =c>o and marketposition=0;
condition2 =c>o and c[1]>o[1];
condition3 = c>o and c[1]>o[1] and c[2]>o[2];
if condition1 then buy ("entry") next bar at market;
if condition2 then buy ("jiacang1") next bar at market;
if condition3 then buy ("jiacang2") next bar at market;