Hi,
I am trying to write a script for an indicator but have some problems in doing so. I want therefore ask you for some assistance.
As you can see from the screen shot "test script #1.png" all seems to be right. BUT I want change the numbers "21" and "17" with changeable parameters so that I can change the values latter on as I want.
But when I change "21" with "BARS=21" I get an error message (see screen shot "test script #2.png".
With the code "var1 / var2" I have also a problem. Since I have to use the division result of "var1 / var2" later on in the formula I have tried to write it as "Part1 = var1 / var2" so that I had only use "Part1" as a reference later on in the formula but this approach resulted also in an error message (see screen shot "test script #3.png").
Writing the formula in one line as "var1" resulted also in an error message (see screen shot "test script #4.png").
I hope it is possible for you to give me some advise how can I solve this issue.
Thanks a lot,
Thomas