This is concerning functions upperBB, lowerBB, and middleBB.
I have been working with a script that utilizes these functions. A user input value for one of the function parameters in the premain() function calls for the input of the period length of these functions.
Everything was operating normally, until today when I realized that if I ever change the value of this parameter, all the functions that use upperBB, lowerBB, or middleBB go "dead". It seems that if I use any value other than the original default value, these functions return nothing. I ran a test script I created, using just:
function main() {
uBB=upperBB(100,2,hl2());
return uBB.getValue(0);
}
Now, if I use any other value besides 100 in there for the period length, the EFS returns null. If I set the value back to 100, the EFS returns the upper bollinger value. What is happening?
I noticed something similar to this before with another EFS I created. Whenever I would enter a value other than the last saved value in a function parameter box, the script would return nothing. As soon as the value was restored, the EFS behaved normally. This is very frustrating.
I have been working with a script that utilizes these functions. A user input value for one of the function parameters in the premain() function calls for the input of the period length of these functions.
Everything was operating normally, until today when I realized that if I ever change the value of this parameter, all the functions that use upperBB, lowerBB, or middleBB go "dead". It seems that if I use any value other than the original default value, these functions return nothing. I ran a test script I created, using just:
function main() {
uBB=upperBB(100,2,hl2());
return uBB.getValue(0);
}
Now, if I use any other value besides 100 in there for the period length, the EFS returns null. If I set the value back to 100, the EFS returns the upper bollinger value. What is happening?
I noticed something similar to this before with another EFS I created. Whenever I would enter a value other than the last saved value in a function parameter box, the script would return nothing. As soon as the value was restored, the EFS behaved normally. This is very frustrating.
Comment