//多头开仓
BKVOL=0&&SKVOL=0&&REF(RDV,1)>ETLONG&&VOL>0&&MA01>REF(MA01,1),BK;
请问老师如何将上面文华格式改写成金字塔格式的语句?谢谢!
BKVOL=0&&SKVOL=0&&REF(RDV,1)>ETLONG&&VOL>0&&MA01>REF(MA01,1),BK;
对照改成:
if holding=0 and ref(rdv,1)>etlong and vol>0 and ma01>ref(ma01,1) then buy(1,1,marketr);
中间有几个不知道是变量还是函数的,如果有函数则需用户坐下说明
谢谢jinzhe老师,中间是变量和定义的参数。。
//多头平仓
BKVOL>0&&BARSBK>0&&REF(RDV,1)<0&&VOL>0,SP;
//空头平仓
SKVOL>0&&BARSSK>0&&REF(RDV,1)>0&&VOL>0,BP;
请问这二句如何改写成金字塔的?
if holding>0 and enterbars>0 and ref(rdv,1)<0 and vol>0 then sell(1,0,marketr);
if holding<0 and enterbars>0 and ref(rdv,1)>0 and vol>0 then sellshort(1,0,marketr);