老师,你好,我写了几行程序,后面不懂写了,帮我写一下
gd:REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND CLOSE>REF(HIGH,1);
CC:=REF(HIGH,1);
买入:如果条件gd满足,那么以CC价格挂单买入一手多大
止损:取这两根K线的最低价,如果低于这两根K线最低价,平仓离场
止盈:如果价格达到买入价格与止损价格价差1培(也就是盈亏比1:1),挂单止盈,平仓离场
gd:REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND CLOSE>REF(HIGH,1);
CC:=REF(HIGH,1);
if gd and holding=0 then buy(1,1,limitr,cc);
zs:ref(llv(close,2),enterbars);
if close<zs then sell(1,holding,marketr);
if close>zs+enterprice then sell(1,holding,marketr);