hh:=hhv(h,enterbars+1);
t1:=hh-ENTERPRICE>0.017*enterprice;
t2:=hh-c>=0.0076*hh;
if t1 then x:=1;
if x=1 and t2 and holding>0 then begin
sell(1,holding,market);
x:=0;
end
ll:=llv(l,enterbars+1);
k1:=enterprice-ll>0.015*enterprice;
k2:=c-ll>=0.0067*ll;
if k1 then m:=1;
if m=1 and k2 and holding<0 then
begin
sellshort(1,holding,market);
m:=0;
end
t2:=hh-c>=0.0076*hh;
这个时候可能已经是亏损状态了,
一般用:(开仓后的最高价-最新价)/(开仓后的最高价-开仓价)>=a% 来表示移动止盈
1.“我点购买点券,转不到支付宝页面,请协助解决,或给我微信号” 您是购买软件遇到问题? 可以把QQ留下,我让销售那边联系下你。
2.我看了下。好像是这样子的。:
t1:=hh-ENTERPRICE>0.017*enterprice;
t2:=hh-c>=0.0076*hh;
这2行代码处理下可以推断出:
c<=0.9924*h和enterprice<=0.983*h 其实这没办法只实现移动止盈,因为c和enterprice大小关系并不确定。
“(开仓后的最高价-最新价)/(开仓后的最高价-开仓价)>=a%,这样的语言不是函数,直接放到交易系统里来用吗?”你是什么意思?不是函数,但是是语句啊。语句能正确计算就行,不过那个a%好像无法被识别。 用0.01*a的形式表示吧。那个最新价,开仓价什么的要定义,你可不能就把文字放里面。