following Alexis instruction I generate as study of ROC of MACD, it "look" some what like an example he given but it plot no lines, help
-----------
//{{EFSWizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vROC13 = new ROCStudy(13, "Close");
var vMACD12_26 = new MACDStudy(12, 26, 9, vROC13, ROCStudy.ROC, false);
var vLastAlert = -1;
//}}EFSWizard_Declarations 17551
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("ROC13");
setCursorLabelName("vROC13", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.red, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_LINE, 0);
//}}EFSWizard_PreMain 31762
}
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 ;
//}}EFSWizard_Return 1661
}
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_Action_2
function onAction2() {
vLastAlert = 2;
}
//}}EFSWizard_Action_2 5582
//}}EFSWizard_Actions 31632
-----------
//{{EFSWizard_Description
//
// This formula was generated by the Alert Wizard
//
//}}EFSWizard_Description 7532
//{{EFSWizard_Declarations
var vROC13 = new ROCStudy(13, "Close");
var vMACD12_26 = new MACDStudy(12, 26, 9, vROC13, ROCStudy.ROC, false);
var vLastAlert = -1;
//}}EFSWizard_Declarations 17551
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("ROC13");
setCursorLabelName("vROC13", 0);
setDefaultBarStyle(PS_SOLID, 0);
setDefaultBarFgColor(Color.red, 0);
setDefaultBarThickness(1, 0);
setPlotType(PLOTTYPE_LINE, 0);
//}}EFSWizard_PreMain 31762
}
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 ;
//}}EFSWizard_Return 1661
}
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_Action_2
function onAction2() {
vLastAlert = 2;
}
//}}EFSWizard_Action_2 5582
//}}EFSWizard_Actions 31632
Comment