I am writing a script and testing the bardate() function, but it does not seem to be picking up the date correctly.
v2 = if( bardate() = 32875, 700,0);
plot0 = v2;
If you look at the below screenshot, I would only expect a single line plotted on 2 Jan 1990, however, it seems to ignore the date criteria bardate() = 32875, and plots 700 sporadically, have I set the parameters correctly? I would expect it to plot 0, for all dates except the date = 32875 (2 Jan 1990).
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.