input price = close;
input X = { default "0.5", "0.6", "0.7"};
plot up = high + ((high - low) * X );
plot low = low - ((high - low) * X );
→ the value of X supposed to be 0.5 when 0.5 is chosen, yet the arithmetic result is 1 (even I change from 0.5 to 0.9 or letter A)
→ the value of X supposed to be 0.6 when 0.6 is chosen, yet the arithmetic result is 2 (even I change from 0.6 to 1.0 or letter B)
→ the value of X supposed to be 0.7 when 0.7 is chosen, yet the arithmetic result is 3 (even I change from 0.7 to 1.1 or letter C)
→ Can anyone tell me how to fix this problem? Thanks a million!
input X = { default "0.5", "0.6", "0.7"};
plot up = high + ((high - low) * X );
plot low = low - ((high - low) * X );
→ the value of X supposed to be 0.5 when 0.5 is chosen, yet the arithmetic result is 1 (even I change from 0.5 to 0.9 or letter A)
→ the value of X supposed to be 0.6 when 0.6 is chosen, yet the arithmetic result is 2 (even I change from 0.6 to 1.0 or letter B)
→ the value of X supposed to be 0.7 when 0.7 is chosen, yet the arithmetic result is 3 (even I change from 0.7 to 1.1 or letter C)
→ Can anyone tell me how to fix this problem? Thanks a million!