零点课堂 | How To Create TA Indicators on TradingView(6)

Built-in scripts

So far, we’ve written our code manually so you can get a feel for it. But let’s introduce something that can save us time, particularly if we’re writing more complex scripts, and we don’t want to do them from scratch.

On the top, right-hand side of your editor, click on New. You’ll get a dropdown menu with all kinds of different technical indicators. Click Moving Average Exponential to see the source code for an EMA indicator.

Go ahead and add this to the chart.

This one is different from ours – you’ll notice the input() functions. These are nice from a usability perspective since you can click on this box…

...and easily change some of the values in a pop-up window by clicking on the Settings wheel.

We’ll add a couple of input() functions in our next script to demonstrate this.

Plotting the Relative Strength Index (RSI) indicator

The Relative Strength Index (RSI) is another essential indicator in technical analysis. It’s known as a momentum indicator, meaning that it measures the rate at which assets are bought and sold. Presented on a scale of 0 to 100, an RSI score attempts to inform investors on whether assets are overbought or oversold.

声明:本文由 Binance撰写,零点财经收录,观点仅代表作者本人,绝不代表零点财经赞同其观点或证实其描述。

本文由 零点财经 作者:tao 发表,其版权均为 零点财经 所有,文章内容系作者个人观点,不代表 零点财经 对观点赞同或支持。如需转载,请注明文章来源。
分享生成图片
54

发表回复

零点课堂 | How To Create TA Indicators on TradingView(6)

2021-03-26 9:39:09

Built-in scripts

So far, we’ve written our code manually so you can get a feel for it. But let’s introduce something that can save us time, particularly if we’re writing more complex scripts, and we don’t want to do them from scratch.

On the top, right-hand side of your editor, click on New. You’ll get a dropdown menu with all kinds of different technical indicators. Click Moving Average Exponential to see the source code for an EMA indicator.

Go ahead and add this to the chart.

This one is different from ours – you’ll notice the input() functions. These are nice from a usability perspective since you can click on this box…

...and easily change some of the values in a pop-up window by clicking on the Settings wheel.

We’ll add a couple of input() functions in our next script to demonstrate this.

Plotting the Relative Strength Index (RSI) indicator

The Relative Strength Index (RSI) is another essential indicator in technical analysis. It’s known as a momentum indicator, meaning that it measures the rate at which assets are bought and sold. Presented on a scale of 0 to 100, an RSI score attempts to inform investors on whether assets are overbought or oversold.

声明:本文由 Binance撰写,零点财经收录,观点仅代表作者本人,绝不代表零点财经赞同其观点或证实其描述。