Errors, bugs, questions - page 2298

 
Sergey Dzyublik:

Everyone can type "shared_ptr" into site search and follow the first result, it's not hard, I strongly recommend to try it.

then discover that none of the standard smart pointers are properly implemented in mql, because there are no references, dereferencing and arrow.

 
TheXpert:

then discover that none of the standard smart pointers are properly implemented on mql because there are no references, dereferencing and arrows.

If you're alluding to the inability to implement an active link counting counter, the author there writes about his approach to solving this problem:

Forum on trading, automated trading systems and trading strategy testing

Reference counter in shared_ptr is deleted

vasya-gaykin, 2016.03.12 20:02

we need new int to share counter between Pointer, there is no other way to solve this problem.

Pointer is a container for managing Objects

The solution is JSON parsing; instead of Object we have JSON class sets, JSONObject, JSONArray, JSONString...


 
Good afternoon, all. Does anyone know if it is possible to run a tester from an EA? I want to use the statistics data in the Expert Advisor logic.
 

How do I call up the Agreement window in the terminal? For example, when you move a pending order for the first time with the mouse, the Agreement appears on a white background with a large number of letters. It seems to suggest accepting it or refusing it. I cannot see it now.


I cannot understand how the AutoTrade button in the terminal was pressed. The only thing I remember is accidentally hitting a pending order with the mouse. Immediately this Agreement appeared, which I ignored without reading it. This is the only suspicion that could have caused disabling Autotrading. But I can't reproduce it as I can't repeat the situation with this Agreement. Where does this flag sit to knock it out and see those many letters again?

 
fxsaber:

How do I call up the Agreement window in the terminal? For example, when you first move a pending order with the mouse, the Agreement appears on a white background with a large number of letters. It seems to suggest accepting it or refusing it. I cannot see it now.

I cannot understand how the AutoTrade button in the terminal was pressed. The only thing I remember is accidentally hitting a pending order with the mouse. Immediately this Agreement appeared, which I ignored without reading it. This is the only suspicion that could have caused disabling Autotrading. But I can't reproduce it, as I can't repeat the situation with this Agreement. Where does this flag sit to knock it out and see those many letters again?


 
Anatoli Kazharski:

Tried it, the Agreement doesn't appear.

 
I have put such a stupid protection against AutoTrading
#define  TOSTRING(A)  #A + " = " + (string)(A) + "\n"

if (!AccountInfoInteger(ACCOUNT_TRADE_EXPERT) || !AccountInfoInteger(ACCOUNT_TRADE_ALLOWED) || !TerminalInfoInteger(TERMINAL_TRADE_ALLOWED))
  Alert(TOSTRING(AccountInfoInteger(ACCOUNT_TRADE_EXPERT)) +
        TOSTRING(AccountInfoInteger(ACCOUNT_TRADE_ALLOWED)) +
        TOSTRING(TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)));

I never thought this would happen. There's no hotkey to this button, is there, to accidentally press it?


That bastard!

Ctrl+E

Разрешить/запретить использование советников.

Was closing windows on Ctrl+W, accidentally pressed the key next to it instead of W - E. And cut off all trade!


Dear developers, well, let's remove these random situations! Disable / Enable Auto Trade - a serious thing, it is not good to introduce a random element. There is no hotkey to enable DLL. If you want it to be hot, let it be CTRL+SHIFT+E. The Terminal will somehow indicate that this button is pressed. So, you can secure yourself against an accident.

 
fxsaber:

Tried it, the agreement doesn't show up.

Is this the agreement?


 
Anatoli Kazharski:

Is this the agreement?

Yes, it is, thank you. Didn't realise you not only had to uncheck it, but also put it back on.

And the reason for disabling auto-trading turned out to be idiotic - I added the comment above. So be vigilant.

 
Guys. Has anyone figured out how to know if the terminal is loaded on vps MetaQuotes?
When migrating to a wpc, the auto-trade button is disabled. I want to pull this out with the code.?
Not to mislead that the auto-trade button is disabled because the EA is migrated to wps.