Faster is of course WHR's variant, as AV's code adds overhead prior to accessing the array. AV's code has a smaller footprint, and that is a difference.
The reason i am commenting here, is the impossibility to measure execution speed using MT4, as it does some unpredictable actions while executing strategy tester. I have been doing some testing of my EA for speed optimization, and i couldn't get a reliable measuring, the results varied up to 30%, so i actually relied more on logic than on results while optimizing.
Giving the process high or even real time priority, as written above, sounds like a good idea, however i didn't think of it while i was testing.
Anybody has got some good method for speed measuring?
Faster is of course WHR's variant, as AV's code adds overhead prior to accessing the array. AV's code has a smaller footprint, and that is a difference.
The reason i am commenting here, is the impossibility to measure execution speed using MT4, as it does some unpredictable actions while executing strategy tester. I have been doing some testing of my EA for speed optimization, and i couldn't get a reliable measuring, the results varied up to 30%, so i actually relied more on logic than on results while optimizing.
Giving the process high or even real time priority, as written above, sounds like a good idea, however i didn't think of it while i was testing.
Anybody has got some good method for speed measuring?
The trader may repeat the process of buying at support and selling at resistance many times until the stock breaks out of the channel. The upper boundary of the channel is shown by a trendline that connects the points representing a stock's highs over a given time period. The lower boundary of the channel is identified by connecting the points representing a stock's lows. The downside of this strategy is that when a stock breaks out of the channel, it usually experiences a large price movement in the direction of the breakout. If the breakout direction is not favorable for the trader's position, he or she could lose badly.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Faster is of course WHR's variant, as AV's code adds overhead prior to accessing the array.
AV's code has a smaller footprint, and that is a difference.
The reason i am commenting here, is the impossibility to measure execution speed using MT4, as it does some unpredictable actions while executing strategy tester.
I have been doing some testing of my EA for speed optimization, and i couldn't get a reliable measuring, the results varied up to 30%, so i actually relied more on logic than on results while optimizing.
Giving the process high or even real time priority, as written above, sounds like a good idea, however i didn't think of it while i was testing.
Anybody has got some good method for speed measuring?
Speedtest2 EURUSD,M1: Execution time: 35210ms
36301 / 35210 = 3.1%
Faster is of course WHR's variant, as AV's code adds overhead prior to accessing the array.
AV's code has a smaller footprint, and that is a difference.
The reason i am commenting here, is the impossibility to measure execution speed using MT4, as it does some unpredictable actions while executing strategy tester.
I have been doing some testing of my EA for speed optimization, and i couldn't get a reliable measuring, the results varied up to 30%, so i actually relied more on logic than on results while optimizing.
Giving the process high or even real time priority, as written above, sounds like a good idea, however i didn't think of it while i was testing.
Anybody has got some good method for speed measuring?