克隆策略

    {"description":"实验创建于2021/11/19","graph":{"edges":[],"nodes":[{"node_id":"-10351","module_id":"BigQuantSpace.cached.cached-v3","parameters":[{"name":"run","value":"# Python 代码入口函数,input_1/2/3 对应三个输入端,data_1/2/3 对应三个输出端\ndef bigquant_run(input_1, input_2, input_3, p1=0, p2=0.0):\n # 示例代码如下。在这里编写您的代码\n print(p1,p2)\n return Outputs(data_1=None, data_2=None, data_3=None)\n","type":"Literal","bound_global_parameter":null},{"name":"post_run","value":"# 后处理函数,可选。输入是主函数的输出,可以在这里对数据做处理,或者返回更友好的outputs数据格式。此函数输出不会被缓存。\ndef bigquant_run(outputs):\n return outputs\n","type":"Literal","bound_global_parameter":null},{"name":"input_ports","value":"","type":"Literal","bound_global_parameter":null},{"name":"params","value":"{ 'p1': 0,\n 'p2': 0.0\n}","type":"Literal","bound_global_parameter":null},{"name":"output_ports","value":"","type":"Literal","bound_global_parameter":null}],"input_ports":[{"name":"input_1","node_id":"-10351"},{"name":"input_2","node_id":"-10351"},{"name":"input_3","node_id":"-10351"}],"output_ports":[{"name":"data_1","node_id":"-10351"},{"name":"data_2","node_id":"-10351"},{"name":"data_3","node_id":"-10351"}],"cacheable":true,"seq_num":1,"comment":"","comment_collapsed":true},{"node_id":"-2395","module_id":"BigQuantSpace.pytest000123_Copy.pytest000123_Copy-v4","parameters":[{"name":"p1","value":"","type":"Literal","bound_global_parameter":null},{"name":"p2","value":"","type":"Literal","bound_global_parameter":null}],"input_ports":[],"output_ports":[],"cacheable":true,"seq_num":3,"comment":"","comment_collapsed":true}],"node_layout":"<node_postions><node_position Node='-10351' Position='-361.3948669433594,339.1118469238281,200,200'/><node_position Node='-2395' Position='-358.72633361816406,480.115478515625,200,200'/></node_postions>"},"nodes_readonly":false,"studio_version":"v2"}
    In [11]:
    # 本代码由可视化策略环境自动生成 2021年11月19日 15:35
    # 本代码单元只能在可视化模式下编辑。您也可以拷贝代码,粘贴到新建的代码单元或者策略,然后修改。
    
    
    # Python 代码入口函数,input_1/2/3 对应三个输入端,data_1/2/3 对应三个输出端
    def m1_run_bigquant_run(input_1, input_2, input_3, p1=0, p2=0.0):
        # 示例代码如下。在这里编写您的代码
        print(p1,p2)
        return Outputs(data_1=None, data_2=None, data_3=None)
    
    # 后处理函数,可选。输入是主函数的输出,可以在这里对数据做处理,或者返回更友好的outputs数据格式。此函数输出不会被缓存。
    def m1_post_run_bigquant_run(outputs):
        return outputs
    
    
    m1 = M.cached.v3(
        run=m1_run_bigquant_run,
        post_run=m1_post_run_bigquant_run,
        input_ports='',
        params="""{   'p1':  0,
        'p2':  0.0
    }""",
        output_ports=''
    )
    
    m3 = M.pytest000123_Copy.v4(
    
    )
    
    None None