?
?
所謂k線統(tǒng)計是指什么?
你條件在圖上輸出看過沒,哪個數(shù)值認為有異議?
?
1.本地是否存在歷史數(shù)據(jù),。1分鐘5分鐘和5秒數(shù)據(jù)
2, 你的策略加載圖表上,在歷史上有信號出現(xiàn),只是信號過少。
開倉受固定時間間隔或者走完k模式的影響。
ma30s:STKINDI('','MA.MA3(5,10,60,)',0,12);
ma1m:STKINDI('','MA.MA3(5,10,60,)',0,1);
ma3m:STKINDI('','MA.MA3(5,10,60,)',0,11);
KD:c>ma30s and c>ma1m and c>ma3m and ref(c,1)>ma30s and ref(c,1)>ma1m and ref(c,1)>ma3m and ref(c,2)>ma30s and ref(c,2)>ma1m and ref(c,2)>ma3m;????????? //開多條件
PD:l<ma1m;????????? //平多條件
KK:c<ma30s and c<ma1m and c<ma3m and ref(c,1)<ma30s and ref(c,1)<ma1m and ref(c,1)<ma3m and ref(c,2)<ma30s and ref(c,2)<ma1m and ref(c,2)<ma3m;????????? //開空條件
PK:h>ma1m;??
手數(shù):=1;
IF HOLDING=0 and? KD THEN BEGIN //若持倉為0
?
? BUY(1,手數(shù),marketr);//開多單
END
IF HOLDING=0 and KK THEN BEGIN//若持倉為0
? BUYSHORT(1,手數(shù),marketr);//開空單
END
a:HOLDING
?