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

Flexible BUY configuration for General BUY and Extra BUY operations #8

Open
AndreyMashukov opened this issue Mar 2, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AndreyMashukov
Copy link
Owner

AndreyMashukov commented Mar 2, 2024

buyPrice = m.LossSecurity.CheckBuyPriceOnHistory(tradeLimit, buyPrice)

BUY Extra BUY
LossSecurity (y/n) LossSecurity (y/n)
ML (y/n) ML (y/n)
Interpolation (y/n) Interpolation (y/n)
Low price (y/n) Low price (y/n)

Loss Security

func (l *LossSecurity) IsRiskyBuy(binanceOrder model.BinanceOrder, limit model.TradeLimit) bool {

ML

Interpolation

if l.InterpolationEnabled && kline != nil {

Low price

if price > kline.Low {

@AndreyMashukov AndreyMashukov added the enhancement New feature or request label Mar 2, 2024
@AndreyMashukov AndreyMashukov self-assigned this Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant