I have created an indicator in EFS Wizard that does not seem to load for all the data. Can someone take a look and see why? Attached is a screenshot of the indicator just fading away a few days ago. On some charts it lasts for a few days and others it lasts for a few hours in the same time frame. Here is my code.
Thanks,
KCOMOLLO
//{{EFSWizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vCCI55 = new CCIStudy(55, "Close");
var vBollinger25_of_vCCI55 = new BollingerStudy(25, vCCI55, CCIStudy.CCI, 0.9);
var vLastAlert = -1;
//}}EFSWizard_Declarations 17004
function preMain() {
/**
* This function is called only once, before any of the bars are loaded.
* Place any study or EFS configuration commands here.
*/
//{{EFSWizard_PreMain
setPriceStudy(false);
setStudyTitle("BBofCCI");
setCursorLabelName("upper", 0);
setCursorLabelName("basis", 1);
setCursorLabelName("lower", 2);
setCursorLabelName("cci", 3);
setDefaultBarStyle(PS_DASH, 0);
setDefaultBarStyle(PS_SOLID, 1);
setDefaultBarStyle(PS_DASH, 2);
setDefaultBarStyle(PS_SOLID, 3);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarFgColor(Color.yellow, 1);
setDefaultBarFgColor(Color.blue, 2);
setDefaultBarFgColor(Color.red, 3);
setDefaultBarThickness(1, 0);
setDefaultBarThickness(2, 1);
setDefaultBarThickness(1, 2);
setDefaultBarThickness(2, 3);
setPlotType(PLOTTYPE_LINE, 0);
setPlotType(PLOTTYPE_LINE, 1);
setPlotType(PLOTTYPE_LINE, 2);
setPlotType(PLOTTYPE_LINE, 3);
//}}EFSWizard_PreMain 98589
}
function main() {
/**
* The main() function is called once per bar on all previous bars, once per
* each incoming completed bar, and if you don't have 'setComputeOnClose(true)'
* in your preMain(), it is also called on every tick.
*/
//{{EFSWizard_Expressions
//{{EFSWizard_Expression_1
//}}EFSWizard_Expression_1 0
//}}EFSWizard_Expressions 9063
//{{EFSWizard_Return
return new Array(
vBollinger25_of_vCCI55.getValue(BollingerStudy.UPP ER),
vBollinger25_of_vCCI55.getValue(BollingerStudy.BAS IS),
vBollinger25_of_vCCI55.getValue(BollingerStudy.LOW ER),
vCCI55.getValue(CCIStudy.CCI)
);
//}}EFSWizard_Return 32045
}
function postMain() {
/**
* The postMain() function is called only once, when the EFS is no longer used for
* the current symbol (ie, symbol change, chart closing, or application shutdown).
*/
}
//{{EFSWizard_Actions
//{{EFSWizard_Action_1
function onAction1() {
vLastAlert = 1;
}
//}}EFSWizard_Action_1 5589
//}}EFSWizard_Actions 15622
Thanks,
KCOMOLLO
//{{EFSWizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vCCI55 = new CCIStudy(55, "Close");
var vBollinger25_of_vCCI55 = new BollingerStudy(25, vCCI55, CCIStudy.CCI, 0.9);
var vLastAlert = -1;
//}}EFSWizard_Declarations 17004
function preMain() {
/**
* This function is called only once, before any of the bars are loaded.
* Place any study or EFS configuration commands here.
*/
//{{EFSWizard_PreMain
setPriceStudy(false);
setStudyTitle("BBofCCI");
setCursorLabelName("upper", 0);
setCursorLabelName("basis", 1);
setCursorLabelName("lower", 2);
setCursorLabelName("cci", 3);
setDefaultBarStyle(PS_DASH, 0);
setDefaultBarStyle(PS_SOLID, 1);
setDefaultBarStyle(PS_DASH, 2);
setDefaultBarStyle(PS_SOLID, 3);
setDefaultBarFgColor(Color.blue, 0);
setDefaultBarFgColor(Color.yellow, 1);
setDefaultBarFgColor(Color.blue, 2);
setDefaultBarFgColor(Color.red, 3);
setDefaultBarThickness(1, 0);
setDefaultBarThickness(2, 1);
setDefaultBarThickness(1, 2);
setDefaultBarThickness(2, 3);
setPlotType(PLOTTYPE_LINE, 0);
setPlotType(PLOTTYPE_LINE, 1);
setPlotType(PLOTTYPE_LINE, 2);
setPlotType(PLOTTYPE_LINE, 3);
//}}EFSWizard_PreMain 98589
}
function main() {
/**
* The main() function is called once per bar on all previous bars, once per
* each incoming completed bar, and if you don't have 'setComputeOnClose(true)'
* in your preMain(), it is also called on every tick.
*/
//{{EFSWizard_Expressions
//{{EFSWizard_Expression_1
//}}EFSWizard_Expression_1 0
//}}EFSWizard_Expressions 9063
//{{EFSWizard_Return
return new Array(
vBollinger25_of_vCCI55.getValue(BollingerStudy.UPP ER),
vBollinger25_of_vCCI55.getValue(BollingerStudy.BAS IS),
vBollinger25_of_vCCI55.getValue(BollingerStudy.LOW ER),
vCCI55.getValue(CCIStudy.CCI)
);
//}}EFSWizard_Return 32045
}
function postMain() {
/**
* The postMain() function is called only once, when the EFS is no longer used for
* the current symbol (ie, symbol change, chart closing, or application shutdown).
*/
}
//{{EFSWizard_Actions
//{{EFSWizard_Action_1
function onAction1() {
vLastAlert = 1;
}
//}}EFSWizard_Action_1 5589
//}}EFSWizard_Actions 15622
Comment