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

Missing files #2

Open
migueltg opened this issue Nov 5, 2023 · 2 comments
Open

Missing files #2

migueltg opened this issue Nov 5, 2023 · 2 comments

Comments

@migueltg
Copy link

migueltg commented Nov 5, 2023

I'm currently working on this project, and I'm facing an issue related to missing files or incomplete project upload. Specifically, I am unable to locate the function called "strategy_runner."

Could someone please confirm whether the project has been uploaded in its entirety or if there are any missing files, if there are any specific instructions or updates regarding the project, please provide them.

Thanks for your work @ChallengerIL

@ChallengerIL
Copy link
Owner

ChallengerIL commented Nov 6, 2023

There are 2 packages that are not present in the repository:
credentials.py and strategies.py.

strategy_runner is a method from strategies.py, that is used for convenient testing of different strategies.

Here's an example of it's content:

def strategy_runner(tester, account, index):
    test(tester, account, index)


def test(tester, account, index):
    tester.check_exit(account, index, trailing_stop=False, fixed_tp_sl=True, martin=False, fast_growth=False)

    if tester.open[index] > tester.ema.d1_200[index-1]:
        if tester.macd.d1[0][index-2] <= 0:
            if tester.macd.d1[0][index-1] > 0:
                sl = tester.low[index-1] - tester.atr.data[0][index-1] * tester.atr_multiplier
                tester.open_long(index=index, manual_sl=sl, sl_multiplied_tp=True)
    elif tester.open[index] < tester.ema.d1_200[index-1]:
        if tester.macd.d1[0][index-2] <= 0:
            if tester.macd.d1[0][index-1] > 0:
                sl = tester.high[index-1] + tester.atr.data[0][index-1] * tester.atr_multiplier
                tester.open_short(index=index, manual_sl=sl, sl_multiplied_tp=True)

You might have a few strategies running at the same time.
The project has seen a lot of changes recently and I'll update the repository once I have time.

@migueltg
Copy link
Author

migueltg commented Nov 13, 2023

There are 2 packages that are not present in the repository: credentials.py and strategies.py.

strategy_runner is a method from strategies.py, that is used for convenient testing of different strategies.

Here's an example of it's content:

def strategy_runner(tester, account, index):
    test(tester, account, index)


def test(tester, account, index):
    tester.check_exit(account, index, trailing_stop=False, fixed_tp_sl=True, martin=False, fast_growth=False)

    if tester.open[index] > tester.ema.d1_200[index-1]:
        if tester.macd.d1[0][index-2] <= 0:
            if tester.macd.d1[0][index-1] > 0:
                sl = tester.low[index-1] - tester.atr.data[0][index-1] * tester.atr_multiplier
                tester.open_long(index=index, manual_sl=sl, sl_multiplied_tp=True)
    elif tester.open[index] < tester.ema.d1_200[index-1]:
        if tester.macd.d1[0][index-2] <= 0:
            if tester.macd.d1[0][index-1] > 0:
                sl = tester.high[index-1] + tester.atr.data[0][index-1] * tester.atr_multiplier
                tester.open_short(index=index, manual_sl=sl, sl_multiplied_tp=True)

You might have a few strategies running at the same time. The project has seen a lot of changes recently and I'll update the repository once I have time.

Thanks for reply me @ChallengerIL

I'm interested in contributing to the project and was wondering if there are opportunities for collaboration.

I'm particularly interested in organizing the project to help to run them easily.
I have taken a look at the project's code and reviewed and have a lot of good feeling.

Would be possible to establish a communication channel to further discuss how I can contribute and share ideas?

I appreciate your time and consideration. I look forward to the opportunity to contribute to the project!

Thank you

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