Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:移动止盈

1楼
鸣杰 发表于:2018/8/24 10:57:25
 //移动止盈
多盈1:盈利大于20小于40个变动点,从最大盈利点回撤5个变动点,卖出50%仓位,不要连续发出信号(意思是大于20小于40个变动点发出一次卖出,就不要再次发出卖出);
多盈2:盈利大于40小于60个变动点,从最大盈利点回撤5个变动点,卖出50%仓位,不要连续发出信号(意思是大于40小于60个变动点发出一次卖出,就不要再次发出卖出);;

空盈1:盈利大于20小于40个变动点,从最大盈利点回撤5个变动点,卖出50%仓位,不要连续发出信号;
空盈2:盈利大于40小于60个变动点
图片点击可在新窗口打开查看此主题相关图片如下:qq图片20180824105506.png
图片点击可在新窗口打开查看
,从最大盈利点回撤5个变动点,卖出50%仓位,不要连续发出信号; 
2楼
鸣杰 发表于:2018/8/24 12:47:41
模式是选择固定轮询运行
3楼
FireScript 发表于:2018/8/24 13:48:29


Hprofit1:hhv(h,ENTERBARS+2)-ENTERPRICE;//空头最大盈利
Cprofit1:c-ENTERPRICE;//当前盈利

cond1:Hprofit1>20*MINDIFF and Hprofit1<=40*MINDIFF and holding>0 and Hprofit1-Cprofit1>=5*MINDIFF;
cond2:Hprofit1>=40*MINDIFF and Hprofit1<=60*MINDIFF and holding>0 and Hprofit1-Cprofit1>=5*MINDIFF;

if (cond1 and count(cond1=1,ENTERBARS+2)) or (cond2 and count(cond2,ENTERBARS+2)=1) then
begin
sell(holding>0,50%,market);
end


Hprofit2:ENTERPRICE-llv(h,ENTERBARS+2);//空头最大盈利
Cprofit2:ENTERPRICE-c;//当前盈利

cond3:Hprofit2>20*MINDIFF and Hprofit2<=40*MINDIFF and holding<0 and Hprofit2-Cprofit2>=5*MINDIFF;
cond4:Hprofit2>=40*MINDIFF and Hprofit2<=60*MINDIFF and holding<0 and Hprofit2-Cprofit2>=5*MINDIFF;

if (cond1 and count(cond3=1,ENTERBARS+2)) or (cond2 and count(cond4,ENTERBARS+2)=1) then
begin
sell(holding>0,50%,market);
end


共3 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.01563 s, 3 queries.