Hello, i have a problem with CPositionInfo: It seems that after on OnTradeTransaction event type= ...ORDER_ADD CPositionInfo.Select(transaction.Symbol) sometimes provides volume BEFORE this fill and sometime INCLUDING the fill of this
Hello, have a DLL with a function returning string (wchar_t*), so unicode. The DLL was not changed since long time and work 2 weeks ago with MT5. But with new build, this DLL newly return garbage. The DLL has log, where i log the value returned right
When i do a copy rates with start index=0, count=2, then rates[1] seems to be the latest bar as i tested by a small script. void test2( void ) { MqlRates
Hello, have a strange problem. Data of my simple indicator are not shown, if the outside a specific level BUT still in scale range. The code below demonstrates this. If you select threshold >= 0.9, you can't see any dot in the indicator value. The
Hello, can anyone help how to solve the requote problem. If i do a buy or sell with CTrade, i get sometimes no transaction because there was a requote. (I set also the SetDeviationInPoints to 100, would should not be the solution in real trading)
Hello, anyone knows what happened with positionid ? Can't see it in MetaTrader5 anymore. (There is a column name ID which is always empty). Also, some orders have no ticket. So no ticket and no positionid. The history shows deal and orderticket
Hello, have an Expert Advisor and can't touch to chart. No error, no message, nothing. (Experts allowed -> others work). When i open the Editor and try to compile it, i get the message : "cannot open the output expert file ". Anyone
Hello, I'd like to create a script global object, like a singleton, which is only created once but available across all ExpertAdvisors. Say, new myClass : public CObject ... Then use a pointer to the only instance of this object in all
Hello, many posts here are about this problem. However, it seems this is not solved and the desk did not answer for this so far or in russian language. The Problem: i do a trade , entry at price p1 and exit at price p2. MetaTrader shows
Hello, i tried to calculate costs in account currency for a XAGUSD move. My formula for this points * volume * point_value points is the number of basis points of this price move. The move was from 22.68 to 20.06. As a point is
Hello, i have question about .ex5 binary. When you like to protected your software, you should provide .ex5 only and not mql5. When a new version available, those binaries may be need to be recompiled. My question: Is there any problem on customer
Hello, i try to detect a stop execution in my EA. Unfortunately, i get only DEAL_ENTRY_IN provided by MqlTradeTransaction passed to OnTradeTransaction. This seems only to be the case in backtest. Anyone know how to reliable detect a
Hello, find below a smal ea which demonstrates the problem: When using CopyOpen and CopyClose, values of open and close of last index (highest) always identical. int minbarcount= 10 ; int lastbarcount= 0 ; int OnInit () {
Hello, need a function to detect if a market is closed for FX symbol . My solution bool market_closed( string symbol) { if ( StringLen (symbol) > 1 ) {
Hello, has anybody else the problem, that files below user/..../cryptic_folder/mql5/files... can disappear ? This seems to be a strong problem that suddenly - if you start MT5 next time - files are deleted or restored to an