optical fixes
This commit is contained in:
parent
3d39ce69ad
commit
58c896a9fa
@ -36,14 +36,6 @@ function check_sell_conditions {
|
|||||||
# store new interim result
|
# store new interim result
|
||||||
echo ${f_BUY_PRICE_LAST_RATE_DIFF} >>${f_TRADE_HIST_FILE_INTERIM}
|
echo ${f_BUY_PRICE_LAST_RATE_DIFF} >>${f_TRADE_HIST_FILE_INTERIM}
|
||||||
|
|
||||||
|
|
||||||
# Check for filled buy conditions - if filled don't sell
|
|
||||||
if ! check_buy_conditions ${f_ASSET_HIST_FILE} SELL
|
|
||||||
then
|
|
||||||
g_echo_note "${f_echo_prefix}Buy-Conditions met - Dont Sell"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# run strategies
|
# run strategies
|
||||||
local f_strategy_path=../../strategies
|
local f_strategy_path=../../strategies
|
||||||
[ -z "${BOT}" ] && f_strategy_path=strategies
|
[ -z "${BOT}" ] && f_strategy_path=strategies
|
||||||
@ -57,7 +49,18 @@ function check_sell_conditions {
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -n "$f_SELL" ]
|
||||||
|
then
|
||||||
|
# Check for filled buy conditions - if filled don't sell
|
||||||
|
echo " ${f_echo_prefix}Checking for filles Buy Conditions"
|
||||||
|
if ! check_buy_conditions ${f_ASSET_HIST_FILE} SELL
|
||||||
|
then
|
||||||
|
g_echo_note " ${f_echo_prefix}Buy-Conditions met - Dont Sell"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
### Sell or not sell?
|
### Sell or not sell?
|
||||||
# BOT
|
# BOT
|
||||||
@ -201,7 +204,7 @@ function check_sell_conditions_strategy {
|
|||||||
then
|
then
|
||||||
if [ $(echo "(${f_BUY_PRICE_LAST_RATE_DIFF} + -${FEE}) < 0" | bc -l) -ne 0 ]
|
if [ $(echo "(${f_BUY_PRICE_LAST_RATE_DIFF} + -${FEE}) < 0" | bc -l) -ne 0 ]
|
||||||
then
|
then
|
||||||
echo " Result negative - holding (INTERIM RESULT ${f_BUY_PRICE_LAST_RATE_DIFF}% - FEE ${FEE}% < 0"
|
echo " Result negative - holding (INTERIM RESULT ${f_BUY_PRICE_LAST_RATE_DIFF}% - FEE ${FEE}% < 0 --> Ignoring ${f_SELL}"
|
||||||
f_SELL=""
|
f_SELL=""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user