...those threads sound promising...Thanks Hanover, I appreciate the reply...
- Joined Apr 2006 | Status: Trader Keit | 286 Posts
Trader Keit ... Methods Of A Dirt Road Mad Man....
FFcal - Plot News indicator 692 replies
Plot News (version 2.0) 103 replies
How to plot on indicator over another 3 replies
Plot on graph - Indicator help 2 replies
Indicator to plot lines for multiples of 10 within last days range 2 replies
DislikedIt doesn't give me any new information. I followed all your well explained instructions, so I don't know what I did wrong. Is FFCal not suppose to update new information from the date you specify?Ignored
DislikedHi Hanover,
Thank you for your quick reply. I have done the exact same thing you suggested on numerous occasions without success. I run FFcal and the last news event is still Nov. 6, 2010. It just doesn't go past that date.
The process does not give me any errors or any problems other than not getting any events past the Nov.6 date. I'm running Windows XP, my broker is FXDD, and my MT4 version is 4 (16 Nov. 2010)....Ignored
DislikedIs it possible to use his indicator with yours and make them work together? What I mean is connect to FF through his FFCal and get the features of your indicator? Do you know what I'm getting at or are they just both totally different from one another?Ignored
DislikedThanks again for everything, unfortunately it didn't do anything different than before.
What I have been able to do is download the news manually from FF and have everything work the way it's suppose to work, just with a bit more work. Whatever my news database contains is what I get plotted on my charts.
One thing I would like to ask you, since your knowledge of computers is much greater than mine, what is the fastest and easiest way to manually download FF's news to my file folder in MT4? I'm sure you're method is a lot faster than mine....Ignored
DislikedFirst press Ctrl-O (in MT4) and change your settings exactly as in the second screenshot. Click OK to accept these.
Then drag the Calc Timeshifts script onto any MT4 chart. With the 'Allow DLL imports' now checked on, the script should be able to read the time zone websites needed to gain the right info, ...
DavidIgnored
Disliked...
4. I really like the way you allow "Presets" files to overcome the bothersome limitations of MT4, but I have a suggestion for slight nuances in your usage model.
At present: The indy has "NONE" for the default. The user must change the value to blank or "TXT" to actually read the Presets file.
Once it is reading that file, then if an entry exists in the Presets file, then the regular input is ignored completely, correct?? (I hope I'm not posting false information and if so, permission to slap me ;-) )
The way you supply the Presets...Ignored
DislikedHi Kent,
Many thanks for going to the trouble of a detailed critique.Ignored
DislikedDavid and Kent
I created a means back with MQII to do what the MT .set file currently does, and even though MT now has this option I still use the functions I created years before. I called it a signature file, or Sig for short.
It worked like this, the first time one runs the program the program will not find the sig file as it has not been created yet nor does it have to be supplied with the code. Theres a function in the code that if the file doesnot exist it is created in the file directory and it is set to the defaults that are hard coded...Ignored
//+------------------------------------------------------------------+ //| 2011/02/02 test presets.mq4 | //| Copyright © 2011, pips4life of ForexFactory.com | //| Based on use of Presets files by hanover (David) at FF | //+------------------------------------------------------------------+ #property copyright "Copyright © 2011, pips4life of ForexFactory.com" #property indicator_chart_window extern int MYVAR = 1; extern string INFO = "Following is for TESTING, not real code"; extern string INFO2 = "0= no PRESET, >0 IS USED"; extern int PRETEND_PRESET_OF_MYVAR = 2; // THIS WOULD NOT BE IN A REAL VERSION!! int def_MYVAR= 1; // Programmer MUST set to the same value as MYVAR above // FYI, you can't say "def_MYVAR=MYVAR;" in this part of the code! void init() { // Note: In Init, MYVAR has either the MYVAR default, or a manual user override int pre_MYVAR = EMPTY_VALUE; // Could be EMPTY_VALUE, or ??? Any dummy value. // Read the Presets file pre_MYVAR = getPresetIntVar("MYVAR", pre_MYVAR); if (pre_MYVAR != EMPTY_VALUE) { // A Preset entry exists and will be used! if (pre_MYVAR != MYVAR && MYVAR != def_MYVAR) { Alert("ERROR. User input of MYVAR ignored because it came from Presets file"); // Possibly use less annoying "Print" in production code. } // The MYVAR value comes from a PRESETS file! MYVAR = pre_MYVAR; } } int getPresetIntVar(string varname, int value) { // Write the code to read the Presets file and look for a legal value // For now, just fake it and use PRETEND_PRESET_OF_MYVAR // If we have read a legal number for varname, then set "value=" that number. if (PRETEND_PRESET_OF_MYVAR > 0) value = PRETEND_PRESET_OF_MYVAR; return(value); } void start() { // For this test, just alert once-per-bar. if (Bars - IndicatorCounted() < 2) return(0); Alert("Using MYVAR = ",MYVAR); return(0); }
DislikedI created a means back with MQII to do what the MT .set file currently does.......Ignored
DislikedI did applications engineering for a software company for 20 years. It's what I do best... better than my trading anyway. lol[/color]Ignored
DislikedHi Hanover,
I will explain it again...
I've saw new EA called Kangaroo EA, that he used
new method on backtesting, he add an option of
news filter during backtest to avoid the EA trading
during news(as you know Spikes....)
so he attached to the EA a CSV file that
contain all news events from 2007 to 2010
I guess that the EA read from the CSV during
backtesting and stop all tradings X minutes
before and after the news...
I'm just looking for something that will read from
the CSV file, as I'm not a good programmer...
Thank you very...Ignored
DislikedBy the way, there are some tricky aspects to resolve, but I am sure that this method can be used to create a "Recent News" version which for most users will never have to require the user set anything about GMT offsets.
.........
Seems to me the former would be a bit easier to display correctly because (maybe I'm being too US centric here) most brokers I know of follow the U.S. ST/DST changeover.Ignored