OPEN-SOURCE SCRIPT

MA with options

已更新
5 Types of Moving Averages have been combined into the script. The user has the liberty to select the length of the MA and the MA type (SMA, EMA, WMA, VWMA, RMA) of his/her choice.
版本注释
I have just updated my first practice code by adding MA crossover for MA2 and MA3 with buy and sell signals.
版本注释
The Default value for the first three moving averages have been modified into EMA. Since EMA provides the recent data and updates faster as compared to the SMA it can be used to identify trends better.
The EMA crossover is between EMA 21 (MA2_type) and EMA 34 (MA3_type). The values can be modified and backtested according to the users wish.
The Sell Signal triangle down arrow was green in color and it has been modified to red by default.
emacrossoverMoving Averagesmovingaveragetype

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?


更多:

免责声明