Commit f39be2ab authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent f41c318f
......@@ -766,6 +766,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
continue
}
profitLossString = profitLossString + data[i].profit + '_'
if (d.done === true) {
runBefore = false
......@@ -822,7 +823,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
} else {
profitLossString = profitLossString + data[i].profit + '_'
lossDone++
lossDonePer=lossDonePer+data[i].profit-0.1
allDonePer=allDonePer+data[i].profit-0.1
......@@ -1002,7 +1003,7 @@ function run(data, config, risk, pfTrade, riskFreeLevel, detail, loss, durs, max
dateString: dateString,
runupString: runupString,
sideString: sideString,
profitLossString:profitLossString,
profitString:profitLossString,
firstMaxAllocatedMoney: firstMaxAllocatedMoney,
maxAllocatedMoney: maxAllocatedMoney,
avgAllocatedMoney: maxAllocatedMoney / total,
......
......@@ -2,12 +2,12 @@
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 t='13.83_3.6_16.5_29.63_9.11_6.92_35.64_5.04_21.04_2.16_2.79_10.6_12.83_5.89_4.89_0.52_1.2_7.95_11.68_3.98_1.33_7.75_2.32_5.38_0.94_0.83_0.29_1.27_7.06_9.82_1.4_10.96_4.74_7.63_1.73_0_0.38_12.56_1.77_0.27_31.27_0.73_3.8_2.06_1.27_0.94_8.82_12.52_9.18_17.37_64.31_8.33_22.06_5.39_34.59_12_18.02_48.23_25.17_24.57_40.88_2.59_11.93_11.07_10.11_5.01_19.46_9.47_3.64_28.49_37.97_2.08_4.42_2.38_0.14_3.43_1.56_11.25_4.57_3.66_1.77_15.35_0.7_3.74_0.29_0.83_5.97_0.44_2.42_1.39_25.47_4.07_0.72_15.56_24.88_2.4_6.21_2.13_0.71_8.54_1.45_14.47_18_8.96_0.93_7.2_7.94_22.4_0.76_1.15_5.9_3.7_1.2_1.32_21.17_16.97_4.36_1.22_0.91_6.88_1.87_0.29_2.19_2.93_14.56_2.48_5.27_1.28_5.45_21.51_0.93_13.41_4.31_7.23_0.47_1.21_0.81_16.34_2.54_4.87_1.27_0.9_1.67_7.28_2.62_15.16_7.25_3.7_6.65_4.35_1.06_0.77_3.36_1.23_0.17_3.53_3.64_1.6_1.34_0.95_0.04_10.43_3.8_10.38_0.46_1.96_4.9_3.43_0.54_0.22_14.19_0.85_12.05_8.13_6.19_5.91_0.94_0.36_0.93_2.52_7.11_0.83_0.27_25.3_17.18_13.55_1.29_11.12_20.03_0.83_2.57_3.96_7.29_5.81_0.32_5.35_0.71_0.45_3.57_1.28_3.33_13.85_0.63_0.57_0.78_0.47_1.8_0.2_4.05_0.58_0.31_4.97_0.27_0.86_0.31_18.46_0.9_31.93_16.71_9.11_13.75_24.82_5.87_6.61_2.51_0.75_2.82_2.26_1.07_0.65_5.96_0.62_0.33_12.36_12.36_11.62_39.27_2.54_1.09_8.63_14.81_14.87_0.9_5.56_1.38_0.32_3.56_1.32_18.68_2.19_6.24_0.4_2.83_0.34_7.94_0.71_1.55_12.59_0.08_2.76_3.1_3.71_1.59_0.46_5.16_0.86_0.82_16.43_3.76_0.63_0.74_0.42_1.36_0.42_22.48_1.48_1.81_0.22_12.11_7.29_0.24_0.31_3.91_3.91_1.16_3.05_0.42_3.3_8.53_0.53_0.48_0.35_0.81_4.6_0.1_2.67_3.29_0.47_0.93_22.43_2.48_1.92_12.65_3.25_9.76_3.25_8.23_6.28_1.27_3.86_3.79_0.2_0.38_0.02_5.92_19.88_47.11_0.5_9.12_3.57_8.28_10.11_0.82_2.55_5.93_11.96_0.71_10.99_1.81_8.09_6.68_1.7_2.43_1.23_0.11_18.46_17.19_1.77_5.03_8.05_3.12_4.08_0.89_0.26_0.43_0.85_0.6_9.35_13.66_14.4_5.94_5.69_1.93_6.21_5.64_2.01_1.95_2.98_0.4_3.17_0.72_2.42_1.09_6.52_2.46_0.59_7.79_0.8_3.2_15.98_9.13_1.06_0.9_0.37_0.71_0.32_11.49_0.73_0.97_6.13_5.04_2.01_1.3_0.18_3.23_2.16_0.53_8.11_30.28_1.04_5.64_0.41_3.98_7.25_0.74_1.9_3.98_0.45_2.34_3.52_6.95_7.71_5.78_2.95_1.54_3.53_21.69_4.62_0.82_4_4.22_1.6_1.46_3.65_0.34_3.43_2.37_1.61_4.57_5.79_0.19_20.61_11.68_0.93_4.92_2.31_0.01_0.01_4.61_0.38_1.58_0.96_1.13_2.31_6.66_0.98_0.53_4.49_5.08_4.76_0.3_0.48_18.87_8.43_3.43_1.52_0.01_1.1_6.97_9.75_7.31_3.22_3.14_23.25_6.27_13.37_4.36_0.31_19.24_5.54_1.3_4.64_4.3_3.15_0.61_0.67_3.46_0.23_8.45_56.28_5.29_2.5_1.67_0.4_16.53_1.71_6.85_9.75_0.83_3.49_8.13_3.24_4.73_2.29_1.42_22.41_1.09_9.44_2.11_4.21_2.74_3.58_5.36_14.63_1.35_7.22_8.61_3.36_7.93_1.51_3.96_4.07_4.8_0.13_4.09_8.9_8.79_6.02_2.06_2.82_1.1_0.95_0.83_0.55_2.47_1.34_0.15_2.19_0.86_1.96_7.79_1.35_0.76_0.91_6.8_1.56_0.09_2.13_2.46_0.26_1.63_7.07_1.58_0.37_1.06_0.73_0.64_3.78_0.75_29.03_7.67_3.59_5.47_3.66_0.92_1.12_0.36_0.54_6.02_12.51_8.32_4.18_6.93_0.62_1.74_25.94_17.85_5.56_1.12_5.39_10.19_5.67_13.03_1.89_0.12_0.4_3.31_7.44_1.98_5.28_2.89_0.87_1.24_1.59_0.1_1.67_2.93_0.06_1.93_2.71_11.33_1_0.32_5.17_2.05_4.12_0.67_0.29_2.71_5.11_3.68_0.57_0.36_17.83_3.34_0.53_0.16_1.06_0.82_0.2_5.34_0.22_3.05_5.46_1.46_17.14_13.8_3.49_6.92_0.86_9.72_0.02_3.24_7.36_0.97_0.33_14.1_8.92_11.14_3.65_2_74.88_10.38_23.53_1.81_3.73_15.63_8.89_1.48_0.61_1.45_15.88_3.28_19.05_6.29_5.59_0.58_4.44_5.59_26.85_6.5_9.24_12.44_4.68_1.41_1.51_8.37_1.69_2.1_13.08_29.37_10.41_9.61_12.77_6.93_7.29_0.13_23.13_1.41_3.04_1.89_2.22_8.61_0.92_2.39_3.35_3.61_3.81_1.31_3.39_2.39_0.93_18.07_18.58_2.91_18.42_34.39_13.19_7.19_3.55_8.95_12.76_7.61_43.07_34.76_8.22_0.77_1.45_13.95_9.33_3.35_2.78_12.12_8.41_2.47_6.25_9.42_18.95_1.07_11.22_3.32_5.19_12.87_1.04_0.32_0.73_1.83_11.9_1.19_10.58_3.86_0.6_6.62_11.45_1.61_0.51_16.78_1.82_4.1_2.71_0.59_12.39_6.09_1.62_8.57_3.03_4.17_0.93_18.26_5.81_22.63_8.21_0.59_6.61_10.88_17.04_9.93_6.89_2.41_18.95_3.62_1.87_3.94_0.49_0.64_4.12_1.31_3.18_0.49_1.11_13.01_0.13_4.82_0.79_2.65_14.68_0.47_3.52_1.61_4.02_0.16_0.47_0.69_5.95_2.95_7.36_0.27_2.13_0.04_3.61_7.67_5.18_1.89_3.68_0.27_0.51_0.63_1.84_2.07_11.96_1.62_5.56_1.78_1.83_5.54_9.91_1.91_0.55_1.18_16.23_21.59_5.69_1.92_6.89_5.07_2.85_8.2_5.58_0.33_0.74_0.12_0.84_11.4_3.02_3.08_18.22_5.11_1.64_5.71_9.41_7.93_25.36_1.97_0.47_10.66_10.14_4.2_0.48_0.23_6.71'
let f=t.split('_')
let arr=[]
for (let i=0;i<f.length;i++)
if (parseFloat(f[i])<1.2)
if (parseFloat(f[i])<1)
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