Page 1 of 1

is it possible to increment an EMA by a step of 0.1?

Posted: Mon Sep 19, 2022 12:58 am
by mikendo
i'd like to be able to increment by 0.1 so i can adjust it in my input settings. Is it possible? Please have a look at my code and the output:

Image

https://ibb.co/yNqvxMv

Re: is it possible to increment an EMA by a step of 0.1?

Posted: Sun Feb 05, 2023 10:52 pm
by processingclouds
Hey,

You misunderstand the second parameter, it is telling how many bars to look at. This has to be an integer value and not float.
So change input.float to input.int

Now your part on incrementing by 0.1 , what are you trying to increment?