Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3d time interval issues #37

Open
Sanaikimdojin opened this issue May 30, 2022 · 4 comments
Open

3d time interval issues #37

Sanaikimdojin opened this issue May 30, 2022 · 4 comments

Comments

@Sanaikimdojin
Copy link

Sanaikimdojin commented May 30, 2022

setting.json
"trading_periods": "5m,15m",

If 3d are included in trading_periods, it will not run.
Is it just me?

@Sanaikimdojin Sanaikimdojin changed the title 1d, 3d time interval issues 3d time interval issues May 30, 2022
@breadacker
Copy link

class CandlestickInterval:
MIN1 = "1m"
MIN3 = "3m"
MIN5 = "5m"
MIN15 = "15m"
MIN30 = "30m"
HOUR1 = "1h"
HOUR2 = "2h"
HOUR4 = "4h"
HOUR6 = "6h"
HOUR8 = "8h"
HOUR12 = "12h"
DAY1 = "1d"
DAY3 = "3d"
WEEK1 = "1w"
MON1 = "1m"
INVALID = None

I did not get such a mistake. Might have made a syntax error maybe?

@Sanaikimdojin
Copy link
Author

Sanaikimdojin commented May 31, 2022

3d or more included
"Encountered Exception operands could not be broadcast together with shapes (499,) (128,)"
A phrase appears

@breadacker
Copy link

That's because u re trying to merge numpy arrays. Check the params of get_multi_scale and get_signal.

#get signal that is confirmed across multiple time scales.

def get_multi_scale_signal(client, _market="BTCUSDT", _periods=["1m"]):

signals = np.zeros(499)
use_last = True

for i, v in enumerate(_periods):

    _signal = get_signal(client, _market, _period= v, use_last=use_last)
    signals = signals + np.array(_signal)

@Sanaikimdojin
Copy link
Author

Sanaikimdojin commented Jun 2, 2022

I don't quite understand what you mean :(

Only certain coins have this phenomenon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants