Edit Your Comment
Fucntions() vs execution speed
Apr 10, 2016 at 12:25
Sep 20, 2014 부터 멤버
게시물342
No, the problem is the internet between you and your trades and MT's server, not how fast your computer can do things.
Let's take a big closeout for example, 100 trades. You have to select each trade, close it, wait for the response, then go to the next one, close it, wait for the response and so on. You can do maybe 2 a second. The 1/1000th you use to read a defunct function doesn't even begin to feature.
MT 5 supposedly has an asynchronous mode and only tracks single positions, which in theory solve the time issues, but certainly not to the extent where you need inline functions. And frankly very few brokers use it. There's no demand for it.
Oanda is a bit better, there you can use the API to send an apposing trade, so if you have say 100 trades of 1000 units each you'll send a single order to close 100*1000 and they will do it server side, at their best server speed, which is almost instant, but if it's over more than 1 pair they have a delay written into their closes. So then you're waiting 1 second anyway per pair and you're back to the point where 1/1000th delay doesn't matter.
So unless you're using an enterprise level language and you're plugging directly into the banks with co-hosted servers empty functions simply doesn't matter.
You basically need to be into HFT for it to matter, and that means you have to get out of someone else framework and write your own from scratch and you'll probably have to use the FIX protocol which will create a massive amount of work for you.
Let's take a big closeout for example, 100 trades. You have to select each trade, close it, wait for the response, then go to the next one, close it, wait for the response and so on. You can do maybe 2 a second. The 1/1000th you use to read a defunct function doesn't even begin to feature.
MT 5 supposedly has an asynchronous mode and only tracks single positions, which in theory solve the time issues, but certainly not to the extent where you need inline functions. And frankly very few brokers use it. There's no demand for it.
Oanda is a bit better, there you can use the API to send an apposing trade, so if you have say 100 trades of 1000 units each you'll send a single order to close 100*1000 and they will do it server side, at their best server speed, which is almost instant, but if it's over more than 1 pair they have a delay written into their closes. So then you're waiting 1 second anyway per pair and you're back to the point where 1/1000th delay doesn't matter.
So unless you're using an enterprise level language and you're plugging directly into the banks with co-hosted servers empty functions simply doesn't matter.
You basically need to be into HFT for it to matter, and that means you have to get out of someone else framework and write your own from scratch and you'll probably have to use the FIX protocol which will create a massive amount of work for you.
Apr 10, 2016 at 12:36
Sep 20, 2014 부터 멤버
게시물342
And I forgot to mention, all price data comes in to your machine as ticks. So any of the MT functions you call reads local data. There is no delay in getting info. So it's not as if you're sitting in functions waiting for data to come in.
So ja, reading empty functions simply doesn't matter.
So ja, reading empty functions simply doesn't matter.
Jan 05, 2016 부터 멤버
게시물1097
Apr 12, 2016 at 06:52
Sep 16, 2009 부터 멤버
게시물188
MT4 will use ex4 version file. This compiled file use only called functions. So, Any extra functions that are not used in the EA algorithm will not effect.
Try always to show Currency pairs that you are using in Market Watch window. This will reduce the need of MT4 to look for more ticks of data from the server.
Try always to show Currency pairs that you are using in Market Watch window. This will reduce the need of MT4 to look for more ticks of data from the server.
... oshaban ... skype: oshaban27 ...

*상업적 사용 및 스팸은 허용되지 않으며 계정이 해지될 수 있습니다.
팁: 이미지/유튜브 URL을 게시하면 게시물에 자동으로 삽입됩니다!
팁: @기호를 입력하여 이 토론에 참여하는 사용자 이름을 자동으로 완성합니다.