INNER CODE UNIT · Go

isBuyInitial

aleibovici/cryptopump · algorithms/algorithms.go:434

func isBuyInitial(
	configData *types.Config,
	marketData *types.Market,
	sessionData *types.Session) (bool, float64) {

	/* Validate RSI7 lower than buy_rsi7_entry */
	/* Validate RSI3 not negative */
	if marketData.Rsi7 < configData.BuyRsi7Entry && marketData.Rsi3 > 0 {

		/* Do not log if DryRun mode set to true */
		if !configData.DryRun {

			logger.LogEntry{ /* Log Entry */
				Config:   configData,
				Market:   marketData,
				Session:  sessionData,
				Order:    &types.Order{},
				Message:  "INIT",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…