when does a variable change it's value

Questions about MultiCharts and user contributed studies.
maxpi
Posts: 58
Joined: 03 Jun 2007

when does a variable change it's value

Postby maxpi » 11 Nov 2007

I may be misinformed but I recall reading on the TS formus that in easy language a change in value of different kinds of variables will take effect at different times. I like to use only numerical values for everything for simplicity, do they take effect immediatly or could it be that the change would only be affected after the end of a bar? Do True/False variable changes take effect immediately on a tick bar or will the change only be in effect for the next tick?

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 14 Nov 2007

Dear maxpi,

Changes in variables take effect immediately. In other words, when the variable is used in the script its newly assigned value is taken.

Best regards.


Return to “MultiCharts”