maindoor
maindoor
Friends 1
maindoor
Added topic Script to apply an indicator
Hi, How does one write a script that can apply an indicator onto a chart. I can set the initial parameters of the indicator from the script. Is this even possible ? Thanks
maindoor
Added topic last open handle of chart from Win32 API
Hi, How do I get the chart handle of the last open chart window from Win32 API ? This is from within win32 dll, so I won't have access to the return of ChartOpen, that also returns the handle. Thanks
maindoor
Added topic need help creating a dll file, most of the program is here
Hi, I am writing a program to open any offline chart programmatically and this works in recent mql4 builds, but I need a dll out of this so older builds can use it. Can anyone who is familar with win32 programming help me fix the 3 or 4 compilation
maindoor
Added topic import question
Hi, I just coded a library 'mylib.ex4' in build 840. and moved that library to build 509 and compiled an indi using that library. It compiles fine. The I move the indi to build 840 and attach the indi to a chart it says: cannot load external program
maindoor
Added topic Chart display question
Hi, Whenever I open a chart using ChartOpen() in MT4 the last bar on the chart is on the left-most corner (meaning the entire chart is empty except for one bar on the left of the chart) . Then I have to scramble for page up / down to get it in the
maindoor
Added topic Chartopen error
Hi, I'm using an old mql4 editor (build 509) to compile and modify an existing indicator and would like to use ChartOpen() . All I need to do is just compile so I can copy the ex4 to the new MT4 (build 840) and use ChartOpen like it was intended. I
maindoor
Added topic Open an offline chart programmatically !
Hi, I have the following program from the net modified to open an offline chart. But all it does it open the offline chart-list. The key down and selecting the chart-list entry does not work. If someone who is familiar with windows programming please
maindoor
Added topic Report the price of a horizontal line
Hi, If I manually place a horizontal line on the chart, how do I report the level where I placed the line to my EA ? How do I even identify the line ? Thanks
maindoor
Added topic Chartopen() question
Chartopen() is not able to open offline charts. Is there a programmatic way to open offline charts
maindoor
Registered at MQL5.community
maindoor
Added topic Programmatically open multiple charts
There is this code to programmatically a chart https://forum.mql4.com/24948#194891 But a call like this: ChartWindow ( "EURUSD" ) ; ChartWindow ( "GBPJPY" ) ; ChartWindow ( "AUDUSD" ) ; only works for the first symbol, the second and third window
maindoor
Added topic viewing hst files
Hi, Is there an external program to view hst files ? For ease of workflow, I would prefer not clicking so many buttons in MT4 to view hst files. Is there any other third party programs to view hst files
maindoor
Added topic Confused about features of this indicator
I want to use a custom period multiplier starting from a candlestick that I specify rather than the current candlestick. For simplicity lets say there are 11 bars in the current 15 min chart with the 11th bar being the most recent bar. I want to see
maindoor
Added topic CSV file to USB drive in Meta-trader 4
Hi, I have MT4 installed in a usb-drive for portability purpose + I don't want to install it on windows as it is not mine. I write the file in MT4 and read it when the file is written. But sometimes when the file is closed by the MT4 indicator and I
maindoor
Added topic copyrates: Invalid function parameter value
Hi, I Have some code like this: MqlRates rates[]; datetime   starttime = iTime( "GBPUSD" , PERIOD_M1 , 0 ); CopyRates ( "USDSAR" , PERIOD_D1 , starttime, 20 , rates); I get the following error 4051: Invalid function parameter value. I've
maindoor
Added topic EventSetTimer: Internal error
Hi, I have the following code for a oneshot timer: int OnInit () {    if ( EventSetTimer ( 3 ) == false ) {        int lastError = GetLastError ();        Print ( "Timer init
maindoor
Added topic Converting a candle on chart to type Mqlrates[1] on click
Hi, Lets say we have something like this:  void OnChartEvent ( const int id,         // Event identifier  
maindoor
Added topic Error 4054, what is wrong with the following code
Hi, I get incorrect series array using (error 4054) in the sleep below, most of the time. Am I doing the return handling correctly ? I have code like this: MqlRates rates[]; int copied; ArraySetAsSeries(rates, true);     
maindoor
Added topic zero divide in my EA for charts that are not yet opened in MT4
Hi, I'm trying to compare two candles. How much percentage is one candle compared to the next. for that I am doing something Like:  open1 = iMA(symbol, PERIOD_H1, 1, 0, MODE_SMA, PRICE_OPEN, 0); close1 = iMA(symbol, PERIOD_H1, 1, 0, MODE_SMA
maindoor
Added topic Autoload indicator after a compile
Hi, Is it possible to automatically re-load a loaded indicator say after a compile ? It is possible to reload, if we open metaeditor and click on compile on any of the files. It doesn't matter which file, meta-trader will refresh and re-load the
12