C>MA60*1.005&&BKVOL=0,BK((MONEYTOT*0.3)/(C*UNIT*MARGIN));
解释下这句话,说明下BKVOL ,BK ,MONEYTOT,UNIT,MARGIN是什么意思
BK((MONEYTOT*0.3)/(C*UNIT*MARGIN));
解释下这句是什么意思
SKVOL
BARSBK
BARSSK
这3个是什么意思?
SKVOL:空头持仓量 BARSBK:取上一次买开信号位置 BARSSK:取上一次卖开信号位置 |
MA60:MA(C,60);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;//收盘价与N周期最低值做差,N周期最高值与N周期最低值做差,两差之间做比值。
K:=SMA(RSV,3,1);//RSV的移动平均值
D:=SMA(K,3,1);//K的移动平均值
J:3*K-2*D;
if C>MA60*1.005 and holding=0 then buy(1,30%,market);
if C>MA60 and J<=0 and holding>0 and enterbars>10 then buy(1,30%,market);
if C>MA60 and J<=0 and holding>0 and enterbars>10 then buy(1,30%,market);
if C>MA60*1.005 and holding=0 then sellshort(1,holding,market);
if C<MA60*0.995 and holding=0 then sell(1,holding,market);
if C<MA60*0.995 and holding=0 then buyshort(1,holding,market);
if C<MA60 and J>=100 and holding<0 and enterbars>10 then buyshort(1,30%,market);
if C<MA60 and J>=100 and holding<0 and enterbars>10 then buyshort(1,30%,market);