Skip to content
New issue

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

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

Already on GitHub? # to your account

The SELL side of the grid doesn't reach the maximum possible sell side orders #36

Open
kinbitz opened this issue Dec 16, 2021 · 0 comments

Comments

@kinbitz
Copy link
Contributor

kinbitz commented Dec 16, 2021

This check needs to be changed to allow the maximum number of levels for SELL side to reach the full size of the grid because it less than GRID_LEVELS, but to allow this change more code changes are needed.

if 0 <= level < GRID_LEVELS and (grid[level] == "" or grid[level] == "-"):

This line has to be changed to grid = ["-"] * (GRID_LEVELS+1)

grid = ["-"] * GRID_LEVELS

This line has to be changed to for n in range(last_level + 1, GRID_LEVELS+1):

for n in range(last_level + 1, GRID_LEVELS):

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

No branches or pull requests

1 participant