Commit 9aabb9b5 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 7fec0c95
...@@ -10,7 +10,7 @@ let elsa = 'elsa' ...@@ -10,7 +10,7 @@ let elsa = 'elsa'
function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, maxTradeDays, targetPercentage) { function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, maxTradeDays, targetPercentage) {
let type = config.type + ' param:' + config.param + ' base:' + config.base + ' target:' + config.target + ' targetPercentage:' + targetPercentage.enable + ' per:' + targetPercentage.per let type = config.type + ' param:' + config.param + ' base:' + config.base + ' target:' + config.target + ' targetPercentage:' + targetPercentage.enable
let saveData = [] let saveData = []
let needPrintData = shouldPrint(detail, data[0].signal + '&' + type) let needPrintData = shouldPrint(detail, data[0].signal + '&' + type)
// console.log(needPrintData) // console.log(needPrintData)
...@@ -426,7 +426,7 @@ function inlineCheck(money, com, data, profit, lastCom, tar, riskFree, targetPer ...@@ -426,7 +426,7 @@ function inlineCheck(money, com, data, profit, lastCom, tar, riskFree, targetPer
if (!riskFree) { if (!riskFree) {
if (targetPercentage.enable === true) if (targetPercentage.enable === true)
realProfit = percentageMinus(target, targetPercentage.per) realProfit = percentageMinus(target, tar)
else else
realProfit = target realProfit = target
......
...@@ -20,7 +20,7 @@ run() ...@@ -20,7 +20,7 @@ run()
async function run() async function run()
{ {
let obj={sort:'profitPerMonthDrawDown',alocatedReserve:3,alocatedReserveCompound:3,risk:0,start:10000,pfTrade:2,side:'both',riskFreeLevel:100,onlyShortLong:false,loss:0,level:200,dur:1500,maxTradeDays:40,targetPercentage:{enable:true,per:1}} let obj={sort:'profitPerMonthDrawDown',alocatedReserve:3,alocatedReserveCompound:3,risk:0,start:10000,pfTrade:2,side:'both',riskFreeLevel:100,onlyShortLong:false,loss:0,level:200,dur:1500,maxTradeDays:40,targetPercentage:{enable:true}}
let detail=['configs2.json-211021092159_O1_BNC_BTCUSD_Lp1_Y211020a - Copy_Mn.csv&zarib param:1.1 base:200 target:1'] let detail=['configs2.json-211021092159_O1_BNC_BTCUSD_Lp1_Y211020a - Copy_Mn.csv&zarib param:1.1 base:200 target:1']
obj.detail=detail obj.detail=detail
let all=[] let all=[]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment