---
title: Using Indicator Conditions Across TradingView Strategies
slug: using-indicator-conditions-across-indicators-and-strategies-in-tradingview
date: 2025-08-22
modified: 2026-09-03
author: Bhavishya Goyal
excerpt: ""
meta_description: "Learn how to use indicator conditions across indicators and strategies in TradingView. Combine RSI, MACD, and custom signals for automated trading."
focus_keyword: tradingview indicator conditions
canonical_url: "https://docs.pickmytrade.trade/docs/using-indicator-conditions-across-indicators-and-strategies-in-tradingview/"
og_title: Using Indicator Conditions Across TradingView Strategies
og_description: "Learn how to use indicator conditions across indicators and strategies in TradingView. Combine RSI, MACD, and custom signals for automated trading."
og_image: ""
schema_type: WebPage
categories: []
tags: []
reading_time: 2
word_count: 402
robots: "index, follow"
lang: en-US
---

# Using Indicator Conditions Across Indicators and Strategies in TradingView

**Last Updated:** September 3, 2026  |  **Published:** August 22, 2025

In TradingView, you may want to take a signal (like RSI oversold or MACD crossover) from one indicator and use it inside another indicator or strategy. Pine Script does not let you directly access another script’s variables, but you can still do it in two ways:

1. **Recalculate the condition inside your script** – just compute RSI, MACD, or other signals again.
2. **Use an external input** – create an indicator that plots a signal, then connect your strategy or another indicator to that signal with `input.source`.

---

## Method 1: Recalculate Inside Your Script

The easiest way is to calculate the condition again in your own script.

**Example: RSI condition in a strategy**

```
//@version=5
strategy("Strategy with RSI Condition", overlay=false)

rsiValue = ta.rsi(close, 14)

if rsiValue &lt; 30
    strategy.entry(&quot;Buy&quot;, strategy.long)
```

This strategy buys when RSI is below 30, without using any external indicator.

---

## Method 2: Use Another Indicator as a Source

If you want to keep logic separate, one script can make the signal, and another can use it.

**Step 1: Create a signal indicator**

```
//@version=5
indicator(&quot;RSI Signal&quot;, overlay=false)
rsiVal = ta.rsi(close, 14)
signal = rsiVal &lt; 30 ? 1.0 : 0.0
plot(signal, title=&quot;RSI &lt; 30&quot;)
```

This indicator plots `1` when RSI &lt; 30, and `0` otherwise.

**Step 2: Create a strategy or indicator that reads the signal**

```
//@version=5
strategy(&quot;Strategy Using RSI Signal&quot;, overlay=false)

rsiSignal = input.source(close, title=&quot;RSI Signal Source&quot;)

if rsiSignal == 1.0
    strategy.entry(&quot;Buy&quot;, strategy.long)
```

**How to use:**

![TradingView MNQ futures chart with RSI and MACD indicator panes stacked below the price chart](https://docs.pickmytrade.trade/wp-content/uploads/2025/08/ezgif-2ed95298a45033.gif)

1. Add both the indicator and the strategy / indicator to your chart.
2. In the strategy/indicator settings, set _Source_ to the plot from the RSI Signal indicator.
3. The strategy or indicator will now trade whenever that external condition is true.

---

## Key Points

- You cannot directly read variables from another script.
- To reuse conditions:
  - Either **recompute** them inside your script, or
  - **Plot them as signals** (like `0`/`1`) in one indicator and use `input.source` in another.
- Strategies can only use **one external input** at a time.
- External signals must be numeric values, not booleans.

---

## Summary

You can use indicator conditions across indicators and strategies in TradingView by either recalculating them inside your script, or by creating a signal indicator and connecting it with `input.source`. For extra flexibility, you can add selectors to switch between conditions. These methods make your scripts more modular, reusable, and easier to manage.

[Get PickMyTrade → Automate Your TradingView Strategies](https://pickmytrade.trade &quot;PickMyTrade - Automated Trading&quot;)

Last updated: **September 3, 2026**

For AI tools &amp; developers:[View Markdown →](https://docs.pickmytrade.trade/docs/using-indicator-conditions-across-indicators-and-strategies-in-tradingview.md)