You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set a strategy and need to get the previous EMA value, how can I do that ? I'm not a skilled programer. I tried but it doesn't seems to work.
I´v tried this two ways.
1)
var prevema_15m = parseFloat(chart15m[chart15m.length - 3].close)
var ema8_15m = bp.indicators.ema(prevema_15m, 8)
_____________
2)
var ema8_15m = bp.indicators.ema(chart15m[chart15m.length - 3].close, 8)
If some have any idea. I'll be very grateful.
The text was updated successfully, but these errors were encountered:
Prerequisites
QUESTION
I'm trying to set a strategy and need to get the previous EMA value, how can I do that ? I'm not a skilled programer. I tried but it doesn't seems to work.
I´v tried this two ways.
If some have any idea. I'll be very grateful.
The text was updated successfully, but these errors were encountered: