Example code to demonstrate the problem.
I am trying to get the equivalent of:
If you try:
Then hl2[0] is dynamic, which means it is evaluated as:
If I can make hl2[0] as constant, then it will work:
However I do not see a way to do that.
Also tried a script, hoping that input will force the value to be constant inside the script, but it is still dynamic.
Is there any solution for that?
I am trying to get the equivalent of:
Code:
average (AbsValue(hl2[0] - hl2[0]), AbsValue(hl2[1] - hl2[0]), AbsValue(hl2[2] - hl2[0]))
Code:
plot b = average (AbsValue(hl2 - hl2[0]), 3);
Code:
average (AbsValue(hl2[0] - hl2[0]), AbsValue(hl2[1] - hl2[1]), AbsValue(hl2[2] - hl2[2]))
Code:
average (AbsValue(hl2 - hl2[0]), 3);
^ ^
dynamic static
Also tried a script, hoping that input will force the value to be constant inside the script, but it is still dynamic.
Code:
script c{
input cons = 0.0;
plot b = average (AbsValue(hl2 - cons), 100);
}
plot b = c(hl2);