chinaski / Profile
Friends
Requests
Add friends via their profile or user search and you will be able to see if they are online
Outgoing
chinaski
Added topic CPositionInfo Problem
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
chinaski
Added topic Looking for expert returning ~5% per year
Can anyone make suggestions ? Mean, really reliable experts. Just like prevent my money from being melted by zero rates. Thank you
chinaski
Added topic DLL newly returning garbage with MT5 build 1036
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
chinaski
Added topic CopyRates problem
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
chinaski
Added topic Indicator data not shown
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
chinaski
Added topic OnCalculate - which price passed
Hello, anyone can say what price is passed to the OnCalculate function: bid, ask or last ? Found nothing about in the documentation.
chinaski
Added topic CTrade requote
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)
chinaski
Added topic No Position id in MetaTrader5 Panel
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
chinaski
Added topic cannot open the output expert file
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
chinaski
Added topic Script-Global objects (singleton)
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
chinaski
Added topic calculate exact costs of a market move
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
chinaski
Added topic Get last date of test period
Hello, how to get the last date of testperiod from within strategy with MQL5 . Thank you
chinaski
Added topic XAGUSD costs
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
chinaski
Added topic Binary ex5 usability
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
chinaski
Added topic demo server running over weekend
Hello, anyone knows a metatrader 5 server which runs over weekend ? Thank you for answer
chinaski
Added topic Detect stop trigger in OnTradeTransaction backtest
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
chinaski
Added topic open and close values in array always identical
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 () {
chinaski
Added topic Detect Market for symbol closed
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 ) {
chinaski
Added topic Disappearing Files
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
chinaski
Added topic How to get closest Stoplevel
Hello, Have a position for Symbol x and need to know the closes StopLevel that would be accepted by trade server. How to do this ? Thank you
: