搜索
楼主: songjian111

[大盘交流] 中长线交易系统利润大幅回撤的问题

[复制链接]

签到天数: 152 天

 楼主| 发表于 2014-4-8 20:50 | 显示全部楼层
jafcosh 发表于 2014-4-8 20:46
这是在止损后面第二大心理问题

戒贪止盈。
金币:
奖励:
热心:
注册时间:
2014-2-5

回复 使用道具 举报

签到天数: 12 天

发表于 2014-6-12 17:08 | 显示全部楼层
:#DAXIAO%% 详细盈亏
lg=length(close_pre);
windata=zeros(1,lg);
windata(1,1)=0;
winnum=0;
for i=2:lg
    win=0; %盈亏钱数
    if(result(1,i)>=close_pre(1,i-1))
        win=p_test(1,i)-close_pre(1,i-1);
    else
        win=close_pre(1,i-1)-p_test(1,i);
    end
   
    if(win>=0)
        winnum=winnum+1;
    end
    windata(1,i)=win+windata(1,i-1);
end

%c 成功率
win_rate=winnum/lg

%% 计算回撤
backratio=zeros(1,lg);
for m=1:lg
    c=max(windata(1:m));
    backratio(1,m)=(windata(1,m)-c)/c;
end

%% 作图
figure;
subplot(3,1,1);
plot(p_test);
hold on;
grid on;
plot(result,'g');
subplot(3,1,2);
plot(windata);
grid on;
title('资金盈利');
subplot(3,1,3);
plot(backratio);
grid on;
title('最大回撤');
金币:
奖励:
热心:
注册时间:
2013-11-13

回复 使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

本站声明:MACD仅提供交流平台,请交流人员遵守法律法规。
值班电话:18209240771   微信:35550268

举报|意见反馈|手机版|MACD俱乐部

GMT+8, 2025-8-11 22:49 , Processed in 0.032024 second(s), 12 queries , MemCached On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表