I am trying to use an int when trying to call for an EMA (Exponential Moving Average), however, I am getting two errors:
- "The best overloaded method match for EMA...has overloaded arguments. (CS1502)
- Argument1: cannot convert from int to double series (CS1503)
private int Value;
private EMA EMAL;
.
.
.
protected override void OnBarUpdate()
{
.
.
.
EMAL = EMA(Value, Length);
.
.
.
}
I have "Value" as an INT because I am adding +1, -1 etc...so is a calculate number that I am calculating thru my script.
Let me know if anyone can help with this compiling error. Or provide any direction.
Comment