I tryed to combine the basicParabolicSAR.efs (as price study) and the basicMACD.efs (as non price study) in one*.efs.
I used (and tryed combine) the efs2Basic formulas, but it is not working.
I have no idea, how can I do that, so it is working in a chart.
Has anybody here an idea?
function preMain() {
setPriceStudy(false); // need true(MACD) and false(PARA) ??????
setStudyTitle("MACD+PARA");
setCursorLabelName("MACD",0);
setCursorLabelName("MACDSig",1);
setCursorLabelName("MACDHist",2);
setCursorLabelName("PSAR",3);
setDefaultBarFgColor(Color.blue,0);
setDefaultBarFgColor(Color.red,1);
setDefaultBarFgColor(Color.magenta,2);
setDefaultBarFgColor(Color.blue,3);
setPlotType(PLOTTYPE_LINE,0);
setPlotType(PLOTTYPE_LINE,1);
setPlotType(PLOTTYPE_HISTOGRAM,2);
setPlotType(PLOTTYPE_LINE,3);
setDefaultBarThickness(1,0);
setDefaultBarThickness(1,1);
setDefaultBarThickness(1,2);
setDefaultBarThickness(1,3);
}
function main(){
return new Array (macd(12,26,9),macdSignal(12,26,9),macdHist(12,26, 9),sar(0.02,0.02,0.02));
}
Torso
I used (and tryed combine) the efs2Basic formulas, but it is not working.
I have no idea, how can I do that, so it is working in a chart.
Has anybody here an idea?
function preMain() {
setPriceStudy(false); // need true(MACD) and false(PARA) ??????
setStudyTitle("MACD+PARA");
setCursorLabelName("MACD",0);
setCursorLabelName("MACDSig",1);
setCursorLabelName("MACDHist",2);
setCursorLabelName("PSAR",3);
setDefaultBarFgColor(Color.blue,0);
setDefaultBarFgColor(Color.red,1);
setDefaultBarFgColor(Color.magenta,2);
setDefaultBarFgColor(Color.blue,3);
setPlotType(PLOTTYPE_LINE,0);
setPlotType(PLOTTYPE_LINE,1);
setPlotType(PLOTTYPE_HISTOGRAM,2);
setPlotType(PLOTTYPE_LINE,3);
setDefaultBarThickness(1,0);
setDefaultBarThickness(1,1);
setDefaultBarThickness(1,2);
setDefaultBarThickness(1,3);
}
function main(){
return new Array (macd(12,26,9),macdSignal(12,26,9),macdHist(12,26, 9),sar(0.02,0.02,0.02));
}
Torso
Comment