Is there any way to get it to include all of the high impact news for the 6 majors. I trade the EUR/USD but it is effected by JPY news in addition to EUR and US announcements.
I tried changing this part
But every thing that I tried messes the whole thing up.
Also I added this function to my EA...
And it turns the EA off 30 min before an event but I cannot get it to stay true after the event. Any suggestions ?
I tried changing this part
PHP Code
// Get the currency pair, and split it into the two countries string pair = Symbol(); string cntry1 = StringSubstr(pair, 0, 3); string cntry2 = StringSubstr(pair, 3, 3); if (DebugLevel > 0) Print("cntry1 = ", cntry1, " cntry2 = ", cntry2);
Also I added this function to my EA...
PHP Code
// News ON OFF function bool TradeNews(){ int minutesSincePrevEvent = iCustom(NULL, 0, "FFCAL_v03", true, true, false, true, 1, 0); int impactOfPrevEvent = iCustom(NULL, 0, "FFCAL_v03", true, true, false, true, 2, 0); int minutesUntilNextEvent = iCustom(NULL, 0, "FFCAL_v03", true, true, false, true, 1, 1); int impactOfNextEvent = iCustom(NULL, 0, "FFCAL_v03", true, true, false, true, 2, 1); // (where impact of 1 = Low, 2 = Medium, and 3 = High) NewsTime = false; if (minutesUntilNextEvent <= 30 || minutesSincePrevEvent >=30) {NewsTime = true;} return (NewsTime); }
Keep it simple stoopid....