Alerts in Pine!

We have added the annotation function alertcondition allows you to create custom alert conditions in Pine studies.

The function has the following signature:

alertcondition(condition, title, message)

‘condition’ is a series of boolean values that is used for alert. Available values: true, false. True means alert condition is met, alert should trigger. False means alert condition is not met, alert should not trigger. It is a required argument.

‘tiile’ is an optional argument that sets the name of the alert condition.

‘message’ is an optional argument that specifies text message to display when the alert fires.

Here is example of creating an alert condition:

//@version=2
study("Example of alertcondition")
src = input(close)
ma_1 = sma(src, 20)
ma_2 = sma(src, 10)
c = cross(ma_1, ma_2)
alertcondition(c, title='Red crosses blue', message='Red and blue have crossed!')
plot(ma_1, color=red)
plot(ma_2, color=blue)

The function creates alert condition that is available in Create Alert dialog. Please note, that alertcondition does NOT fire alerts from code automatically, it only gives you opportunity to create a custom condition for Create Alert dialog. Alerts must be still set manually. Also, an alert triggered based on a custom condition you created in Pine code is not displayed on a chart.

One script may include more than one alertcondition.

To create an alert based on alertcondition, one should apply a Pine code (study) with alertcontidion to current chart, open the Create Alert dialog, select the applied Pine code as main condition for the alert and choose the specific alert condition (implemented in the code itself).

XEFExrR

Posted by / January 22, 2016 / Posted in Pine

More events on charts!

As you know, we have added option to show most important events on FOREX, BitCoin and CFD charts. Now you can see even more events on intraday and 1 day charts! Orange (normal importance) and yellow (low importance) events are displayed on low timeframe charts, where they may affect price movements.
event1
There is no need to configure anything, our intelligent system picks events for current chart timeframe for you.
event2

We also improved our calendar tool: there is no need to guess on Friday what is coming on Monday anymore, because now you can see events for 5 next days in the calendar. The button “Closest Events” will help you quickly switch to nearest one.
event3

Stay tuned for more improvements!

Notes in Watchlist

Did you know that it is possible to bind a text note to a symbol? You can easily do this from the right-click menu on chart or in Watchlist. You can also use keyboard shortcut (ALT+N) to quickly create a note on current symbol.

Symbols with notes have special icons in Watchlist:

Now if you point your mouse cursor on that icon, it will show the note header:

Click the icon to open it in the bottom panel.

Stay tuned for more improvements!

Maximized panes with symbol data or indicators

If you have multiple panes on your chart, it is now possible to maximize any of them to see more details.

To do this, simply double-click anywhere on the pane you want to maximize or click the icon in the top right corner:

When it is maximized, the icon turns blue. To minimize a pane to its original size, the same double click or icon click is needed.

Adjustable font size on scales

TradingView charts have flexible settings that allow you to configure current chart for your needs: colors of text and background, vertical and horizontal grid lines, crosshair, price scale labels, etc.

Here is one more: now you can change font size for text on the price and time scales. It is available on the Background tab in chart properties:

Of course, you can save it as part of a template and apply the template (including all other settings) in couple of mouse clicks.

Stay tuned for more improvements!

Real current price on Heikin Ashi charts!

You asked and we listened. The long-awaited check box that allows you to see real market price on Heikin Ashi chart type is finally available!

In chart properties you can check off “Show real prices on price scale (instead of Heikin-Ashi prices)”. If you do this and save the chart, this configuration will be used as default one for every new Heikin Ashi chart.

Important note! This checkbox affects only the current price label shown on the price scale.
Stay tuned for more improvements!

“FOMC Rate Decision” educational webinar

Dear Trader,

At last, it is here. The day that much of the economic world has been waiting for, in which the Federal Reserve is expected to, finally, raise the rates. The expectation is for a 25 basis point hike, but what isn’t known is what will happen thereafter. FXCM invites you to attend a special “FOMC Rate Decision” webinar to help you navigate through the chaos that follows.

Join James Stanley, an Active Trader and Trading Instructor at DailyFX, on Wednesday, December 16 at 1:45 pm EST.  In this free webinar, he will cover:

  • Real-time analysis around the most pivotal Fed meeting in years. The December FOMC meeting is expected to bring on heavy volatility, as the Federal Reserve looks at their first rate hike in over nine years.
  • Incorporating price action in real-time in order to integrate technical analysis during this market-moving fundamental event. Whether you’re a technical trader or a fundamental trader, both schools of analysis can offer value to an analytical approach.
  • Sound Risk Management principals to help you decide whether to pull the trigger based on your trading plan and approach. If you don’t have a plan, that’s ok. DailyFX is happy to provide a framework with which you can build that plan.  This research is built on the DailyFX Traits of Successful Traders research series, based on a quantitative study of real trades placed by actual traders.  If you’d like to read the research, it’s available here, and James will cover this in real-time during this webinar as Ms. Yellen and the Federal Reserve provides the last major market-moving event of the year.

Register Today

If you have any questions, please contact one of our specialists, who are available 24 hours a day by calling 1-888-503-6739 or by e-mail at info@fxcm.com.

Our service includes products that are traded on margin and carry a risk of losses in excess of your deposited funds. The products may not be suitable for all investors. Please ensure that you fully understand the risks involved.

New verification system

To fight spam bots, ads and fake accounts, we implemented a new verification system as we previously anounced: Account verification on TradingView.

Some customers will see a verification popup. They should type in their cell phone numbers to receive a short code and enter this code on TradingView. Please note that we are not going to use your phones for sending spam. We also are not going to forward your phone numbers to any 3rd-party company or person.

We consider adding a two-factor authorization system (SMS) to enforce account protection in nearest future.

Let us know if you have any questions: support@tradingview.com

Events on your charts!

We have added major economic events right to your charts: 

jrffjho

You can find a calendar of events on the right panel: 

qyG4C40

Depending on the color indicator, events can be:

  • Red – very important
  • Yellow – important

They also are highlighted according to the following logic:

  • Light green – today events
  • Dark green – next event

It helps you to see a coming event in the list: 

uPJ2Kbk

You can configure the calendar to see only the info you need and hide everything else.

kqhnwep

Very important events are shown on your charts. You can configure this on Events & Alerts tab in chart properties. You can set chart either to show all events, or only coming events for your analysis.

a8AlQgo

Stay tuned for more improvements!

New Trending Ideas feed logic

We have slightly changed the mechanism for selecting ideas to show on our home page. Previously, all ideas were viewed and suggested manually, but now we believe this approach must be changed because: a) it takes much time to moderate all ideas, b) our users has formed an advanced community that is capable to filter ideas on main page on its own. It means that from now on all ideas will automatically appear in Trending Feed right after they are posted, with no post-moderation. Those ideas will be sorted according their popularity among the community.

If an idea violates our House Rules, it is excluded from the feed, so please keep up following  the rules. Moderators will hide a published idea if it violates any of the following five (5) rules. A note will always be sent to the author in such a case. A publication should:

  • Be in the main language of the site section (for localized versions). English, for English, Japanese for Japanese, etc. The main section will be in English.
  • Be on topic and related to trading / the financial markets.
  • Contain content that is your original work.
  • Not contain excessive advertisement. Some references are allowed in moderation. Links to websites / materials should be at the end of the description and don’t put any logos / websites / company names on the chart itself.
  • Not be used to voice complaints, grievances or disagreements with policies, to insult or ridicule other members, or to create conflict within the community. This includes directly or indirectly mocking, misrepresenting or abusing other published ideas or analysis.

Any content that violates these rule may result in the author getting a warning, published idea being hidden, and/or limiting the author’s ability to post more ideas.

TradingView celebrates open communication and creative ideas. We want you to express yourself freely and use TradingView to share insights, learn from others, make friends and share the love for finance.

Easy access to Quandl fundamental data!

Click to tweet! -> http://ctt.ec/47aac 

Awesome free data from Quandl is now easily accessible through a tab in the Search window.

fd1peYB

 

Quandl is an open platform for data sets with free access to over 9 million of them. We thought it’s a good idea to make them available to the TradingView community at a touch of a button. Just open the tab and search what’s available. You can also filter by a specific data provider ON Quandl

V79V2Q5

 

The original provider is listed on each row, so you can easily find the exact info you need.

ltXUgRb

 

Quandl has a ton of statistical and economic data from many countries around the world. Read more about the benefits of Quandl here.

Webinar: Short Term Trading and Scalping

Dear Trader,

Many ‘scalpers’ struggle with risk, trade and money management. FXCM invites you to attend an educational “Short Term Trading and Scalping” webinar and learn how to potentially overcome these struggles while keeping your eyes on the prize.

Join James Stanley, an Active Trader and Trading Instructor at DailyFX on Wednesday, November 18 at 9:30am EST. Ask questions in real-time or be a fly on the wall watching him work the market.

In this webinar, he will teach you:

  • Short-Term Momentum Scalping in consideration of longer-term technical structures. James tries to ‘thread the needle’ of longer-term technical analysis with a shorter-term momentum-based entry approach.
  • Active implementation of DailyFX’s “Traits of Successful Traders”
  • Practical application of fundamental analysis in a short-term technical approach. News matters, and you can learn how to trade or fade near-term stimuli in a market.
  • Heavy reliance on price action, both long and short-term to set risk, plan targets, and base entries in a dynamic, real-time environment.

Register Today

If you have any questions, please contact one of our specialists, who are available 24 hours a day by calling 1-888-503-6739 or by e-mail at info@fxcm.com.

Our service includes products that are traded on margin and carry a risk of losses in excess of your deposited funds. The products may not be suitable for all investors. Please ensure that you fully understand the risks involved.

Invite friends to TradingView and earn cash!

Please share! -> Click to Tweet

Now there are even more reasons to invite your friends! Help the community grow and make some money in the process.

If the person you invite signs up for an upgraded account, we’ll share 30% with you as a thank you. For life. That means as long as the account is active, you’ll continue to be rewarded. Life’s just getting better :)

Check out the Referral Program page for signing up.

Text Notes are now available on TradingView!

Now you can add Text Notes directly on the chart.

Click New and write down your thoughts without launching another app.

 tnote1

You can also add a note by right-clicking on the chart.

Or right in the watchlist (symbol doesn’t have to be on the chart).

Symbols with notes are marked with a special symbol:

Note: only one Note per symbol.

You can always search for the notes that you need

Delete the note if you don’t need it anymore.

tnote2

Stay tuned for more improvements!

 

Updates in the TradingView AppStore

1. Added a new indicator to the RobBooker package.

New indicator from Rob Booker – Booker/Palladino Ghost Pivots.

Now you have even more tools for analysis within the same package!

2. New indicator package – CIT Toolbox.

The CIT Toolbox combines a mix of proprietary swing, pattern and trend trading indicators, and is designed to give users a complete and unique technical analysis perspective applicable to any instrument in any time frame.

The CIT Angles solve the key problem in dealing with Gann angles: finding the correct rise (step, rate of vibration) adapted to price level and volatility. The CIT Bars offer several improvements over Heikin-Ashi, Kagi and Renko bars. The CIT Pivots, Signals and Trend indicators will show you hidden support/resistance levels and optimal entry and exit points, and will eradicate subjectivity and emotion from your trading.

Market Reaction to FOMC Meetings by citdates on TradingView.com

USDJPY Continuing Consolidation by citdates on TradingView.com

Improvements to updating ideas

Idea updates now have the same functionality as comments – if you post a link to an idea or snapshots it gets converted into a picture 

JKCfnYv

Notifications improvements

Reorganized the notification section to make it easier to understand. Also added a couple of sections – “Ideas you follow” and “People you follow”. Set them up as you like in your Profile Settings -> Notifications.

no3OCoz

 

Idea Status updates

Now you can mark your idea with the following:

  • Comment
  • Trade closed: target reached
  • Trade closed: stop reached
  • Closed manually
  • Trade active
  • Trade order cancelled

This will save a ton of time and make ideas more informative to your followers.

EeBx6hr

 

 

 

New feature of Pine Script Language: if statement

Working with code becomes more and more flexible! If-statement is now available in Pine Script language. This statement defines what block of statements must be checked when conditions of the expression are satisfied.

Attention! To have access to and use the if statement, one should specify the version of Pine Script language in the very first line of code: //@version=2

Example:

//@version=2
study("if statement")
out = if close > open
    high
else
    low
plot(out)

You can read more about if statement in the Pine Script Tutorial.

If statement may be also useful in strategy trading:

//@version=2
strategy("My Strategy", overlay=true)
longCondition = crossover(sma(close, 14), sma(close, 28))
if (longCondition)
    strategy.entry("My Long Entry Id", strategy.long)
shortCondition = crossunder(sma(close, 14), sma(close, 28))
if (shortCondition)
    strategy.entry("My Short Entry Id", strategy.short)

You can read more about strategies in the Pine Script Tutorial and the Pine Script Reference

Webinar: Day Trading the Forex Market

Day Trading the Forex Market
Thurs, October 15 | 11:00 AM EST

FXCM is excited to announce its partnership with Trading View and invite you to an exclusive educational webinar with Walker England, a Forex Trading Instructor for DailyFX, The Research Arm of FXCM Inc.

Register Now

Join Walker as he teaches you how to look for day trading opportunities in the forex market using Camarilla pivot points. This session will cover support and resistance, breakout and range-based strategies and risk management for the Forex market.

AT THE WEBINAR, YOU WILL LEARN:

  • What is Day Trading and what are the Available Strategies
  • Price Action Methods and Importance of Time Frames
  • Intro to Pivots
  • Day Trading Ranges
  • Basic Breakout Strategies

DAY TRADING THE FOREX MARKET
Thursday, October 15
11:00 AM EST
REGISTER TODAY

If you have any questions, please contact one of our specialists, who are available 24 hours a day by calling 1-888-503-6739 or by e-mail at info@fxcm.com.

 

This digest bringing you some of the top Trading ideas every week- generated by users, picked by analysts. Actionable, easy, useful. Now you will be able to see the most exciting ideas even if you don’t have enough time to look for them on TradingView. If you’d like your idea to be a part of the digest, please follow our House Rules when publishing an idea.

Picks From Community Top Authors

Gold XAUUSD Bullish Signals triggered, 1187 tgt, more buys ahead By timwest
Looks good, already half way to target …

EURUSD: What We’ve Had & What We Have Next By Akil_Stokes
EURUSD potential trade for this week..

Great Trades and Insightful Analysis

How To Trade The Bat Pattern By TomHall
Stunning 70+ likes for this detailed tutorial.. Check it out, it is worth it…

NZDUSD: Nice Week Buy Position, Wait Before Buying More By Tom_Killick
Tom provides a detailed explanation for the NZDUSD technical position. It’s helpful…

Gold@ Wave 3 in Wave 3 Combined With Breakout By Eleven40_FXTrader
Another bullish outlook for gold..

EURUSD Pivots Near 1.1330 Wave Confluence By JWagnerFXTrader
Elliott wave count for the EURUSD..
How to trade using EARNINGS REPORTS together with trend By timwest
A great tutorial..
Gartley Adventure // Bullish By Trading_Jazz
Trading_Jazz Nailed it…

In Scripts and Custom Indicators

[STRATEGY][RS]MicuRobert EMA cross V2 By MicuRobert