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.