My MT4 rounds non Pending orders to 0.00005

 

hi


i'm designing an EA and the prices are not precise but rather rounded to 0.00005

1       2010.07.19 00:00        sell    1       1.00    1.52915 0.00000 0.00000 0.00    10000.00
2       2010.07.19 00:00        close   1       1.00    1.52910 0.00000 0.00000 5.00    10005.00
3       2010.07.19 00:00        sell    2       1.00    1.52910 0.00000 0.00000 0.00    10005.00
4       2010.07.19 00:00        close   2       1.00    1.52905 0.00000 0.00000 5.00    10010.00
5       2010.07.19 00:00        sell    3       1.00    1.52900 0.00000 0.00000 0.00    10010.00
6       2010.07.19 00:01        close   3       1.00    1.52895 0.00000 0.00000 5.00    10015.00
7       2010.07.19 00:01        sell    4       1.00    1.52890 0.00000 0.00000 0.00    10015.00
8       2010.07.19 00:19        close   4       1.00    1.52880 0.00000 0.00000 10.00   10025.00
9       2010.07.19 00:19        sell    5       1.00    1.52870 0.00000 0.00000 0.00    10025.00
10      2010.07.19 00:19        close   5       1.00    1.52865 0.00000 0.00000 5.00    10030.00
11      2010.07.19 00:19        sell    6       1.00    1.52860 0.00000 0.00000 0.00    10030.00
12      2010.07.19 00:20        close   6       1.00    1.52855 0.00000 0.00000 5.00    10035.00
13      2010.07.19 00:20        sell    7       1.00    1.52850 0.00000 0.00000 0.00    10035.00
14      2010.07.19 00:21        close   7       1.00    1.52845 0.00000 0.00000 5.00    10040.00
15      2010.07.19 00:21        sell    8       1.00    1.52840 0.00000 0.00000 0.00    10040.00
16      2010.07.19 00:21        close   8       1.00    1.52830 0.00000 0.00000 10.00   10050.00
17      2010.07.19 00:21        sell    9       1.00    1.52830 0.00000 0.00000 0.00    10050.00
18      2010.07.19 00:23        close   9       1.00    1.52820 0.00000 0.00000 10.00   10060.00
19      2010.07.19 00:23        sell    10      1.00    1.52810 0.00000 0.00000 0.00    10060.00
20      2010.07.19 00:28        close   10      1.00    1.52805 0.00000 0.00000 5.00    10065.00
21      2010.07.19 00:28        sell    11      1.00    1.52800 0.00000 0.00000 0.00    10065.00
22      2010.07.19 00:31        buy     12      1.00    1.52850 0.00000 0.00000 0.00    10065.00
23      2010.07.19 00:31        close   12      1.00    1.52860 0.00000 0.00000 10.00   10075.00
24      2010.07.19 00:31        buy     13      1.00    1.52865 0.00000 0.00000 0.00    10075.00
25      2010.07.19 00:31        close   13      1.00    1.52870 0.00000 0.00000 5.00    10080.00
26      2010.07.19 00:31        buy     14      1.00    1.52870 0.00000 0.00000 0.00    10080.00
27      2010.07.19 00:37        close   14      1.00    1.52875 0.00000 0.00000 5.00    10085.00
28      2010.07.19 00:37        buy     15      1.00    1.52880 0.00000 0.00000 0.00    10085.00
29      2010.07.19 00:38        close   15      1.00    1.52885 0.00000 0.00000 5.00    10090.00
30      2010.07.19 00:39        buy     16      1.00    1.52890 0.00000 0.00000 0.00    10090.00
31      2010.07.19 00:57        close   16      1.00    1.52905 0.00000 0.00000 15.00   10105.00
32      2010.07.19 00:57        close   11      1.00    1.52910 0.00000 0.00000 -110.00 9995.00
33      2010.07.19 00:57        buy     17      1.00    1.52910 0.00000 0.00000 0.00    9995.00
34      2010.07.19 00:57        close   17      1.00    1.52920 0.00000 0.00000 10.00   10005.00
35      2010.07.19 00:57        buy     18      1.00    1.52925 0.00000 0.00000 0.00    10005.00
36      2010.07.19 01:00        close   18      1.00    1.52935 0.00000 0.00000 10.00   10015.00
37      2010.07.19 01:00        buy     19      1.00    1.52935 0.00000 0.00000 0.00    10015.00

but when i use the exact same algorithm (i'm virtualizing an EA) but with pending orders, then all is fine :

1       2010.07.19 00:00        sell stop       1       1.00    1.52914 1.53004 1.52664 0.00    10000.00
2       2010.07.19 00:00        buy stop        2       1.00    1.52964 1.52874 1.53214 0.00    10000.00
3       2010.07.19 00:00        sell    1       1.00    1.52914 1.53004 1.52664 0.00    10000.00
4       2010.07.19 00:00        close   1       1.00    1.52910 1.53004 1.52664 4.00    10004.00
5       2010.07.19 00:00        sell stop       3       1.00    1.52904 1.52994 1.52654 0.00    10004.00
6       2010.07.19 00:00        sell    3       1.00    1.52904 1.52994 1.52654 0.00    10004.00
7       2010.07.19 00:00        close   3       1.00    1.52900 1.52994 1.52654 4.00    10008.00
8       2010.07.19 00:00        sell stop       4       1.00    1.52894 1.52984 1.52644 0.00    10008.00
9       2010.07.19 00:01        modify  2       1.00    1.52958 1.52868 1.53208 0.00    10008.00
10      2010.07.19 00:01        sell    4       1.00    1.52894 1.52984 1.52644 0.00    10008.00
11      2010.07.19 00:02        modify  2       1.00    1.52954 1.52864 1.53204 0.00    10008.00
12      2010.07.19 00:04        modify  2       1.00    1.52949 1.52859 1.53199 0.00    10008.00
13      2010.07.19 00:05        modify  2       1.00    1.52946 1.52856 1.53196 0.00    10008.00
14      2010.07.19 00:07        modify  2       1.00    1.52944 1.52854 1.53194 0.00    10008.00
15      2010.07.19 00:08        modify  2       1.00    1.52942 1.52852 1.53192 0.00    10008.00
16      2010.07.19 00:09        modify  2       1.00    1.52938 1.52848 1.53188 0.00    10008.00
17      2010.07.19 00:10        modify  2       1.00    1.52935 1.52845 1.53185 0.00    10008.00
18      2010.07.19 00:12        modify  2       1.00    1.52933 1.52843 1.53183 0.00    10008.00
19      2010.07.19 00:14        modify  2       1.00    1.52930 1.52840 1.53180 0.00    10008.00
20      2010.07.19 00:16        modify  2       1.00    1.52928 1.52838 1.53178 0.00    10008.00
21      2010.07.19 00:18        modify  2       1.00    1.52926 1.52836 1.53176 0.00    10008.00
22      2010.07.19 00:19        close   4       1.00    1.52890 1.52984 1.52644 4.00    10012.00
23      2010.07.19 00:19        modify  2       1.00    1.52923 1.52833 1.53173 0.00    10012.00
24      2010.07.19 00:19        sell stop       5       1.00    1.52878 1.52968 1.52628 0.00    10012.00
25      2010.07.19 00:19        sell    5       1.00    1.52878 1.52968 1.52628 0.00    10012.00
26      2010.07.19 00:19        close   5       1.00    1.52875 1.52968 1.52628 3.00    10015.00
27      2010.07.19 00:19        sell stop       6       1.00    1.52869 1.52959 1.52619 0.00    10015.00
28      2010.07.19 00:19        sell    6       1.00    1.52869 1.52959 1.52619 0.00    10015.00
29      2010.07.19 00:19        close   6       1.00    1.52865 1.52959 1.52619 4.00    10019.00
30      2010.07.19 00:19        sell stop       7       1.00    1.52859 1.52949 1.52609 0.00    10019.00
31      2010.07.19 00:19        modify  7       1.00    1.52877 1.52967 1.52627 0.00    10019.00
32      2010.07.19 00:19        sell    7       1.00    1.52877 1.52967 1.52627 0.00    10019.00
33      2010.07.19 00:19        close   7       1.00    1.52875 1.52967 1.52627 2.00    10021.00
34      2010.07.19 00:19        sell stop       8       1.00    1.52869 1.52959 1.52619 0.00    10021.00
35      2010.07.19 00:19        modify  8       1.00    1.52877 1.52967 1.52627 0.00    10021.00
36      2010.07.19 00:19        sell    8       1.00    1.52877 1.52967 1.52627 0.00    10021.00
37      2010.07.19 00:19        close   8       1.00    1.52875 1.52967 1.52627 2.00    10023.00
38      2010.07.19 00:19        sell stop       9       1.00    1.52869 1.52959 1.52619 0.00    10023.00


see ? no rounding to 0.00005


what's going on ??


thanks for help


Jeff

 

Jeff,

If you are indeed normalizing the request price down to one tick and the instrument's tick-size is 0.00001, then it's an issue with your broker. 

 

yes but why the pending are ok (in the first EA). i created another EA yesterday, with pendings (just to see), and the trades are also rounded to 0.00005, unlike the first EA...


this is really strange, it's like i'm doing something wrong but i don't know what (i'm not rounding entry prices, right)

1       2010.07.19 00:00        sell stop       1       0.01    1.52915 0.00000 0.00000 0.00    1000000.00
2       2010.07.19 00:00        sell    1       0.01    1.52915 0.00000 0.00000 0.00    1000000.00
3       2010.07.19 00:00        sell stop       2       0.01    1.52895 0.00000 0.00000 0.00    1000000.00
4       2010.07.19 00:00        sell    2       0.01    1.52895 0.00000 0.00000 0.00    1000000.00
5       2010.07.19 00:19        sell stop       3       0.02    1.52875 0.00000 0.00000 0.00    1000000.00
6       2010.07.19 00:19        sell    3       0.02    1.52875 0.00000 0.00000 0.00    1000000.00
7       2010.07.19 00:20        sell stop       4       0.02    1.52855 0.00000 0.00000 0.00    1000000.00
8       2010.07.19 00:20        sell    4       0.02    1.52855 0.00000 0.00000 0.00    1000000.00
9       2010.07.19 00:21        close   4       0.02    1.52840 0.00000 0.00000 0.30    1000000.30
10      2010.07.19 00:21        close   3       0.02    1.52840 0.00000 0.00000 0.70    1000001.00
11      2010.07.19 00:21        close   2       0.01    1.52840 0.00000 0.00000 0.55    1000001.55
12      2010.07.19 00:21        close   1       0.01    1.52840 0.00000 0.00000 0.75    1000002.30
13      2010.07.19 00:21        sell stop       5       0.02    1.52835 0.00000 0.00000 0.00    1000002.30
14      2010.07.19 00:21        sell    5       0.02    1.52835 0.00000 0.00000 0.00    1000002.30
15      2010.07.19 00:21        close   5       0.02    1.52840 0.00000 0.00000 -0.10   1000002.20

Jeff