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

Small spike 3rd and 5th price ranges incorrect #8

Closed
doopl opened this issue Apr 3, 2020 · 1 comment
Closed

Small spike 3rd and 5th price ranges incorrect #8

doopl opened this issue Apr 3, 2020 · 1 comment

Comments

@doopl
Copy link

doopl commented Apr 3, 2020

    sellPrices[work++] = intceil(randfloat(0.9, 1.4) * (float)basePrice);
    sellPrices[work++] = intceil(randfloat(0.9, 1.4) * basePrice);
    rate = randfloat(1.4, 2.0);
    sellPrices[work++] = intceil(randfloat(1.4, rate) * basePrice) - 1;
    sellPrices[work++] = intceil(rate * basePrice);
    sellPrices[work++] = intceil(randfloat(1.4, rate) * basePrice) - 1;
  • The min and max prices for the 3rd and 5th periods of a small spike should be 1 lower than the min and max prices for the 4th period.

  • Once the 4th period's price is known, the max price for the 5th period should be 1 less than the 4th period's price.

Thanks for the handy tool!

Edit: I just noticed this is already mentioned in a TODO comment :)

@mikebryant
Copy link
Owner

Thanks for raising this as an issue, much easier to keep track of than as a TODO :)

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