金字塔对应平仓示例
-
相关简介:开仓条件为A对应平仓条件A1。开仓条件为B的话对应平仓条件为B1。 金字塔公式 金字塔模型策略源码: VARIABLE:aa=0; VARIABLE:bb=0; if holding=0 then aa:=0; if holding=0 then bb:=0; h20:ref(hhv(h,20),1); l20:ref(llv(l,20),1); ma2:ma(c,30); A:=cross(c,h20); A1:=cross(l20,c); B:=cross(c,ma2); B1:=cross
-
文章来源:公式网 发布时间:2015-10-25浏览次数:
开仓条件为A对应平仓条件A1。开仓条件为B的话对应平仓条件为B1。
金字塔公式 金字塔模型策略源码:
VARIABLE:aa=0;
VARIABLE:bb=0;
if holding=0 then aa:=0;
if holding=0 then bb:=0;
h20:ref(hhv(h,20),1);
l20:ref(llv(l,20),1);
ma2:ma(c,30);
A:=cross(c,h20);
A1:=cross(l20,c);
B:=cross(c,ma2);
B1:=cross(ma2,c);
if aa=1 and holding>0 and A1 then sell(1,holding,limitr,c);
if bb=1 and holding>0 and B1 then sell(1,holding,limitr,c);
if A and holding=0 then
begin
buy(1,1,l
上一篇:把不同模型组合成一个模型的范例
下一篇:金字塔绝密买点加逃顶不难指标源码


现在就去充值积分
加入VIP可下载100以下的所有资源