Ok I'm pretty sure someone may have started something like this before but I might have missed it. So I was hoping to rake this up again.
Anyway, I wrote a simple indicator to help me keep track of fluctuating spreads. I was hoping to use these data to decide which brokers are more suitable for auto trading or any trading for that matter...
I've noticed IBFX can have spreads on GBPJPY up to 45 pips during "high volatility" periods. and that's just insane.
you guys can probably help out with this research too.
BEFORE using this indicator, create a folder called "Spread_Recording" inside your
C:\Program Files\Metatrader\experts\files
This "Spread_Recording" folder will be holding all the log files written by this little indicator.
basically what this indicator does is it will look at the current spread, write it into a file, then record that spread down. upon the next tick, if the spread changes, write the new spread into the log file. If the spread is the same, then don't write it. This will save some disk space.
the log file name convention is set as
[Symbol]-Spread_Recorder-[Day]-[Month]-[Year].log
e.g. for the spread recording log file for the EURNZD for the day of 4th Sept 2009. The file name will be.
EURNZD-Spread_Recorder-4-9-2009.log
That means Each symbol will have it own set of files. and each day will initiate a new file. This helps in the data reading process.
an extract capture of the contents for each log file is as such.
another one on NZDJPY
you can see the exact time the spread widens or narrows and by how much. did you see how the spread jumps from 17 to 33 at the very next second in the EURNZD? this is ridiculous...
I've just started doing for IBFX. and will publish the results after a month.
If more will like to help out with other brokers, that'll be even better.
best regards,
Zen
Anyway, I wrote a simple indicator to help me keep track of fluctuating spreads. I was hoping to use these data to decide which brokers are more suitable for auto trading or any trading for that matter...
I've noticed IBFX can have spreads on GBPJPY up to 45 pips during "high volatility" periods. and that's just insane.
you guys can probably help out with this research too.
BEFORE using this indicator, create a folder called "Spread_Recording" inside your
C:\Program Files\Metatrader\experts\files
This "Spread_Recording" folder will be holding all the log files written by this little indicator.
basically what this indicator does is it will look at the current spread, write it into a file, then record that spread down. upon the next tick, if the spread changes, write the new spread into the log file. If the spread is the same, then don't write it. This will save some disk space.
the log file name convention is set as
[Symbol]-Spread_Recorder-[Day]-[Month]-[Year].log
e.g. for the spread recording log file for the EURNZD for the day of 4th Sept 2009. The file name will be.
EURNZD-Spread_Recorder-4-9-2009.log
That means Each symbol will have it own set of files. and each day will initiate a new file. This helps in the data reading process.
an extract capture of the contents for each log file is as such.
Inserted Code
16:59:36 - Ask: 2.0787 | Bid: 2.0770 | Spread: 17.00 pips 16:59:37 - Ask: 2.0785 | Bid: 2.0771 | Spread: 14.00 pips 16:59:41 - Ask: 2.0787 | Bid: 2.0772 | Spread: 15.00 pips 16:59:45 - Ask: 2.0786 | Bid: 2.0772 | Spread: 14.00 pips 16:59:47 - Ask: 2.0786 | Bid: 2.0771 | Spread: 15.00 pips 16:59:47 - Ask: 2.0785 | Bid: 2.0771 | Spread: 14.00 pips 16:59:47 - Ask: 2.0786 | Bid: 2.0771 | Spread: 15.00 pips 16:59:48 - Ask: 2.0789 | Bid: 2.0772 | Spread: 17.00 pips 16:59:49 - Ask: 2.0791 | Bid: 2.0758 | Spread: 33.00 pips 16:59:49 - Ask: 2.0791 | Bid: 2.0759 | Spread: 32.00 pips 16:59:50 - Ask: 2.0791 | Bid: 2.0758 | Spread: 33.00 pips 16:59:50 - Ask: 2.0791 | Bid: 2.0759 | Spread: 32.00 pips 16:59:51 - Ask: 2.0790 | Bid: 2.0761 | Spread: 29.00 pips 16:59:52 - Ask: 2.0790 | Bid: 2.0760 | Spread: 30.00 pips 16:59:53 - Ask: 2.0791 | Bid: 2.0760 | Spread: 31.00 pips 16:59:53 - Ask: 2.0791 | Bid: 2.0761 | Spread: 30.00 pips 16:59:53 - Ask: 2.0791 | Bid: 2.0760 | Spread: 31.00 pips 16:59:54 - Ask: 2.0784 | Bid: 2.0756 | Spread: 28.00 pips
another one on NZDJPY
Inserted Code
16:57:19 - Ask: 0.00 | Bid: 0.00 | Spread: 8.00 pips 17:0:33 - Ask: 64.07 | Bid: 63.97 | Spread: 10.00 pips 17:0:36 - Ask: 64.05 | Bid: 63.97 | Spread: 8.00 pips 17:1:37 - Ask: 64.06 | Bid: 63.96 | Spread: 10.00 pips 17:1:40 - Ask: 64.05 | Bid: 63.97 | Spread: 8.00 pips 17:4:4 - Ask: 64.08 | Bid: 63.98 | Spread: 10.00 pips 17:4:5 - Ask: 64.08 | Bid: 64.00 | Spread: 8.00 pips 17:5:15 - Ask: 64.10 | Bid: 64.00 | Spread: 10.00 pips 17:6:8 - Ask: 64.09 | Bid: 64.01 | Spread: 8.00 pips 17:8:30 - Ask: 64.13 | Bid: 64.03 | Spread: 10.00 pips 17:8:55 - Ask: 64.11 | Bid: 64.03 | Spread: 8.00 pips 17:20:29 - Ask: 64.09 | Bid: 63.99 | Spread: 10.00 pips 17:20:57 - Ask: 64.07 | Bid: 63.99 | Spread: 8.00 pips 17:21:59 - Ask: 64.10 | Bid: 64.00 | Spread: 10.00 pips 17:22:3 - Ask: 64.10 | Bid: 64.02 | Spread: 8.00 pips 17:24:31 - Ask: 64.16 | Bid: 64.06 | Spread: 10.00 pips 17:24:36 - Ask: 64.14 | Bid: 64.06 | Spread: 8.00 pips 17:28:9 - Ask: 64.16 | Bid: 64.06 | Spread: 10.00 pips 17:28:33 - Ask: 64.14 | Bid: 64.06 | Spread: 8.00 pips 17:31:19 - Ask: 64.15 | Bid: 64.05 | Spread: 10.00 pips 17:31:28 - Ask: 64.13 | Bid: 64.05 | Spread: 8.00 pips 17:36:17 - Ask: 64.13 | Bid: 64.03 | Spread: 10.00 pips 17:36:19 - Ask: 64.11 | Bid: 64.03 | Spread: 8.00 pips
you can see the exact time the spread widens or narrows and by how much. did you see how the spread jumps from 17 to 33 at the very next second in the EURNZD? this is ridiculous...
I've just started doing for IBFX. and will publish the results after a month.
If more will like to help out with other brokers, that'll be even better.
best regards,
Zen
Attached File(s)
Spread_Recorder.mq4
3 KB
|
3,953 downloads
Programming for a better future.