Martin Bittencourt / Publications
Forum
Misterious random, general and persistent lag in real time account
Hi, I'm here asking for help in trying to understand what could possibly be the cause of a curious lag problem I'm experiencing in the last weeks. So some weeks ago, I opened my real time account of a certain Brazilian broker to trade in the futures market and noticed it was laggy: the chart wasn't
Possible bug in TimeTradeServer
Hi, I'm developing an alert/alarm system which is supposed to trigger when a certain datetime set by the user is reached. For debugging, I'm using my scenario here in Brazil where the stock exchange's and broker's timezone is GMT-3h, the live market opens at 10AM, the futures opens at 9AM and I'm
MT5 Tester producing false "incorrect input parameters" error
Hi, I have an EA that has a strategy which includes 2 integer input parameters I can change to do backtesting. So I did some tests varying between ranges I know are possible (one is a switch-case from 2 to 4, the other is a count of candle bars that have occurred since the start of the last
Expert froze when pending order was executed right after order to update stop loss was send
Hi! Today I experienced a freeze in my EA when updating a pending order's stop loss and I'd like to know what can I do to avoid this situation in the future. So, by what I noticed, when we send an order to update the stop loss of a pending order, the MT5-broker system sends 4 messages like this: DR
Terminal failing to completely reload unanchored charts' positions
Hi, I'm trying to create a "trading desktop" using 3 monitors/screens with lots of unanchored charts (I hope this is the name; I use MT5 in Portuguese). When configured, the positions are as follows: So the terminal with 2 anchored charts lies in the middle monitor/screen and the unanchored charts
Trouble finding viable remote desktop software that is fully compatible with MT5 Terminal
Hi, I usually manual trade using a notebook. Recently I noticed a need to have remote access to it for trading, something that would include the ability to press (hot) keys over a chart. Since my notebook has basic W11, thus no native Windows Remote Desktop, I'm need to use a third party system such
While in execution, is it useful for an EA to ask for current tick more than once?
Hi, I've a question which I guess I know the answer to it, but just in case... Suppose I have an EA with the OnTick function. When that function is called, it means a new tick was created with a certain price value. Then the code inside of the function starts to run. Now suppose it takes some time
Handling multiple plays of PlaySound across different indicators
Hi, I've created a number of indicators and EAs that use PlaySound() function from time to time. What I've noticed is that if two or more of such applications try to play the .wav audio at the same time (e.g. right after the start of a new bar), the second call to PlaySound suppresses the first
Little help with macro definitions for debug messages
Hi, I have many Print debug messages in some of my codes I'd like to have them removed when compiling a "relase version". In order to avoid comment many lines, the normal strategy I have in mind is to use preprocessor directives as follows: #define DEBUG_MSG #ifdef DEBUG_MSG Print ( "Test" );
EA getting different readings of indicator between Visual and Optimizer simulations
Hi, I'm facing a strange problem. First, I developed an indicator that has nothing special to it: 4 buffers, two with data and two with colors, that plot buy and sell arrows in the chart. The following picture is the indicator attached to a chart of the WDO$N symbol (Brazil) in 2019: As you can see