zyairelai / futures-hero

❗ HIGH RISK ❗ Scalping Trading on Binance Futures
163 stars 48 forks source link

Error running on VPS #19

Closed eugjr closed 3 years ago

eugjr commented 3 years ago

Hello, I"m trying to run it on a VPS but get some Syntax errors in code:

/hero$ python run.py
Pair Name        :   BTCUSDT
Trade Quantity   :   0.001 BTC
Leverage         :   50
()
Traceback (most recent call last):
  File "run.py", line 7, in <module>
    import strategy_hybrid
  File "/home/ubuntu/hero/strategy_hybrid.py", line 91
    print("4 HOUR YES") if hybrid.strong_trend(klines_4HOUR) == test_color else print("4 HOUR NO")
                                                                                    ^
SyntaxError: invalid syntax

`

zyairelai commented 3 years ago

image

Output: Screenshot from 2021-10-16 11-50-58

I had tested the similar syntax. There is no syntax in the error you sent me.
Make sure you are running Python 3.7 or above

eugjr commented 2 years ago

Thanks for the reply. Actually the problem is that VPS was on Python 3.6. Updated to 3.8 ver and the script runs, thanks.