I have an EFS that draws a histogram of some calculated values using the Bid and the Ask as input.
Though I set the variable to zero when I initialize it, as well as in the pre-main, when the EFS first loads, the histogram loads w/some other value (not zero). I suspect this is somehow related to the fact that Bid and Ask are not available for historical data.
Is there a line to put into the beginning of my EFS code that checks to see if the script is just loaded, and will force that value to zero for all prior bar data?
Though I set the variable to zero when I initialize it, as well as in the pre-main, when the EFS first loads, the histogram loads w/some other value (not zero). I suspect this is somehow related to the fact that Bid and Ask are not available for historical data.
Is there a line to put into the beginning of my EFS code that checks to see if the script is just loaded, and will force that value to zero for all prior bar data?
Comment