small fixes
This commit is contained in:
parent
93e882e561
commit
2bf22dfee8
@ -15,9 +15,6 @@ function analyze {
|
|||||||
local file=$1
|
local file=$1
|
||||||
tmpfile=$(basename "${file}")
|
tmpfile=$(basename "${file}")
|
||||||
|
|
||||||
# to avoid parallel output
|
|
||||||
sleep $(shuf -i 1-10 -n1)
|
|
||||||
|
|
||||||
. /etc/bash/gaboshlib/g_percentage-diff.bashfunc
|
. /etc/bash/gaboshlib/g_percentage-diff.bashfunc
|
||||||
. dabo/functions/check_buy_conditions.sh
|
. dabo/functions/check_buy_conditions.sh
|
||||||
. dabo/functions/check_sell_conditions.sh
|
. dabo/functions/check_sell_conditions.sh
|
||||||
@ -130,6 +127,15 @@ cp -r strategies analyze-${analyzedate}/
|
|||||||
for file in $@
|
for file in $@
|
||||||
do
|
do
|
||||||
echo "${file}" | egrep -q "BALANCE|MSCI-WORLD-INDEX" && continue
|
echo "${file}" | egrep -q "BALANCE|MSCI-WORLD-INDEX" && continue
|
||||||
|
|
||||||
|
lines=$(egrep "^${ANALYZE_TIME}" "$file" | grep -v ',,' | wc -l)
|
||||||
|
if [ $lines -lt 50 ]
|
||||||
|
then
|
||||||
|
g_echo "Only $lines lines for given timeframe (${ANALYZE_TIME}) in $file - ignoring files with less then 50!"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "${ANALYZE_BATCH}" -eq "0" ]
|
if [ "${ANALYZE_BATCH}" -eq "0" ]
|
||||||
then
|
then
|
||||||
echo -n " \"analyze ${file}\"" >>/tmp/parallel-$$
|
echo -n " \"analyze ${file}\"" >>/tmp/parallel-$$
|
||||||
|
Loading…
Reference in New Issue
Block a user