As for the cup cycle - this will only work for low-liquid ones, otherwise the speed is not enough. I wrote my scalper with speed squeeze, with asynchronous sending, avoiding heavy operations, working with string and without access to history as much as possible. But still, with my ping of 10-12 ms it can not keep up with the glass.
Hmm, it's not that bad when the market is calm. You can live. But this is on futures, not on the fund.
The speed on the Stock market is generally not good.
The order is set at the maximum price in the book, the deal is checked first by force, 2x50 ms,
and then with each tick 3 times 50 ms.
On the video you can see this disgrace with execution on the Fund
Example of 1 trade today (real). CTrade class from the standard library is used for entering.
Experts tab
2022.04.0811:32:53.752 Цена входа bid: 1172.3 EMA_ask = 960.0 Цена фьючерса: 9005.7 Цена акции: 86.100000 Время тика: 11:32:43 по символу ALRS
2022.04.0815:34:12.849 Цена выхода ask: 740.0 Цена фьючерса: 8362.0 Цена акции: 81.200000 Время тика: 15:34:01 по символу ALRS
Log (Entry) tab
2022.04.0811:32:53.757'': exchange buy 30 ALRS at market
2022.04.0811:32:53.757'': exchange sell 3 ALM2 at market
2022.04.0811:32:53.827'': accepted exchange buy 30 ALRS at market
2022.04.0811:32:53.852'': accepted exchange sell 3 ALM2 at market
2022.04.0811:32:53.852'': exchange buy 30 ALRS at market placed for execution in100.334 ms
2022.04.0811:32:53.852'': exchange sell 3 ALM2 at market placed for execution in98.085 ms
2022.04.0811:32:54.007'': deal #2294361 buy 30 ALRS at 86.42 done (based on order #202060525)
2022.04.0811:32:54.057'': deal #2294362 sell 1 ALM2 at 8936 done (based on order #202060527)
2022.04.0811:32:54.082'': deal #2294363 sell 2 ALM2 at 8922 done (based on order #202060527)
Entry time in the example is the longest for today, usually the numbers are about the same as in the output below
Log tab (out)
2022.04.0815:34:12.864'': exchange sell 30 ALRS at market, close #202060525 buy 30 ALRS 86.422022.04.0815:34:12.864'': exchange buy 3 ALM2 at market, close #202060527 sell 3 ALM2 8926.6672022.04.0815:34:12.880'': accepted exchange sell 30 ALRS at market, close #202060525 buy 30 ALRS 86.422022.04.0815:34:12.880'': exchange sell 30 ALRS at market, close #202060525 buy 30 ALRS 86.42 placed for execution in17.961 ms
2022.04.0815:34:12.880'': accepted exchange buy 3 ALM2 at market, close #202060527 sell 3 ALM2 8926.6672022.04.0815:34:12.880'': exchange buy 3 ALM2 at market, close #202060527 sell 3 ALM2 8926.667 placed for execution in18.538 ms
2022.04.0815:34:13.052'': deal #2297760 buy 1 ALM2 at 8383 done (based on order #203273252)
2022.04.0815:34:13.052'': deal #2297761 buy 1 ALM2 at 8384 done (based on order #203273252)
2022.04.0815:34:13.052'': deal #2297762 buy 1 ALM2 at 8384 done (based on order #203273252)
2022.04.0815:34:13.067'': deal #2297763 sell 1 ALRS at 81.21 done (based on order #203273251)
2022.04.0815:34:13.067'': deal #2297764 sell 29 ALRS at 81.20 done (based on order #203273251)
Example 1 trade today (real). The CTrade class from the standard library is slightly modified for entry.
Experts tab
Log tab (Entry)
Entry time in the example is the longest for today, usually the numbers are about the same as in the output below
Log tab (out)
Ping 12ms to the server
Stressed the time difference in logs and ticks. Since the liquidity is small, decided to see/check how these trades appeared in the tick history
For the futures:
And then for the stock - there is more liquidity and there are duplicates
Conclusions:
1) Time in logs and ticks time - do not coincide, which is logical, but I never thought about it before. IMHO, it is not quite correct to measure runtime by terminal logs.
2) Knowing the time of the tick with the accuracy of milliseconds (at the price of which the order is sent from the terminal), you can then (using the history of low-liquid instruments) know the actual "time of execution".
This time will include all network delays from exchange to terminal and back (via broker) + processing time of deal execution on exchange +processing time of tick by expert
1 Исполняются в аукционе закрытия лимитные заявки - заявки с указанием цены (доходности) и количества ценных бумаг рыночные заявки - с указанием количества ценных бумаг и/или рыночные заявки с указанием объема денежных средств, предназначенных для покупки ценных бумаг заявки КП - заявки на заключение сделок в Режиме торгов крупными пакетами ценных бумаг (КП) заявки по цене аукциона закрытия - лимитные или рыночные, подаются в фазе торгов по цене аукциона закрытия заявки послеторгового периода - рыночные заявки в соответствии с Правила проведения торгов
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.
The speed on the Stock market is generally poor.
The order is set at the maximum price in the book, the deal is checked first by force, 2x50 ms,
and then with each tick 3 times 50 ms.
The video shows this embarrassment of execution on the Fund
As for the cup cycle - this will only work for low-liquid ones, otherwise the speed is not enough. I wrote my scalper with speed squeeze, with asynchronous sending, avoiding heavy operations, working with string and without access to history as much as possible. But still, with my ping of 10-12 ms it can not keep up with the glass.
Hmm, it's not that bad when the market is calm. You can live. But this is on futures, not on the fund.
The speed on the Stock market is generally not good.
The order is set at the maximum price in the book, the deal is checked first by force, 2x50 ms,
and then with each tick 3 times 50 ms.
On the video you can see this disgrace with execution on the Fund
Example of 1 trade today (real). CTrade class from the standard library is used for entering.
Experts tab
Log (Entry) tab
Entry time in the example is the longest for today, usually the numbers are about the same as in the output below
Log tab (out)
ping 12ms to server
Why do SPBE and SMLT not support
Do all other stocks support?
After all, SPOT should be banned everywhere, as they said in the opener.predictable on them, otherwise)
but bought almost all the major
TF crap. in purchase, the app went right down.
the app itself went down.
, bought at a higher rate, let it hang.Example 1 trade today (real). The CTrade class from the standard library is slightly modified for entry.
Experts tab
Log tab (Entry)
Entry time in the example is the longest for today, usually the numbers are about the same as in the output below
Log tab (out)
Ping 12ms to the server
Stressed the time difference in logs and ticks. Since the liquidity is small, decided to see/check how these trades appeared in the tick history
For the futures:
And then for the stock - there is more liquidity and there are duplicates
Conclusions:
1) Time in logs and ticks time - do not coincide, which is logical, but I never thought about it before. IMHO, it is not quite correct to measure runtime by terminal logs.
2) Knowing the time of the tick with the accuracy of milliseconds (at the price of which the order is sent from the terminal), you can then (using the history of low-liquid instruments) know the actual "time of execution".
"time_execution_time" = "time_in_the_market_who_called_the_transaction_in_the_terminal" - "time_the_market_of_your_transaction".
This time will include all network delays from exchange to terminal and back (via broker) + processing time of deal execution on exchange +processing time of tick by expert
I will report about results later.
Andrey Miguzov You are getting into the kitchen after all...
there are no market orders in the stock market
Andrey Miguzov You are getting into the kitchen after all...
there are no market orders in the stock market
https://www.moex.com/a2798
:)
there are no market orders in the stock market
How long have they been gone?
;)
Example 1 trade today (real). The CTrade class from the standard library is slightly modified for entry.
Experts tab
Log tab (Entry)
Entry time in the example is the longest for today, usually the numbers are about the same as in the output below
Log tab (out)
Ping 12ms to the server
Today, both terminals real
Futures
13 ms
Stocks
26ms and 28ms respectively
Added
Reverse trades
Futures
7 ms
Stocks
26 ms and 27 ms respectively