Please, there is one error at line 51.
Coul someone help me?
//{{EFSWizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vBollinger20 = new BollingerStudy(20, "Close", 2);
var vLastAlert = -1;
//}}EFSWizard_Declarations 9964
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(true);
setStudyTitle("BW#");
//}}EFSWizard_PreMain 6180
}
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
if (
vBollinger20.getValue(BollingerStudy.UPPER) - vBollinger20.getValue(BollingerStudy.UPPER)>30
) onAction1()
//}}EFSWizard_Expression_1 16692
//{{EFSWizard_Expression_2
else if (
vBollinger20.getValue(BollingerStudy.UPPER) - vBollinger20.getValue(BollingerStudy.LOWER)<30
//}}EFSWizard_Expression_2 17993
//}}EFSWizard_Expressions 51962
//{{EFSWizard_Return
return null;
//}}EFSWizard_Return 2256
}
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() {
if (vLastAlert != 1) drawTextRelative(0, low(), "B+", Color.RGB(155,0,0), Color.RGB(255,255,255), Text.LEFT, "Arial", 10);
if (vLastAlert != 1) drawShapeRelative(0, low(), Shape.CIRCLE, "", Color.RGB(192,220,192), Shape.RIGHT);
vLastAlert = 1;
}
//}}EFSWizard_Action_1 34958
//{{EFSWizard_Action_2
function onAction2() {
if (vLastAlert != 2) drawTextRelative(0, high(), "B-", Color.RGB(255,0,0), Color.RGB(255,255,255), Text.LEFT, "Arial", 10);
if (vLastAlert != 2) drawShapeRelative(0, high(), Shape.SQUARE, "", Color.RGB(255,0,0), Shape.RIGHT);
vLastAlert = 2;
}
//}}EFSWizard_Action_2 35637
//}}EFSWizard_Actions 90754
Coul someone help me?
//{{EFSWizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vBollinger20 = new BollingerStudy(20, "Close", 2);
var vLastAlert = -1;
//}}EFSWizard_Declarations 9964
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(true);
setStudyTitle("BW#");
//}}EFSWizard_PreMain 6180
}
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
if (
vBollinger20.getValue(BollingerStudy.UPPER) - vBollinger20.getValue(BollingerStudy.UPPER)>30
) onAction1()
//}}EFSWizard_Expression_1 16692
//{{EFSWizard_Expression_2
else if (
vBollinger20.getValue(BollingerStudy.UPPER) - vBollinger20.getValue(BollingerStudy.LOWER)<30
//}}EFSWizard_Expression_2 17993
//}}EFSWizard_Expressions 51962
//{{EFSWizard_Return
return null;
//}}EFSWizard_Return 2256
}
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() {
if (vLastAlert != 1) drawTextRelative(0, low(), "B+", Color.RGB(155,0,0), Color.RGB(255,255,255), Text.LEFT, "Arial", 10);
if (vLastAlert != 1) drawShapeRelative(0, low(), Shape.CIRCLE, "", Color.RGB(192,220,192), Shape.RIGHT);
vLastAlert = 1;
}
//}}EFSWizard_Action_1 34958
//{{EFSWizard_Action_2
function onAction2() {
if (vLastAlert != 2) drawTextRelative(0, high(), "B-", Color.RGB(255,0,0), Color.RGB(255,255,255), Text.LEFT, "Arial", 10);
if (vLastAlert != 2) drawShapeRelative(0, high(), Shape.SQUARE, "", Color.RGB(255,0,0), Shape.RIGHT);
vLastAlert = 2;
}
//}}EFSWizard_Action_2 35637
//}}EFSWizard_Actions 90754
Comment