期貨期權交流為什么沒法加倉
作者: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;