const EMA = require('technicalindicators').EMA
let period = 8;
let values = [1,3,4,5,6,7,8,9,10,11,12,13,14,15];
EMA.calculate({period : period, values : values})
Loading…
2 comments
posted 3 years ago by luxyan
Can anyone tell me the conditions of the indicators, especially the SMA and EMA?
I'm talking about I added the indicators in my robot, now in the robot I want to make the strategy, for example in RSI I know that below 30 buys and above 70 sells, but in SMA and EMA what are their values? does it go from 1 to 10? greater than 5 is it above average and below 5 is it below average?
posted 2 years ago by luiztools
It gives you the average price in the period, not an index from x to y.