Martin Bittencourt / Publications
Codes
MW Download History for MetaTrader 5
Download all OHLC data history available and save it in a file, either for just one symbol or for many in Market Watch
Forum
Wingdings arrows are supposed to be misaligned?
Hi! I was developing an indicator of DRAW_COLOR_ARROW type and I noticed the arrows I was using looked misaligned. Thinking it could be something of those arrows especifically, I decided to change them to another set, and they still looked misaligned. So I took a print screen, put in Paint, added
Indicator keeps the same INDICATOR_MAXIMUM/MINIMUM set values after reloading
Hi! I'm developing an indicator of the "separate window" kind that has an input variable where the user can choose between different visualization algorithms. In one of those, I need the maximum and minimum value to be set fixed (3.0 and -3.0 specifically), while in any other algorithm it's not
Is it possible to "trimm" the ask/bid/last lines? Or only with a custom indicator?
Hi! Whenever I configure a chart to show the ask/bid/last lines, it shows a horizontal line that crosses all the chart: I wonder: is it possible (nativaly) to trimm it as to only show the line from the last candle to the right axis instead of a line that crosses all the chart? Like this: Or would I
CHART_FIRST_VISIBLE_BAR seems to give inconsistent result after rescaling the chart
Hi! While trying to code something with chart scaling and navigation, I came across the following result: The results above where produced by this code: Print ( "DEBUG: Reset: First bar before scaling: " , ChartGetInteger (glChartID, CHART_FIRST_VISIBLE_BAR )); if (
Reference for scaling the chart: intentional or bug?
Hi! I was trying to solve an annoying bug here when I found out something I'm inclined to believe it's intentional, but better to check in case it's actually some bug: Suppose I open a chart and manually put some zoom out with the scale sytem (button -). Then I move to the left, to visualize its
Error 5004 when trying to open file while backtesting and not in COMMONS
Hi! I'm trying to open a .txt file using CFileTxt class while executing backtesting. The idea is that it gets a list of datetime values which the EA is supposed to skip. When trying to open the file, I allways get error 5004, so apparently the FileOpen function is not finding my .txt file. The
Question on boundaries of spam of signals - asking just in case...
Hi! I'm planning to start a signal system as provider soon and maybe my only question remaining is regarding the spam rule : The Provider shall not use spam to promote Signals both on www.mql5.com website and via third-party services. Upon detection of spam, the Provider's account will be blocked
Bug in coloring indicator's lines with version 5495
Hi! Yesterday I downloaded the customized MT5 from [ edit ] broker here in Brazil and installed it. Today, when I was going to trade, I notice a bug in one of my indicators: the coloring was offset by 1 bar. Here is how it's suppose to be: And here is how it's being plotted: So, the coloring is
Possible small bug in compiler in latest versions
Hi! Since one of the latest versions (I won't be able to remember which, but I'm talking about last 1 month or so), I started to get the error "possible use of unitialized variable" in a code where that doesn't make sense (AFAICS): The code is as follows: MqlDateTime currDTS;
Objects like Rectangle area disappearing when zooming in
Hi! I'ld like to be able to draw some rectangles that are gonna mark support and resistances zones that may take lots of bars to be crossed, thus being relevant for a lot of time. In my tool, I do that by extending the final points of the rectangle to a whole new year in the future: The problem is
