
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Позволяющая идентифицировать окружение, из которого был получен тик через SymbolInfoTick.
Кто использует, учитывайте это изменение от MQ.
Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
Библиотеки: Virtual
hini, 2024.08.05 03:44
May I ask the author why it cannot be compiled here?
error: pointer to this function type is not supported yet
Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий
Библиотеки: Virtual
hini, 2024.08.05 04:00
Should it be used this way?
Можно и так.
Thank you very much!
Можно и так.
В библиотеке есть такая метка виртуальных тиков.
Позволяющая идентифицировать окружение, из которого был получен тик через SymbolInfoTick.
Кто использует, учитывайте это изменение от MQ.
Why can't I retrieve the profit after adding a virtual order? The order is still open, but OrderProfit() returns a very small negative value.
Could you please tell me if there are specific application scenarios for this? Is it used within the trading system TS to identify whether the current environment is virtual or real, and then take targeted actions accordingly?
Такое иногда может пригодиться для самоконтроля в сложных советниках.
Why can't I retrieve the profit after adding a virtual order? The order is still open, but OrderProfit() returns a very small negative value.
Не понимаю.
Не понимаю.
Не понимаю.
In summary, I want to manually add positions at any time, with any lot size, and whether they are closed or still open. This would allow me to immediately test how the EA performs under certain market conditions without needing to use the tester to find such conditions for testing.
I tested in a virtual environment without using OrderSend() to open positions. Instead, I manually added a series of ORDER_BASE orders using VIRTUAL::AddOrder(orders); to the virtual environment. Then, I used OrdersTotal() to iterate through the manually added orders and could retrieve the lot size, but I am unable to get the profit using OrderProfit() .
Result.