I have written some studies that are based on a symbols change in value from the previous day's close. Currently, the value is based on the close at the time the study is loaded, and each day it has to be reloaded after the open to get the correct value.
The code in main that sets the variable of the Nasdaq is:
var vCOMPQ = close("$COMPQ") - getValueAbsolute("close", -1, "$COMPQ,D");
What do i need to change or add in order for the value to be automatically updated each day.
Thanks,
Dan
The code in main that sets the variable of the Nasdaq is:
var vCOMPQ = close("$COMPQ") - getValueAbsolute("close", -1, "$COMPQ,D");
What do i need to change or add in order for the value to be automatically updated each day.
Thanks,
Dan
Comment