I must be missing something, I read that main() executes once per bar when its loading, but when i put code in there, it only executes once.
function main() {
Alert.addToList(getSymbol(), "Once per bar??", Color.blue, Color.white); // <-- I only get one Alert
return 100; // <-- But this does plot for every period
}
function main() {
Alert.addToList(getSymbol(), "Once per bar??", Color.blue, Color.white); // <-- I only get one Alert
return 100; // <-- But this does plot for every period
}
Comment