One-click alerts and orders!

By clicking on the cross you can place a limit/stop order or a crossing type alert at specific price in one click now:

Stay tuned for more improvements!

New shortcuts to improve interaction with charts!

Operating graphical objects has never been that convenient:


To clone a graphical object:

  • Point mouse cursor on a drawn object
  • Hold CTRL and use left mouse button to drag a cloned object


To make a circle out of ellipse:

  • Select Ellipse on the drawing toolbar
  • Put its first point on chart
  • Hold SHIFT and put the second point to define diameter of the circle


To make a square out of rectangle:

  • Select Rectangle on the drawing toolbar
  • Put its first point on chart
  • Hold SHIFT and put the second point to define diagonal length of the square


To draw a multiple of 45 degrees angle:

  • Select a trend object on the drawing toolbar, e.g. Trend Line
  • Put its first point on chart
  • Hold SHIFT and move mouse cursor to choose an angle

This shortcut works with Trend Line, Trend Angle, Disjoint Angle, Flat Top/Bottom, Ray, Parallel Channel.

Charting Library 1.5 (stable) Released!

The Charting Library  1.5 (stable) has been released! It has many new improvements and bug fixes, which were requested and reported by our wonderful community.

What’s new:

  1. Second-based timeframes. It’s possible to plot “X” seconds charts now, for example a 5 second or 20 second charts.
  2. Maximized panes. If you want to focus on a specific pane, simply double-click on a pane to maximize it. You can also do this by clicking maximize/minimize buttons in the right top corner of a pane.
  3. Customized default settings for a graphic object (GitHub issue #976). You can change settings of a drawing object to save them as new defaults.
  4. New symbol info dialog (GitHub issue #936). Show as many details for users as they need: symbol name, description, category, exchange, session info and much more.
  5. Custom colors for markers on bars (GitHub issue #914). Markers can now be used to display info on a specific interval of a chart. You can choose any RGB color for markers.
  6. An attribute to show last bar values (GitHub issue #780). Use the attribute ‘price_scale_always_last_bar_value’ to show actual last bar values instead of the last visible bar values
  7. Offset from UTC for various time zones (GitHub issue #838). Time zone offset is now displayed on charts.
  8. Cursor movement events (GitHub issue #735). Easier interaction with chart. If you subscribe to ‘crossHairMoved’ event, you can get info about price and date/time on the point where the cursor is located. It can be very useful if you want to display additional info on specific intervals.

More new features:

  1. Configurable delay after a character is typed into symbol search field and before it actually starts searching (GitHub issue #974).
  2. Configurable delay before onAutoSaveNeeded event triggers (GitHub issue #846).
  3. Feature that disables/enables Compare or Add Symbol buttons on chart (GitHub issue #694).
  4. Advanced settings for the Moving Average indicator (GitHub issue #676).
  5. Feature that allows to limit max. number of indicators on chart (GitHub issue #649).
  6. Feature for deactivating time zones menu (GitHub issue #647).
  7. Language files are significantly reduced in size for the charting library (GitHub issue #961).
  8. Requests to external resources, which decrease performance, are excluded (GitHub issue #421).

Bug fixes:

  1. Critical issue with graphic objects drawn “in future” on chart (GitHub issue #562).
  2. Incorrect titles of RSI plots (GitHub issue #1024).
  3. Empty chart tab when switching between Google Chrome tabs (GitHub issue #1015).
  4. Study Templates menu issue (GitHub issue #1013).
  5. Double Volume indicator when applying a study template (GitHub issue #1013).
  6. Critical issue upon clicking Remove All Indicators (GitHub issue #1008).
  7. Incorrect titles of Donchian Channels plots (GitHub issue #1006).
  8. Incorrect market status indicator on chart (GitHub issue #942).
  9. Levels reset for Fibonacci Retracement tool (GitHub issue #911).
  10. Complex charts don’t load (GitHub issue #956).
  11. Incorrect bar timestamps (GitHub issue #886).
  12. Market position line is displayed only on top pane (GitHub issue #880).
  13. Wrong symbol names cannot be processed (GitHub issue #871).
  14. Study templates with special characters cannot be applied to charts (GitHub issue #855).
  15. Some MACD plots are missing (GitHub issue #854).
  16. Chart saved with locked scale cannot load (GitHub issue #852).
  17. Issue with left side toolbar (GitHub issue #851).
  18. XSS security vulnerability in demonstration code (GitHub issue #847).
  19. Loading the same symbol on chart requests too much data (GitHub issue #841).
  20. Data loading error when local date is incorrect (GitHub issue #837).
  21. Snapshot menu is shown when ‘show_dialog_on_snapshot_ready’ is off (GitHub issue #836).
  22. Marks are incorrect when zooming in/out (GitHub issue #796).
  23. Volume indicator is applied on chart scrolling(GitHub issue #792).
  24. Wrong background color for snapshot button (GitHub issue #769).
  25. True Strength Indicator plots only the thin line (GitHub issue #758).

Over 400,000 snapshots shared!

Wohoo! A fun milestone was hit today – TradingView users have shared over 400,000 snapshots in public chat messages. The Snapshot button is available right above the chat window – it instantly shares an image of you chart with the group. A great way to quickly describe what you are talking about and help others learn.

Keep on sharing!

Historical data from FXCM on TradingView can be slightly different from FXCM Trading Station

Historical data from FXCM on TradingView can be slightly different from FXCM Trading Station. The reason of this is the FXCM API we currently use is capable of sending up to 2 ticks per 1 second, so in case of increased market activity some ticks are not counted, what might result in a slight difference of historical bars on vs. historical bars in FXCM Trading Station, where all ticks are displayed. We are working on the possible solution.

Real-time and intraday data from Indian Exchanges

Since today TradingView offers official real-time and intraday data from National Stock Exchange and from Bombay Stock Exchange. Pro, Pro Plus and Premium account holders can purchase BSE market data subscription for $4 per month. At the moment NSE data is available for free for all users:

We are constantly working on adding new markets on TradingView. Stay tuned for more improvements!

500K Ideas!

Woohoo! The TradingView community now boasts over half a million published ideas! That’s right, there are now over 500,000 ideas for you to study, learn from and get even better at trading. Keep ’em coming!

Real-time data from London Stock Exchange

Since today TradingView offers official real-time data from London Stock Exchange. Pro, Pro Plus and Premium account holders can purchase the following market data subscriptions:

  • London Stock Exchange (stocks of UK companies traded on LSE) for 8 USD per month
  • London Stock Exchange (stocks of international companies traded on LSE) for 4 USD per month.

We are constantly working on adding new markets on TradingView. Stay tuned for more improvements!

Clear your charts up!

You may have noticed the navigation buttons are now hidden. Don’t worry, if you point mouse cursor on where they used to be located, they will be revealed.

If you still want to have them shown by default, you can configure this in chart properties on the Background tab:



  • ‘Visible on Mouse Over‘ – navigation buttons are hidden until you put mouse cursor on them
  • ‘Always Visible‘ – the buttons are always shown
  • ‘Always Invisible‘  – the buttons are always hidden

Please note that as soon as you click ‘Ok’, visibility configuration for the navigation buttons will be applied for all your charts. ‘Visible on Mouse Over’ is new default setup.

New Fundamentals!

The following instruments have been added to the Indicators\Fundamentals section:

  • Market Cap;
  • Price/Earnings (PE Ratio);
  • Price/Earnings to Growth (PEG Ratio);
  • Price/Sales (PS Ratio);
  • Dividends Yield;
  • Price/Book Value per share;
  • Price/Cash Flow per share.

Please note that these tools work on symbols from NASDAQ, AMEX, NYSE.

Keep in mind that you can active Trailing Twelve Months indication:

Thank you for staying with us!

Spring cleanup!

TradingView is an open and democratic platform, where the community helps it grow and improve on a daily basis through requests, ideas and suggestions. Any community member could freely create a new public chat room if he / she thinks an interesting topic is missing. This approach has led to the creation of some very popular rooms, where everyday market conditions are discussed and ideas are shared in real-time. The most active rooms attract many daily visitors and get thousands (in some cases tens of thousands) of messages and snapshots per month.

This approach has worked well and got everyone started, and has filled its purpose. It also led to the creation of many rooms that lack an audience, or only get a few messages per month, or have an unclear purpose, or are duplicates of existing rooms, or became inactive over time, or have simply remained unused. With over 200 chat rooms created over the years, it’s getting increasingly difficult to pick the good ones through all the mess. Since public chats must add value and be relevant for the whole community, it’s time to review all of them and make appropriate changes to the creation process. The goal is to rationalise the current landscape of 200 rooms, making it easier to find the viable ones – and keep it that way.

To clean it all up:  

  1. as of today new public chat rooms can’t be created for a while
  2. all rooms will be reviewed by our moderators
  3. rooms with little to no activity, duplicate rooms and ones that add no value to the community will be deleted
  4. in 2 weeks, only members with upgraded plans  can request new rooms
  5. requests will be reviewed by moderators and rooms created when it makes sense. Any new room will have
    1. clarity of purpose
    2. added value
    3. viability, i.e. interesting to the public and aligned with the goals of the site and
    4. its purpose must not be currently met by existing rooms.

Thanks! Hope these changes will make everyone’s lives easier. Happy to answer any questions.

Transparency in Pine Scripts

Color type variables now have an additional parameter to set default transparency. There are 2 ways to configure transparency level:

1. #FFA50040 – the last 2 digits stand for 64% transparency (in hexadecimal system) for orange color (in RGBA format)

bgcolor (#FFA50040)

2. You can use the ‘color’ function to change transparency:

color(red, 70)
color(#FFA500, 80)



study(title="Shading the chart's background", overlay=true)
c = navy
bgColor =(dayofweek == monday) ? color(c, 50) :
    (dayofweek == tuesday) ? color(c, 60) :
    (dayofweek == wednesday) ? color(c, 70) :
    (dayofweek == thursday) ? color(c, 80) :
    (dayofweek == friday) ? color(c, 90) :
    color(blue, 80)


Of course, you still can control transparency in properties of a study on Style tab.


You can learn more in Pine Script Tutotrial and in Pine Script Referenc

Posted by / March 15, 2016 / Posted in Pine

Use only one account – registering with multiple accounts is not allowed.

TradingView is a community of investors and traders, who share and discuss trading ideas. This is why we allow registering only with one account. It’s a part of TradingView’s philosophy and mission. We are working toward bringing more transparency and accountability to discussions of the financial markets on the web.

Please note that if we find out a user has more than 1 account, all those accounts except for the original will be banned permanently. If we find out duplicate accounts have been used to artificially inflate one’s reputation score, a correction will be made to this score and the original account will be banned. Rating must be earned honestly.

Please follow the link to study all our House Rules.

Thank you for staying with us!

TradeIt in TradingView widgets!

We are happy to announce: you can place trades right from our widgets now! We have just plugged-in the TradeIt component, that allows sending orders via various popular brokers.
It is a very simple, quick and secure way of trading: 2 clicks and an order is placed!

To get access to this tool, please activate ‘Enable Trading with TradeIt’ in widget constructor: 

Or you can add the following line in widget code:

"tradeItWidget": true

Please follow the link to read official TradeIt press release.

False alarms from antivirus software


ESET has just released another update for NOD32 that eliminates problems with TradingView. Please install the antivirus update.


Eset has updated NOD32 today and this antivirus started to detect threats in, which is not infected of course. To learn more about reasons of such behavior, please follow the link:


  1. Open the antivirus window
  2. Setup -> Toggle Advanced Mode – Yes
  3. Setup (in the right top corner of the window) -> Advanced Setup
  4. Web access protection -> HTTP, HTTPS -> Address Management
  5. Click on ‘List of allowed addresses’
  6. Add -> type *tradingview* -> Ok

Set a color for entire multi-line drawing

At your requests, we have added an option to set a color for all lines of a multi-line drawing object on chart. Now you can do this in 2 clicks. To do this, select a multi-line drawing applied to your chart and the new setting will be shown on its configuration bar.

Pick a color and this is it!

Also available in drawing object properties.

Stay tuned for more improvements!

House Rules update!

Please note that our House Rules have been updated.

Chat rooms:

  • Respect other members even if you disagree, don´t be unnecessarily confrontational.
  • Don’t openly argue with moderators or criticise moderation in general – send them a private message if you disagree with something.

New rules are added:

  • Don’t post trade calls without either a snapshot or a published chart to show the analysis.
  • Don’t chart-spam (posting the same chart over and over again without any changes).
  • Don’t brag and boast about results, let your analysis do the talking.

Notifications became more useful!

We have upgraded our notification system. There are 2 icons on the right panel now: Ideas Stream and Notifications. All updates related to ideas and people you follow are shown in Ideas Stream, while all likes and comments for your ideas and new followers are displayed in Notifications.

You can set all notifications to appear on the right side of your computer’s desktop. It means you can receive notifications, even if you are not on TradingView page (just keep a tab with TradingView in background in your browser).

The same desktop notifications will let you know about a fresh published idea or a new comment, while you are on another tab.

Desktop notifications became available even for chart alerts!

If you configure an alert to show popup or/and play sound in its settings, you will get a desktop notification when this alert triggers.

Please don’t forget to allow TradingView notifications in your browser settings.

We also optimized user profile settings by moving chat notification settings from that page into chats on the right panel.

Stay tuned for more improvements!

PINE: loops and mutable variables

We have updated Pine Script. The latest version contains the long-awaited features: loops and mutable variables. Besides, we released multiple improvements and bug fixes for strategies.

As you know, Pine Script is a series-oriented scripting language, where most of goals are achieved by converting series values with help of built-in functions. Yet we received a lot of feedback describing disadvantages of such approach and showing high demand on statements for loops.

Loop and mutable variables syntax is demonstrated below:

study("Simple Moving Average")
len = input(9)
sum = 0
for i = 0 to len-1
    sum := sum + close[i]

sum’ is a mutable variable and a new value can be given to it by an operator  ‘:=’ in body of the loop.

Please note that we recommend to use a built-in function ‘sma’ for Moving Average as it calculates faster.

It’s just a very simple example, the loop doesn’t even return a value here (a = for …). You can use ‘break’ and ‘continue’ in loop body and set a step size for the counter (for … by 2). To learn more about loops and mutable variable, check our Tutorial.

Read more about the Pine Script Language in the Pine Script Tutorial and in the Pine Script Reference.