The following returns " Can not find internal class to construct study" on study definition line in initMain. Please help (I am an advanced get user).
/* ---------------------- test shell -----------------------*/
var Gn_entryCount = 0;
var Gn_barCount = 0;
var Gb_newBar = false;
var Gb_mainInit = false;
var G_study = null;
function preMain () {
debugClear();
setPriceStudy (true);
setStudyTitle ("test shell");
}
function main () {
var nBarState = null;
if (!Gb_mainInit) {
initMain()
Gb_mainInit = true;
}
Gn_entryCount ++;
nBarState = getBarState();
Gb_newBar = false;
if (nBarState == BARSTATE_NEWBAR) Gb_newBar = true;
if (Gb_newBar) {
Gn_barCount ++;
y = G_study.getValue(GetStochStudy.MARKS);
debugPrintln (" y = ", y);
}
}
function initMain () {
G_study = GetStochStudy(14,3,3);
}
/* ---------------------- test shell -----------------------*/
var Gn_entryCount = 0;
var Gn_barCount = 0;
var Gb_newBar = false;
var Gb_mainInit = false;
var G_study = null;
function preMain () {
debugClear();
setPriceStudy (true);
setStudyTitle ("test shell");
}
function main () {
var nBarState = null;
if (!Gb_mainInit) {
initMain()
Gb_mainInit = true;
}
Gn_entryCount ++;
nBarState = getBarState();
Gb_newBar = false;
if (nBarState == BARSTATE_NEWBAR) Gb_newBar = true;
if (Gb_newBar) {
Gn_barCount ++;
y = G_study.getValue(GetStochStudy.MARKS);
debugPrintln (" y = ", y);
}
}
function initMain () {
G_study = GetStochStudy(14,3,3);
}
Comment