🇬🇧
Code Zero Visual Trading
English
  • General information
    • 🚀About our products
    • ✅Our benefits
  • User guide
    • ⏩Creating and testing the strategy
    • ⏰Alerts
      • 📈From Indicator
      • 🤖From Strategy
    • 👽Automation of trading
    • 🤝How to share your strategy
    • 📊TradingView for beginers
    • How to connect Copy Trading
    • How to create API keys on Binance
    • How to create API keys on ByBit
    • How to create API keys on OKX
    • How to enable Hedge-mode
    • 🚧How to update the version
    • 🚦How to modify the indicator to work with CDZV Toolkit
  • CDZV TOOLKIT
    • 📈Indicators
      • 💻CONDITION MANAGER
        • ⚪RULE
        • ⚪GROUP
        • ⚪CONSTANT
        • ⚪ALERT
        • ⬜Data source
        • ⬜Aggregator functions
        • ⬜Condition
        • ⚪Backtesting
        • ⬜Output data
      • 🔢DATA SOURCE
      • 🔂STATE MACHINE
        • Interface
        • Special variables
        • Output data
        • Backtesting
      • 🔀IF-THEN-ELSE
      • 📍SWITCH
      • 🏷️SOURCE MARKER [1-9]
      • ⌚INTERVAL
      • ⏳TIMER
      • 🎞️SESSIONS
    • 📊Strategies
      • 👾CONDITION MANAGER STRATEGY
      • 🪜MARTIN GRID STRATEGY
    • How to add indicators to TradingView?
    • 📨Telegram-bot
  • COIN REBALANCER
    • Coin Rebalancer
  • SMART GRID PRO
    • SMART Grid Pro
  • SUPPORT
    • 📖FAQ
      • 🧠Questions-Answers
    • 🕶️Privacy Policy
    • ❗Term of use
    • ⚠️Disclaimer
    • ▶️YouTube
Powered by GitBook
On this page
  1. CDZV TOOLKIT
  2. Indicators

SWITCH

Code Zero Visual Trading for TradingView

PreviousIF-THEN-ELSENextSOURCE MARKER [1-9]

Last updated 1 year ago

Association

SWITCH is a "remote control".

SWITCH is an indicator that works like a channel switcher. Each channel, when activated, has its own data source, which will be the result when this channel is activated.

It's like a remote control for a TV. You can "switch" between different conditions (channels). Each "channel" has its own settings:

  1. "On-Off": choice of whether this channel is active.

  2. "Trigger (IN)": the condition that "turns on" the channel.

  3. "Result (OUT)": the data you receive when the channel is active.

  4. "Memory": whether to keep the first triggered value or use the latest data.

Warning

When a signal enters the channel, the previous value that was memorized is updated.

If multiple conditions are triggered simultaneously, SWITCH can choose:

  • "FIRST": the first incoming value.

  • "LAST": the last incoming value.

The SWITCH module has two outputs:

  • One shows which channel is currently working.

  • The other gives the specific value that this channel transmits.

📈
📍