Mind
  • 👋Introduction
    • 🧠What is the Mind language?
  • 👟Getting Started With Mindtrade
    • 📈What is MindTrade?
    • 🤯What can I do with Mindtrade?
    • 🏗️Program structure
      • 🧱Program Components
      • 📀What is a Node?
        • ▶️Start Node
        • ⚙️Action Node
        • ❓Conditional Node
        • 🔚Output Node
      • 🔄Execution Flow
    • 👷‍♀️How to Create a Program?
      • 🔧Creating Projects
      • ✂️Editing Programs
        • ✨Chat to Program
      • ⚡Executing programs
    • 🗃️Templates
    • 🤫Secrets
  • ❓Nodes Details
    • 🔄Execution Control Nodes
      • Start node
      • Conditional node
      • Output Node
    • ⚙️Action Nodes
      • ☘️Common
        • Addition
        • Subtraction
        • Multiplication
        • Division
        • Power
        • Absolute Value
        • Random integer
        • Print Output
        • Print String
        • Wait
      • 💰Crypto
        • ⛓️On-chain
          • 🌐EVM
            • EVM Wallet
            • Get EVM Coin Balance
            • Send EVM Coin
            • 💲ERC20
              • Get ERC20 Allowance
              • ERC20 Approve
              • ERC20 Balance Of
              • ERC20 Total Supply
              • ERC20 Transfer
              • ERC20 Transfer From
              • Check balance and send
              • Send ERC20 USD Value
            • 💱Uniswap V2 DEX
              • UniV2 - Swap Tokens for Tokens
              • UniV2 - Buy Tokens for ETH
              • UniV2 - Sell Tokens For ETH
              • UniV2 - Limit Buy
              • UniV2 - Limit Sell
              • UniV2 - Catch Next Trade
              • UniV2 - Copy Trading
              • UniV2 - Get Token Bought in Trade
              • UniV2 - Get Token Sold in Trade
              • UniV2 - DCA With Coin
              • UniV2 - DCA With USDT
              • UniV2 - DCA Portfolio With Rebalancing
              • UniV2 - Get Price
              • UniV2 - Get Price Impact
              • UniV2 - Get Price Variation Percentage
              • UniV2 - Add LP ETH
              • UniV2 - Add LP Token
              • UniV2 - Remove LP ETH
              • UniV2 - Remove LP Token
              • Buy And Send ERC20 USD value
              • 📊Technical analysis
                • UniV2 - Get OHLCV Candles
                • UniV2 - Buy on Indicator Signal
                • UniV2 - Sell on indicator signal
          • ☀️Solana
            • Solana Wallet
            • Get SOL Balance
            • Send SOL
            • 💲SPL
              • Get SPL balance
              • Send SPL Token
            • 💱Jupiter DEX
              • Solana Get Token Price in USD
              • Solana Get Token Price
              • Solana Swap Tokens Jupiter
              • Solana Limit Order Jupiter
              • Solana - DCA With SOL
              • Solana - DCA with USDC
        • 💹CEX
          • CEX Instance
          • CEX Create Limit Buy Order
          • CEX Create Limit Sell Order
          • CEX Create Market Buy Order
          • CEX Create Market Sell Order
          • CEX Create Stop Limit Buy Order
          • CEX Create Stop Limit Sell Order
          • CEX Create Stop Market Buy Order
          • CEX Create Stop Market Sell Order
          • CEX Cancel Order
          • Cex cancel all orders
          • CEX DCA
          • CEX DCA portfolio with rebalancing
          • CEX Fetch Current Ask
          • CEX Fetch Current Ask Volume
          • CEX Fetch Current Bid
          • CEX Fetch Current Bid Volume
          • CEX Fetch Free Balance
          • CEX Fetch Total Balance
          • CEX Fetch Used Balance
          • CEX Get Price Variation Percentage
          • 📊Technical analysis
            • CEX - Get OHLCV Candles
            • CEX - Buy on indicator signal
            • CEX - Sell on indicator signal
        • 📊Technical analysis
          • Technical Analysis
          • Check indicator latest signal
      • 🫂Social
  • 🔠OBJECT TYPES
    • Introduction
    • Types
      • Secret
      • CryptoExchangeOrder
      • ExchangeType
      • CryptoExchangeTimeframe
      • CryptoExhange
      • BlockchainName
      • EVMAddress
      • EVMPrivateKey
      • EVMTransaction
      • EVMWallet
      • UniswapV2Trade
      • OHLCV
      • IndicatorName
      • OperatorType
      • IndicatorData
      • SolanaAddress
      • SolanaPrivateKey
      • SolanaTransaction
      • SolanaWallet
Powered by GitBook
On this page

Was this helpful?

  1. Nodes Details
  2. Action Nodes
  3. Crypto
  4. On-chain
  5. EVM
  6. Uniswap V2 DEX
  7. Technical analysis

UniV2 - Buy on Indicator Signal

PreviousUniV2 - Get OHLCV CandlesNextUniV2 - Sell on indicator signal

Last updated 10 months ago

Was this helpful?

The UniV2 - Buy on Indicator Signal node performs a buy on a Uniswap V2 trading pair when a technical indicator signal appears.

Inputs

  • base_currency:

    • description: The address of the base currency token of the pair for which the candles will be fetched. This is the token that will be bought when the signal appears. It must be the token contract address, not its name.

    • allowed types:

    • default value: None

  • quote_currency:

    • description: The address of the quote currency token of the pair for which the candles will be fetched. This is the token that will be sold when the signal appears. It must be the token contract address, not its name.

    • allowed types:

    • default value: None

  • num_candles:

    • description: The number of data points (candles) to retrieve.

    • allowed types: integer

    • default value: None

  • timeframe:

    • description: The timeframe of candles on which the technical indicator will be computed.

    • allowed types:

    • default value: None

  • indicator_name:

    • description: The name of the technical indicator to be calculated.

    • allowed types:

    • default value: None

  • window1 [Optional]:

    • description: The first time window needed for the indicator calculation.

    • allowed types: integer

    • default value: None

  • window2 [Optional]:

    • description: The second time window needed for the indicator calculation.

    • allowed types: integer

    • default value: None

  • window3 [Optional]:

    • description: The third time window needed for the indicator calculation.

    • allowed types: integer

    • default value: None

  • signal_threshold [Optional]:

    • description: The threshold for the indicator's signal calculation. For the EMA, HIGHBBAND, HIGHDONCHIAN, HIGHKC, LOWBBAND, LOWDONCHIAN, LOWKC, PSAR, SMA, and TRIX, the threshold must be left empty and the price values will be used as thresholds. For all other indicators, a threshold must be specified.

    • allowed types: integer

    • default value: None

  • threshold_operator:

    • description: The operator to apply between the values of the computed indicator and the signal threshold for the indicator's signal calculation.

    • allowed types:

    • default value: None

  • amount:

    • description: The amount of the base token to be swapped when the signal is verified.

    • allowed types: decimal

    • default value: 0

  • wallet:

    • description: The wallet to be used for the swapping transaction.

    • allowed types:

    • default value: None

  • slippage:

    • description: The slippage tolerance for the swapping transaction.

    • allowed types: decimal

    • default value: 0

  • blockchain:

    • description: The name of the blockchain on which technical analysis and the swapping transaction will occur.

    • allowed types:

    • default value: None

Output

  • description: The output of the swap transaction.

Tags

  • crypto

  • EVM

  • uniswap

  • technical analysis

  • DEX

type:

❓
⚙️
💰
⛓️
🌐
💱
📊
EVMAddress
EVMAddress
CryptoExchangeTimeframe
IndicatorName
OperatorType
EVMWallet
BlockchainName
EVMTransaction