I am new to writing on efs. I have written a simple formula as below. It seems to work on my esignal chart. I am trying to create a formula which reads as a 21 simple moving average of the formula below.
/
function preMain() {
setPriceStudy(false);
setStudyTitle("My Strength");
setCursorLabelName("Strength");
setDefaultBarFgColor(Color.blue);
setPlotType(PLOTTYPE_LINE);
setDefaultBarThickness(1);
}
function main() {
return (2*close()-upperDonchian(21)-lowerDonchian(21));
}
I went to formula wizard and realised that i could use the function editor to do it. I do not know what to fill in for the property studyVarName and dataSeriesID columns.
Could someone please guide me how to write this formula.
Thanks for any help,
fortune 88
/
function preMain() {
setPriceStudy(false);
setStudyTitle("My Strength");
setCursorLabelName("Strength");
setDefaultBarFgColor(Color.blue);
setPlotType(PLOTTYPE_LINE);
setDefaultBarThickness(1);
}
function main() {
return (2*close()-upperDonchian(21)-lowerDonchian(21));
}
I went to formula wizard and realised that i could use the function editor to do it. I do not know what to fill in for the property studyVarName and dataSeriesID columns.
Could someone please guide me how to write this formula.
Thanks for any help,
fortune 88
Comment