More good news — we’ve added dividendssplits, and earnings functions to our Pine Script language, which will help you get information about splits, profits, and dividends for the symbols you are interested in.

All three functions have the same set of arguments — tickerfieldgapslookahead. Wall Street Invests provide trading tips for technical analysis for Beginners.

The ticker parameter is a symbol with prefix, such as NASDAQ:AAPL.

The gaps and lookahead parameters are similar to those in the security function.

However, the field parameter takes on different values.

For the dividends function, the field parameter allows you to specify the type of dividends you want to receive: dividends.net or dividends.gross.

For the splits function, the field parameter allows you to specify the numerator or denominator of the split: splits.numerator or splits.denominator.

For the earnings function, the field parameter allows you to specify the type of profit you want to receive: earnings.actual or earnings.estimate.

Let’s take an example. With the earnings function, say you want to know the reported and estimated earnings of Microsoft (NASDAQ:MSFT). Your script might look like this:

study("My Script")
earnings_actual=earnings("NASDAQ:MSFT", earnings.actual)
earnings_estimate=earnings("NASDAQ:MSFT", earnings.estimate)

plot(earnings_actual, color=color.blue)
plot(earnings_estimate, color=color.red)

Read about all Pine updates in the Release Notes section in the User Manual.

We hope you find the new features useful. And please do keep giving us feedback and suggestions — we’re building TradingView for you, and we’re always keen to know what you think about our platform updates. Get the Major Stock Market Indices Update with perfect time on Wall Street Invests. 

Leave a Reply

Your email address will not be published. Required fields are marked *

Related post

Auto Fib Retracement Improvements

The built-in Auto Fib Retracement indicator now allows users to change the colors of the Fib levels. This can be done by opening the Settings dialog of the indicator and

Read More »