INVITE-ONLY SCRIPT

RT-Main Indicator

45
The RT-Main Indicator is the core indicator that started it all. Developed over more than 5 years, this all in one tool helps traders identify when market participants are buying and selling using multi-colored candles that update in real time. It also identifies key support and resistance levels with Rainbow Pivots and highlights unusual price movements with Whale Print arrows. At its core, the RT-Main Indicator tracks buying and selling with eight colors instead of two, because real world markets are complex and order flow should not be treated as purely binary(Red vs Green).

Introduction
The RT-Main Indicator is designed as a primary Rainbow Theory Tool. It uses color coded candles to show changes in strength, Rainbow Pivots to mark important support and resistance areas, and Whale Prints to flag abnormal buy and sell activity. The goal is to bring these components together into a single framework so traders can read trend, structure, and larger player behavior without stacking many separate indicators.

This tutorial will cover each aspect of the tool:
syot kilatColored Candles
Whales are stealth experts and their strength is their ability to not be detected as they move the market. Rainbow Theory illuminates them from the shadows with a spectrum of specifically coded colors to display their unique strengths/weaknesses. In practice, this means the RT-Main Indicator uses internal strength and exhaustion metrics to color candles so that shifts in buying and selling pressure are easier to see.

The base of the RT-Main Indicator is the colored candles it paints onto the chart. These colors automatically tune to the chart based on the timeframe the trader is currently using (1D, H12, H1, 15M, etc). Instead of painting charts with a single Bullish Color (Green) and a single Bearish Color (Red), Rainbow Theory breaks out and identifies these moves into four Bearish Colors (Red|Orange|Yellow|White) and four Bullish Colors (Green|Blue|Purple|Pink). Each color tells a different story of the trend and helps traders better understand the nature of the current trend.

syot kilatBullish Colors
#4 - Green Candles - Weakest bullish color, these trends can sustain for extended periods of time.
#3 - Blue Candles - Strong bullish color, a move is starting to develop and can sustain.
#2 - Purple Candles - Second strongest bullish color, Whales are committed to the move but cannot sustain this level of momentum for long durations and a top is near.
#1 - Pink Candles - Strongest bullish color, Whales are using every single ounce of energy they have to push price up, the trend cannot be sustained and its time to take profits.
syot kilatBearish Colors
#4 - Red Candles - Weakest bearish color, these trends can sustain for extended periods of time.
#3 - Orange Candles - Strong bearish color, a move is starting to develop and can sustain.
#2 - Yellow Candles - Second strongest bearish color, Whales are committed to the move but cannot sustain this level of momentum for long durations and a bottom is near.
#1 - White Candles - Strongest bearish color, Whales are using every single ounce of energy they have to push price down into all out capitulation, the trend cannot be sustained and its time to look for entries.
syot kilatHow To Enable Colored Candles
By default, the Indicator’s Candles are placed behind the default candles. To properly display them, you must bring them forward. To do this, click the settings icon on the indicator, click visual order and then click bring to front:
syot kilatExample - Bringing all the colors together into a Bearish Trend that reverses into a Bullish Trend:
syot kilatThe color thresholds can be tuned using the following options:
syot kilat
  • Automatic Tuning On/Off - Enables or disables the automatic color tuning that adjusts for each timeframe.
  • Auto Tuning Gain (Inc/Dec) - Increases or decreases how aggressive the automatic tuning algorithm adjusts color tuning.
  • Manual Fine Tuning - Linear Color Shift - Manually controls the linear sensitivity for color candle thresholds. This can be visualized as a setting being adjusted up or down in a straight, linear fashion.
Linear Color Shift
syot kilat
  • Manual Fine Tuning - Exponential Color Shift - Manually controls the exponential sensitivity for color candle thresholds. This can be visualized as a setting being adjusted in an exponential manner where each level moves in an exponential shift instead of all moving equally.
Exponential Color Shiftsyot kilatDark Mode
Some traders prefer light colored backgrounds for their charting, which can make white candles difficult to see. The RT-Main Indicator includes a Dark Mode toggle so colors stay readable on both dark and light charts.
syot kilat
  • Dark Mode Candles On/Off - Forces the indicator to use the second color set stored in the Style tab in the RT-Main Indicator settings when using light backgrounds.
The White/Black Candle can also have a custom color applied if the trader is not content with these two default options.
syot kilatCustom Candle Colors
In addition to toggling between light and dark modes, each individual color used by the RT-Main Indicator can be edited in the Style tab. This allows traders to keep the same logic while adjusting the visual palette to match their own chart layout.
syot kilatRainbow Rotations
Rainbow Rotations are a feature traders use to catch reversals or reversions when a trend fully blows out. The algorithm triggers on the first weaker candle that closes after a Pink or White candle prints. The general idea of this event is to show peaks and valleys of an asset.

In a strong bearish move, White candles mark extreme selling. If a weaker Yellow candle appears after a White candle, that first weaker candle is where the rotation event triggers and a Rainbow Rotation marker is placed on the chart. In a strong bullish move, Pink candles mark extreme buying. The first weaker bullish candle after a Pink candle triggers the opposite side rotation marker.

Note that Rainbow Rotations can only be visible for a finite amount of candles. The Replay function in TradingView can be used to review previous triggers.
syot kilatRainbow Rotation settings are available near the top of the settings menu:
syot kilat
  • Rainbow Rotation Alerts On/Off - Toggles these signals on or off with one click.
  • Rainbow Rotation Symbol - Customizes the symbol that is plotted on the chart for Rainbow Rotations. Both text and emojis can be used instead of the default symbol.
Rainbow Rotation Alerts
Rainbow Rotations can also be automated with standard TradingView alerts. To set this up:
  • Click the Alert icon on the right side of the screen.
  • Change Condition to the RT-Main Indicator.
  • Change the second condition to one of the three options:
    Bullish Alerts | Bearish Alerts | Bearish and Bullish Alerts
  • Set Trigger to Once Per Bar Close.
syot kilat
Once set up, this allows traders to be notified when the RT-Main Indicator detects an extreme bullish or bearish trend that is starting to reverse.

Automated Pivots
One of the RT-Main Indicator's most powerful functions is the automated support and resistance pivots. This logic uses two internal bots that are tuned to look for potential support and resistance order blocks.
  • The Resistance Pivot Bot prints lines that are painted with red dashes.
  • The Support Pivot Bot prints lines that are painted with green dashes.
Regardless of the color of the dashed pivot line, any trend that approaches a pivot should be respected. For example, a trend moving up towards a green support pivot should still treat that area as resistance if price is approaching from below.
syot kilat
As the algorithm continues to print additional pivots on the chart, traders can start identifying order blocks that are otherwise hidden in the price action. These order blocks are key support and resistance areas that trends will often interact with and respect. Multiple stacked pivots in the same region are a visual clue that such an order block has formed.
syot kilat
Pivots can be tuned with the following options:syot kilat
  • Pivot On/Off - Quickly toggles all pivots on or off.
  • Pivot Style - Switches between different styles of marking pivots.
  • Pivot Sensitivity (Inc/Dec) - Tunes the sensitivity of the pivot algorithms. Adjusting this changes how many pivots are printed on the chart.
  • Pivot Line Drawing Length - Controls how long the indicator draws the pivot lines.
  • Resistance / Support Pivot Colors - Allows customization of pivot colors to match the rest of the chart.
Whale Prints
One of the most important parts of the RT-Main Indicator is tracking Whale Prints. This portion of the script looks for abnormal buys and sells that are more consistent with large players than typical flow. Under normal circumstances, whales try to avoid being visible when they buy or sell, but there are times where they are forced to come out of hiding and deliberately move the market.

The Whale Print logic is tuned to notify the trader when it detects that this type of unusual activity may be occurring.
syot kilat
  • Bearish Whale Prints are marked on the chart with a red triangle.
  • Bullish Whale Prints are marked on the chart with a green triangle.
Whale Print clusters are situations where multiple Whale Prints have been identified in the past 10 candles. While individual Whale Prints are useful, clusters of Whale Prints are particularly important because they often signal that a very large move is potentially being prepared/defended.
syot kilatThe Whale Print table is an active tracker that counts the number of bullish and bearish Whale Prints that have occurred in the past 10 candles.syot kilatWhale Print settings can be tuned with:
syot kilat
  • Whale Print Clusters Table On/Off - Toggles the Whale Print table on or off with one click.
  • Whale Print Clusters Alerts On/Off - Toggles the Whale Print cluster symbol on or off.
  • Whale Print Cluster Symbol - Changes the symbol on the chart for Whale Clusters. Emojis and text can both be used instead of the default symbol.
  • Whale Print Cluster Bullish/Bearish Label Color - Customizes the color of the Whale Print cluster labels on the chart.
Whale Print Cluster Alerts
Whale Print Cluster alerts can be automated with standard TradingView alerts. To set this up:
  • Click the Alert icon on the right side of the screen.
  • Change Condition to the RT-Main Indicator.
  • Change the second condition to one of the two options:
    Bull Whale Cluster Alert | Bear Whale Cluster Alert
  • Set Trigger to Once Per Bar Close.
syot kilat Once set up, this allows traders to be notified when the RT-Main Indicator detects a Whale Print Cluster.

Bull/Bear Trend Step Line
The inflection point of the colored candles is controlled by the Bull/Bear Trend Step Line. This is the grey stepped line on the chart where the bullish and bearish colors meet.
  • Candles above this line are marked by the four bullish candle colors.
  • Candles below this line are marked by the four bearish candle colors.
syot kilatThe Bull/Bear Trend Step Line can be tuned with:
syot kilat
  • Bull/Bear Line Offset - Controls a vertical threshold for the line.
  • Bull/Bear Line Smoothness - Controls the sensitivity and smoothness of the line so traders can fine tune it for their specific setups.
Most traders do not adjust the Bull/Bear Step Line. The small group that does typically only use these settings for lower timeframe trading setups below 5 minute candles. If preferred, the line can be recolored or hidden from the Style tab of the RT-Main Indicator without changing how the core color logic works.

Important Note
The RT-Main Indicator is intended to provide additional context around trend strength, exhaustion, and key areas of support and resistance. It is not a standalone signal generator and should always be used together with your own analysis, testing, and risk management. Historical color patterns, pivots, and Whale Prints do not guarantee future results.

🐋 Tight lines and happy trading!

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.