Commit ba8401d0 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent d91e7d38
...@@ -842,6 +842,16 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max ...@@ -842,6 +842,16 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
} }
step = 0
unixStart = 0
unixMid = 0
reserv = 0
profit = 0
maxMetaStep = 0
lastCom = 0
curDrawDown = 0
lastMoney = 0
} }
if (needPrintData) if (needPrintData)
......
let t='last.json-2021Y220217123254_O1_BNC_ETHUSDT_Lp7437_1ETH13.csv'
console.log(parseFloat(t.split('Y')[0].split('-')[1]))
\ No newline at end of file let t="5.89_0.28_3.39_6.86_6.46_9.66_1.2_7.07_29.82_7.6_13.67_3.41_1.24_16.03_1.71_1.39_34.69_17.42_21.79_15.57_37.12_14.63_5.96_6.35_18.08_4.18_2.14_20_15.23_13.67_3.07_5.46_2_7.71_1.48_20.43_8.86_0.07_10.16_7.09_14.66_11.71_19.17_0.77_7.06_5.8_1.43_7.11_11.65_13.99_15.22_6.78_11.82_23.46_2.97_4.78_3.81_1.38_5.96_36.34_40.58_12.35_4.03_2.69_17.98_0.24_6.55_12.11_23.99_12.62_0.5_3.18_7.83_1.43_7.11_60.93_2.02_12.78_15.65_0.06_8.18_7.58_11.58_0.32_1.66_0.94_2.76_12.48_4.52_1.63_4.63_1.3_2.92_2.99_10.9_5.62_0.2_3.97_29.26_4.31_4.78_15.93_2.02_2.98_27.61_2.89_3.26_1.46_10.77_10.36_27.72_6.6_3.13_8.19_6.02_2.48_1.8_3.04_1.74_38.44_28.05_3.4_5.86_2.81_6.54_3.32_11.32_2.89_4.16_3.17_4.65_27.95_5.31_3.26_13.3_0.54_0.89_72.55_6.32_25.57_16.93_3.83_6.68_3.89_14.94_1.76_5.32_7.06_7.74_6.99_14.06_2.42_6.38_16.57_3.97_17.54_5.91_0.37_16_4.18_9.41_9.24_15.23_0.8_10.5_3.39_4.37_11.22_5.3_9.05_4.38_0.12_23.42_6.62_4.55_3.45_1.15_2.36_2.07_11.63_4.12_1.81_5.56_4.19_9.89_2.09_5.52_8.62_4.45_7.12_7.76_8.77_"
let f=t.split('_')
let arr=[]
for (let i=0;i<f.length;i++)
if (parseFloat(f[i])<1.2)
arr.push(f[i])
console.log(arr)
\ No newline at end of file
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