Forum

mql4 chart min max

How do I set the following indicator parameters via MQL4 code in a custom indicator? The only property that I have been able to find that seemed appropriate was only for the main chart and not the custom indicator window ChartSetInteger ( 1 , CHART_SCALEFIX , 0 , true ); ChartSetDouble ( 1

file locks

I have a simple MQL4 program that creates a simple one line text file for each minute with the datetime/open/high/low/close values. I then have a C# program that copies the output file from MQL4 to a network directory so that a secure/isolated pc can process the values in a database. At the end of

show database calculated line in EA

I have an EA that can connect to a database, run a stored procedure and display the results onto the charts. But so far I have only been able to display objects such as OBJ_TREND & OBJ_TEXT which only have one or two x/y coordinate values. I am now trying to get those results into an indicator

#import - file not closed

I am trying to connect MT4 to SQL Server according to the following link (https://www.mql5.com/en/articles/1533). When I try to compile a basic script to import the dll, I get 'msado15.dll' - #import was not closed. #property copyright "" #property link "" #property version "1.00" #property

open high low close not matching charts

When I run the script below my values on the chart do not match the output. I am using NULL for the symbol name parameter of the CopyTime function. According to the documentation I thought that meant the current chart's currency pair would be used but they do not match. I have included the script

offline chart values

I am trying to download historical indicator data and open/high/low/close values to a .csv file. When I run the following code on an offline GBPUSD 5 minute chart (see screen shot) I am not getting the values I see in the chart. Here is the last line in the .csv file which matches the datetime of

offline chart

I had imported M1 data from 2000 to current in the history center but I cannot get that data to show up on an off line chart. Screen shots below show history center with all of the data but the open offline chart screen does not show that data being available

date range of downloaded data

I am trying to download historical indicator data. When I use the CopyTime function with the start bar at 0 I only get the most recent couple hundred bars. When I try to download older data I don't get any data. //+------------------------------------------------------------------+ //|

current chart

I only have 1 chart open GBPUSD H1 when I run the code below, but the value I get for the closing price does not match the chart. The output file (attached) gives me '2018.01.30 11:00|1.41090000' but the closing price for that 2018-1-30 11:00 is 1.41258 and not 1.4109 #property copyright

downloaded data does not match chart

The data I am getting from the iBands, iMacd nor Close() are matching my charts. I ran this on H1 GBPUSD and the values in the output file do not match the chart //+------------------------------------------------------------------+ //| Custom