Libraries: Virtual

 

Virtual:

Virtual trading environment

Virtual

Author: fxsaber

 

It would be a wonderful improvement but I can not got it.

When adding the 2 lines in my EA code (at the beginning or in any other part of the code) it gives a lot of errors when compile.

 

Last version is here.

Virtual
Virtual
  • www.mql5.com
Данная кроссплатформенная библиотека позволяет работать с  виртуальным торговым окружением одним из самых простых способов. Сценарии использования виртуального торгового окружения. Это значит, что Вы можете в реальном времени наблюдать, что было бы, если бы советник торговал на свежайших ценах в Тестере. Это всегда полезно, т.к. позволяет...
[Deleted]  
May I know what TS stands for?
 
Zee Zhou Ma:
May I know what TS stands for?

Trading Strategy.


Last version.

 

Does the library help to handle multiple TS/EA within 1 trading account?


E.g. Funds in 1 account is 10,000 USD.

You want to allocate 7,000 for EA 1 and 3,000 for EA 2.

Individual EA to stop when they depleted their respective portion of the account and not eat into the other EA's allocation

 
Keith Long:

Does the library help to handle multiple TS/EA within 1 trading account?


E.g. Funds in 1 account is 10,000 USD.

You want to allocate 7,000 for EA 1 and 3,000 for EA 2.

Individual EA to stop when they depleted their respective portion of the account and not eat into the other EA's allocation

Yes, this is possible to program.

[Deleted]  

What do you think about Stop Limit Orders? It is not implemented.

Is there a workaround for this with limit orders?

 
Zee Zhou Ma:

What do you think about Stop Limit Orders? It is not implemented.

Is there a workaround for this with limit orders?

This is an artificial order type. I never needed him. Therefore did not implement.

[Deleted]  
fxsaber:

This is an artificial order type. I never needed him. Therefore did not implement.

I see. Thanks.. that is a good feedback. :D

 
Zee Zhou Ma:

Hi fxsaber,

Do you have any way to ensure the code will go into this "VIRTUAL::SelectOrders" condition check? 

In the code fragment below, I will always go into VirtualOrderSend 3

I have many include files and I have difficulty trying to force the code to go into the procedure after the  "VIRTUAL::SelectOrders" condition check.

But running your example file is okay.

Add

#include <fxsaber\Virtual\Virtual.mqh> // Virtual trading environment

before many include.


Show the source, which does not work as you would like. And write what should be.