Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting strategy - EMA value #44

Open
3 tasks done
Olideran opened this issue Jul 21, 2018 · 2 comments
Open
3 tasks done

Setting strategy - EMA value #44

Olideran opened this issue Jul 21, 2018 · 2 comments
Labels
question Further information is requested

Comments

@Olideran
Copy link

Prerequisites

  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you search the current opened issues?

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.

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.

@hiddenlucas
Copy link

hi, did you solve this strategy? how use ema?

@andresilvasantos
Copy link
Owner

Sorry @Olideran, I have been busy with work. I'll take a look at this really soon.

@andresilvasantos andresilvasantos added the question Further information is requested label Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants