The text is static and simply pulls the Instrument Name and allows the user to adjust some spacing/colors etc..
My question is. Obviously I don't want the code to continually run on the close of every bar. But which is the best way to make it only run once.
I have used an IF statement to contain the entire code and a simple variable to make sure it just runs once but is that the best way to do it?
if ( MyVar == 0 ) { // My Indicator code MyVar =1; }
Comment