Richard Read / Publications
Forum
iBars() Stress Test
Hi there, I'm running into problems creating an EA that runs through history, fetches a bunch of trade data and then exports that to Excel. The EA works fine except that I seem to be getting inaccurate data when I go back to around Nov 2021 in history on the M1 chart. I have setup MT4 to show max
Compare MA (Price) Values with Stochastic Levels
So I have a template file attached, where I have a stochastic and MA loaded in the same indicator window. In the data window, the MA values are displayed as Price, and the Stochastic is displayed as a value from 0 - 100. What I would like to ask, is if there is a way to compare the values between
EA Randomly Pausing / Throttling Calculations
Hi there, New to MQL5, have coded using MQL4 in the past. I'm trying to create an EA that detects a specific pattern based off high's and lows. And then draw lines on the chart to visualize these patterns. The code goes through lots of iterations to calculate the end result, and when it gets there
Refresh Chart Data for Indicator Use
Hi there, I am trying to get indicator data from a chart other than the one that I have my EA/Indicator/Script active on. The problem is, if that chart is currently open, the data is accurate. However if that chart is closed, the data is more often than not inaccurate. I am testing this using the
Help with HTTP Post
Hi, Hoping someone can help me with this. I'm trying to send an HTTP Post with parameters , but have not used them much. How do I format/send the parameters? Where do the parameters go? Here is my basic code so far: void OnStart () { //--- string headers = "Content-Type
OrderSend Error 4109 - Trade is not allowed.
Hi there, I manage a number of VPS's with EA's installed on them using. All using the same EA. I come across a problem where some of the EA's will give a 4109 error when trying to open trades. This does not make sense to me as I have allowed live trading in the options and the EA settings, I have
Wininet.dll for MAC
Hi there, I don't have a MAC, but want to know if it is at all possible Wininet functions on a MAC? I have an indicator, that I want to use to check if an account is active/inactive via a URL, but WebRequest() is not available for indicators. I have the following code running successfully for a
Changing MT4 settings via MQL4 or some other script?
Hi! Is it possible to change MT4 settings, such as "Allow DLL" through an MQL4 script, or other script? Which file stores these settings? Thanks Richard
Speed up Object Creation Code
Hi, I have an indicator, and part of the code draws trend lines on the chart. There are roughly 200 of these lines on each chart, and i have 12 charts running at once. When I change timeframes, obviously all the trend lines need to be redraw, and with 12 charts open it its very sluggish. Is there
Speed Up Object Creation
Hi, I have an indicator, and part of the code draws trend lines on the chart. There are roughly 200 of these lines on each chart, and i have 12 charts running at once. When I change timeframes, obviously all the trend lines need to be redrawn, and with 12 charts open it its very sluggish. Is there