I use the Impulse system in QuoteTracker and have had great results with it. I found the code for esignal
here and pasted it below. Anyone able to translate the code into MT4 for us novices? Thanks
var myStudy1=null;
var myStudy2=null;
var myStudy3=null;
function preMain() {
setStudyTitle("Impulse Indicator");
setCursorLabelName("Impulse", 0);
setCursorLabelName("MACDHist",1);
setPriceStudy(true); }
function main() {
var myStudy1 = ema(13);
var myStudy2 = new macdHist(12,26,9);
var myStudy3 = ema(13);
//Impulse Up
if ((myStudy1.getValue(0) > myStudy1.getValue(-1)) && (myStudy2.getValue(0) > myStudy2.getValue(-1))) {
setPriceBarColor(Color.green);
}
//Impulse Down
else if ((myStudy1.getValue(0) < myStudy1.getValue(-1)) && (myStudy2.getValue(0) < myStudy2.getValue(-1)) ) {
setPriceBarColor(Color.red);
}
//Neutral
else {
setPriceBarColor(Color.blue);
}
}