"Documentary trading"means that users can automatically copy and follow selected traders to place orders,close positions,and other operations.When a trader's orders generate profitable closing positions,the user's orders will also be synchronized to close positions and lock in profits.Using the tracking mode,users can observe the trader's point judgments,trading strategies,and so on,while gaining benefits,they can also improve their operating experience.At the same time,in a documentary transaction,the user has all operation rights on the order,and can perform operations such as closing positions on the order at any time.
合约跟单软件系统开发的核心功能:
1、正跟和反跟:正跟可以跟报单(滑点小)反跟跟成交(避免跟单先成交,指引却被撤单);
2、跟单数量设置,按比例、按最大手数;
3、跟单未成交的处理方式,仓位差异比较和显示,方便用户一目了然的看清跟单是否有差异,同时包含单个合约的同步功能;
4、跟单差异时的处理,同步仓位;
5、数据管理或保存功能,例如账号、跟单设置、日志等;
6、交易功能,报单、行情显示等;
7、账号风控管理、一键清仓、每日账号数据统计和保存等。
switch(config.destFormat){
case GRAY:
channles=1;
break;
case RGB:
case BGR:
channles=3;
break;
case RGBA:
case BGRA:
channles=4;
break;
default:
break;
}
//根据配置文件中的参数设置config
config.sourceFormat=RGBA;
std::string imagePath;
_imageNum=0;
{
if(picObj.HasMember("mean")){
auto mean=picObj["mean"].GetArray();
int cur=0;
for(auto iter=mean.begin();iter!=mean.end();iter++){
config.mean[cur++]=iter->GetFloat();
}
}
if(picObj.HasMember("normal")){
auto normal=picObj["normal"].GetArray();
int cur=0;
for(auto iter=normal.begin();iter!=normal.end();iter++){
config.normal[cur++]=iter->GetFloat();
}
}
if(picObj.HasMember("width")){
_width=picObj["width"].GetInt();
}
if(picObj.HasMember("height")){
_height=picObj["height"].GetInt();
}
if(picObj.HasMember("path")){
imagePath=picObj["path"].GetString();
}
if(picObj.HasMember("used_image_num")){
_imageNum=picObj["used_image_num"].GetInt();
}
if(picObj.HasMember("feature_quantize_method")){
std::string method=picObj["feature_quantize_method"].GetString();
if(Helper::featureQuantizeMethod.find(method)!=Helper::featureQuantizeMethod.end()){
_featureQuantizeMethod=method;
}else{
MNN_ERROR("not supported feature quantization method:%sn",method.c_str());
return;
}