Compiled on build 670 without errors
Attached File(s)
FFCal.mq4
49 KB
|
2,594 downloads
MT4 News Calendar Indicator 912 replies
MT4 calendar indicator link request 33 replies
News impact in forex - Need calendar data for my indicator 6 replies
DislikedHi, First I must apologize because it is not my indicator of course. This was made by derkwehler also. So "if you like my favorite indicator just grab and try". I just made it compatible for the new mt4. Anyway as I told it before this is a simplier one and this is working well with any EA because it shows only the upcoming news in the smallest size. This is why I like this indicator. If you want more lines it is possible but i think you should modify the other FFCal which can show more than 2 line basically. The structure of the code almost the...Ignored
void NewsHandling() { static int PrevMinute = -1; if (ImpactFilter > 0) { if (Minute() != PrevMinute) { PrevMinute = Minute(); int minutesSincePrevEvent = iCustom(NULL, 5, "FFCal", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 0); int minutesUntilNextEvent = iCustom(NULL, 5, "FFCal", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 1); int impactOfPrevEvent = iCustom(NULL, 5, "FFCal", true, true, false, true, true, 2, 0); int impactOfNextEvent = iCustom(NULL, 5, "FFCal", true, true, false, true, true, 2, 1); NewsTime = false; NewsTimeComment = "No News, Trading Allowed LVL " + impactOfPrevEvent + " " + minutesSincePrevEvent + " mins. ago, LVL " + impactOfNextEvent + " in " + minutesUntilNextEvent + " mins."; if ((minutesUntilNextEvent <= MinsBeforeNews) || (minutesSincePrevEvent <= MinsAfterNews)) { if ((impactOfPrevEvent >= ImpactFilter) || (impactOfNextEvent >= ImpactFilter)) { NewsTime = true; NewsTimeComment = "Ongoing News, Trading Disallowed LVL " + impactOfPrevEvent + " " + minutesSincePrevEvent + "mins. ago, LVL " + impactOfNextEvent + " in " + minutesUntilNextEvent + " mins."; } else { NewsTime = true; NewsTimeComment = "Ongoing Light News, Trading Allowed LVL " + impactOfPrevEvent + " " + minutesSincePrevEvent + "mins. ago, LVL " + impactOfNextEvent + " in " + minutesUntilNextEvent + " mins."; } } } } else { NewsTime = false; NewsTimeComment = "Check Disabled Trading Allowed"; } }//Void NewsHandling End
iCustom(NULL,0,"FFCal_mini_DailyFX nmc",true,true,false,true,true,0,true,-1,-1,true,false,false,4,true,6,DeepSkyBlue,Gray,Red,Orange,Khaki,2,false,false,1,0); iCustom(NULL,0,"FFCal_mini_DailyFX nmc",true,true,false,true,true,0,true,-1,-1,true,false,false,4,true,6,DeepSkyBlue,Gray,Red,Orange,Khaki,2,false,false,1,1);
DislikedIs it possible to create an an automated trading system based on the FFC data?Ignored
Disliked{quote} Thank you for the update. I am trying to add FFCAL to an EA, but need some help. Would like to start the trading during News Time. My EA for testing the functions does not appear to work. {file} Any help is appreciated. Thank you in advance.Ignored
DislikedHi, First I must apologize because it is not my indicator of course. This was made by derkwehler also. So "if you like my favorite indicator just grab and try". I just made it compatible for the new mt4. Anyway as I told it before this is a simplier one and this is working well with any EA because it shows only the upcoming news in the smallest size. This is why I like this indicator. If you want more lines it is possible but i think you should modify the other FFCal which can show more than 2 line basically. The structure of the code almost the...Ignored
bool isCurfew() { int minutesSincePrevEvent=iCustom(Symbol(),0,"NEWS_B6_v20g",true,true,false,true,true,1,0); int minutesUntilNextEvent=iCustom(Symbol(), 0, "NEWS_B6_v20g", true, true, false, true, true, 1, 1); if((minutesUntilNextEvent <= curfewMinutesBeforeNews) || (minutesSincePrevEvent <= curfewMinutesAfterNews)) { Print("Curfew found"); return true; } return false; }
2014.11.04 14:12:30.738 Custom indicator NEWS_B6_v20g USDJPY,H1: removed
DislikedYou can use it like the old one. I didn't modify all the code. You should change the iCustom indicators name"FFCal" to "FFCal_mini_DailyFX nmc" and retype the structure. Like this: iCustom(NULL,0,"FFCal_mini_DailyFX nmc",true,true,false,true,true,0,true,-1,-1,true,false,false,4,true,6,DeepSkyBlue,Gray,Red,Orange,Khaki,2,false,false,1,0); iCustom(NULL,0,"FFCal_mini_DailyFX nmc",true,true,false,true,true,0,true,-1,-1,true,false,false,4,true,6,DeepSkyBlue,Gray,Red,Orange,Khaki,2,false,false,1,1);Ignored
int minutesSincePrevEvent = iCustom(NULL, 5, "FFCal", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 0); int minutesUntilNextEvent = iCustom(NULL, 5, "FFCal", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 1); int impactOfPrevEvent = iCustom(NULL, 5, "FFCal", true, true, false, true, true, 2, 0); int impactOfNextEvent = iCustom(NULL, 5, "FFCal", true, true, false, true, true, 2, 1);
int minutesSincePrevEvent = iCustom(NULL, 0, "FFCal_DailyFX", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 0); int minutesUntilNextEvent = iCustom(NULL, 0, "FFCal_DailyFX", IncludeHigh, IncludeMedium, IncludeLow, IncludeSpeaks, 1, 1); int impactOfPrevEvent = iCustom(NULL, 0, "FFCal_DailyFX", true, true, false, true, true, 0, true, -1, -1, true, false, false, 4, true, 6, DeepSkyBlue, Gray,Red,Orange,Khaki, 2, false, false, 2, 0); int impactOfNextEvent = iCustom(NULL, 0, "FFCal_DailyFX", true, true, false, true, true, 0, true, -1, -1, true, false, false, 4, true, 6, DeepSkyBlue, Gray, Red, Orange, Khaki, 2, false, false, 2, 1);
Dislikedhi everyone, can you tell me how I can get the Actual Price from this XML? http://www.forexfactory.com/ffcal_week_this.xml how to check what is Actual info?Ignored
DislikedHi! Here is my modified version of the indicator. Please be aware that the code has been heavily modified to suit my needs (especially backtesting), so you can consider it almost a "fork" of the original. {image} Changes introduced are: Related Calencar functions externalized to library. This library is easily usable from an EA The indicator / funtions have been abstracted from the source used (ForexFactory or DailyFX) Additional graphic capabilities added (future events lines, coloring of vertical lines, ...) Backtesting capabilities added. The...Ignored