this code serves no purpose yet, but i can't figure out why i'm getting the error...
preMain() {
setStudyTitle("AID_PAIR_TRADER");
setCursorLabelName("AID_PAIR_TRADER");
}
main(s1, s2) {
var BOLLY = new BollingerStudy(20, "Close", 2);
var UPPER = BOLLY.getValue(BollingerStudy.UPPER);
var LOWER = BOLLY.getValue(BollingerStudy.LOWER);
var BASIS = BOLLY.getValue(BollingerStudy.BASIS);
if ((UPPER == null) || (LOWER == null) || (BASIS == null)) {
return; }
if (s1 == null) {
s1 = "SPY";
}
if (s2 == null) {
s2 = "QQQ";
}
return;
}
preMain() {
setStudyTitle("AID_PAIR_TRADER");
setCursorLabelName("AID_PAIR_TRADER");
}
main(s1, s2) {
var BOLLY = new BollingerStudy(20, "Close", 2);
var UPPER = BOLLY.getValue(BollingerStudy.UPPER);
var LOWER = BOLLY.getValue(BollingerStudy.LOWER);
var BASIS = BOLLY.getValue(BollingerStudy.BASIS);
if ((UPPER == null) || (LOWER == null) || (BASIS == null)) {
return; }
if (s1 == null) {
s1 = "SPY";
}
if (s2 == null) {
s2 = "QQQ";
}
return;
}
Comment