欢迎光临散文网 会员登陆 & 注册

量化合约跟单系统开发(开发策略)丨合约量化跟单系统开发(对接API火币/币安/OK)

2023-07-01 09:58 作者:bili_36625761919  | 我要投稿

  量化的关键在于策略家预先建立的策略信号。比如有人用macd金叉作为进场信号,其实就是简单的量化;macd处理了一些基本的K线数据,然后画出来,就是量化,After processing the data with the golden cross structure on the chart,you choose to enter the market,which is quantitative trading.量化交易不是高频交易,每个指标其实都是一种量化,每个量化交易者都在创造一个新的指标;通过你理解的算法组合数据,用电脑计算,形成自己的交易系统,这就是真正的量化交易


  量化交易两层含义:


  一是从狭义上来讲,是指量化交易的内容,将交易条件转变成为程序,自动下单;


  二是从广义上来讲,是指系统交易方法,就是一个整合的交易系统。Based on a series of trading conditions,an intelligent decision-making system is developed to combine rich professional experience with trading conditions and manage risk control during the trading process.


  int PFLD::Impl::LoadModel(const char*root_path){


  std::string model_file=std::string(root_path)+"/pfld-lite.mnn";


  landmarker_=std::shared_ptr<MNN::Interpreter>(MNN::Interpreter::createFromFile(model_file.c_str()));


  MNN::ScheduleConfig config;


  config.numThread=1;


  config.type=static_cast<MNNForwardType>(device_);


  MNN::BackendConfig backendConfig;


  backendConfig.precision=(MNN::BackendConfig::PrecisionMode)precision_;


  backendConfig.power=(MNN::BackendConfig::PowerMode)power_;


  backendConfig.memory=(MNN::BackendConfig::MemoryMode)memory_;


  config.backendConfig=&backendConfig;


  session_=landmarker_->createSession(config);


  //nhwc to nchw


  std::vector<int>dims{1,inputSize_,inputSize_,3};


  input_tensor_=MNN::Tensor::create<float>(dims,NULL,MNN::Tensor::TENSORFLOW);


  initialized_=true;


  return 0;


  }


量化合约跟单系统开发(开发策略)丨合约量化跟单系统开发(对接API火币/币安/OK)的评论 (共 条)

分享到微博请遵守国家法律