Commit fdf71b1d authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent cb990d8c
......@@ -40,7 +40,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel,detail) {
}
if (dur <1300)
if (dur <300)
return null
let newP = dur / data.length
......
......@@ -7,6 +7,7 @@ let ai = require('./ai')
async function parse(directory, name, configs, risk, pfTrade, side, riskFreeLevel,detail,onlyShortLong) {
return new Promise(function (resolve, reject) {
let arr = []
// console.log(name)
......@@ -106,7 +107,7 @@ function initData(data, config, name, risk, pfTrade, side, riskFreeLevel,detail,
continue
let obj = {}
obj.id = parseInt(data[i].id)
obj.signal = data[i].Signal
obj.signal =name
if (data[i].Type.includes('Long'))
obj.side = 'LONG'
else
......
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