zoukankan      html  css  js  c++  java
  • 最小金额交易单元配比

    配比

    //变量自动设置

    if (BarInterval == 1)
    {
    Fast = 5;
    Slow = 30;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"c9000.DCE01") )
    slot = 1;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"fu000.SHFE01") )
    slot = 1;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"m9000.DCE01") )
    slot = 1;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"MA000.CZCE01") )
    slot = 1;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"rb000.SHFE01") )
    slot = 1;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"TA000.CZCE01") )
    slot = 1;

    }

    if (BarInterval == 30)
    {
    Fast = 20;
    Slow = 200;

    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"c9000.DCE130") )
    slot = 5;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"fu000.SHFE130") )
    slot = 4;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"m9000.DCE130") )
    slot = 3;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"MA000.CZCE130") )
    slot = 6;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"rb000.SHFE130") )
    slot = 6;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"TA000.CZCE130") )
    slot = 3;
    if (Exact (Symbol + Text(bartype)+ Text(BarInterval),"JD000.CZCE130") )
    slot = 4;
    }

    交易资金:11.5万,最大回撤资金预备:10.5万 每年盈利:6.6万 年化57%

    2020年,仅有06年和17年亏损,最大亏损年2017年,亏损金额接近2.8万。亏损率24%

    部分品种,数据未满20年。

  • 相关阅读:
    扩展方法 之 Asp.Net篇【转】
    PowerDesiGner数据库设计
    DataFormatString格式化字符串的总结
    C#序列化对象为XMl于反序列化
    c# 反射初探【转】
    事件驱动的javascript 【转】
    每日一题力扣598
    每日一题力扣283
    每日一题力扣189数组的旋转 取模这个想法好棒!
    每日一题力扣119杨辉三角
  • 原文地址:https://www.cnblogs.com/alantop/p/13840036.html
Copyright © 2011-2022 走看看