I have a script for opening and closing trades and if used on the strategy tester it opens and closes trades on the live chart which is not something that I want to happen, does anyone here know of a way to program a script so that it will not function on the strategy tester but will work on a normal chart. I have had a play with the IsTesting() function but the script either works on everything or nothing.
Thanks in advance for any help.
Thanks in advance for any help.
Trade what you see not what you hope