MQL4 and MetaTrader 4 - page 90

In order to implement two-colored line in MT4 custom indicators, I try to use two buffers, each with a different color. the code looks something like this: // if line should be red { if (buffer1[previous_index]== EMPTY_VALUE ) //this is to connect empty space between green and red line
  Sleep function problem  (24   1 2 3)
i wana build EA with Sleep() Function to delay 1 hour between each trades ..but i dont know why its dont work can somme one slove it plz?? if(LastClosed("CloseTime")==TimeCurrent() ) { Sleep(36000000); } //+------------------------------------------------------------------+ //|
  Font Size-MT4  (1)
May I ask; does anyone know how to restore the font size in MT4 to the original size? Mine has changed to an extremely small size. I'd appreciate any assistance; thank you
How to create objects with the same distance with the price in different time intervals? For example, the distances of fractal arrows at different time intervals on the pixel scale are the same for the price. With what function or coding method can this be achieved
I'm very puzzled. I programmed this awesome expert advisor that produces the resultson this image. Details can be viewed on the attached file ... I've been testing this on almost every currency pair that MT4 has. I'm using thesoftware as provided by InterbankFX. My strategy is similar to scalping,...
How can I define the fractal in the chart and use coding to assign which fractal to use
I just want to know how to recognize the rectangle object is on the current bar. Is it possible to know the rectangle is overlapping on the current or previous bar? This is to use buy and sell entry signal
On Mac Ventura 13.1 Out of nowhere mt4 stopped working on Mac for no reason, ive tried reinstalling and making sure its the most updated version, nothing is working. Every time I open it it shows the dot below the app before its about to start on the Mac home screen and then it just shuts itself
  Writing an effective advisor  (408   1 2 3 4 5 ... 40 41)
With the help of one of the topics in the MT5 section of this forum, the idea of creating an effectively working Expert Advisor that generates real profit was born. The idea is as follows: I start, give reasons why, then I make a starting code, explain all the nuances you need to know, you test it
I have an issue related to getting the difference between 2 devs over different timeframes during looping on the current chart bars, When the current bar of the current currect changed it affected on the previous bar not the current bar of the histogram I know that happened the because the different
  Consecutive Candle Indicator  (15   1 2)
Hey guys! So i was looking for a "consecutive candle indicator" and i stumbles upon a post by sharingan9. Then Mladen helped him out and the indicators works perfect. The only thing is that i would like the indicator to have a custom input like 5 consecutive candles OR 7 consecutive candles. I would...
  MT4 CopyTrading  (4)
Hi guys! Am newbie to MQL4. I'm wondering whether it is possible for someone to copy trade other traders without having other trader's EA
[Deleted]
Hello folks, I have a simple script to open an order. I'd like to add a safety which will prevent a new order to be placed, if another Order of the same type is within a certain distance. Example in case of a Buy Order (I know this is not real code below, but this should explain what I'm looking...
some one can plz help to (ordermodify error 1) //+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2018, CompanyName | //| http://www.companyname.net | //+------------------------------------------------------------------+ double
Hello everyone. I know that Mt4 is 32bit and only runs 1 core. Nobody tell me to switch to Mt5, I am aware of that. Let's focus only on Mt4. I have several EAs, I can't edit or change them. I just want to know if a better CPU will make the backtesting work faster. I give the example a Xeon 2690
Metatrader 4 works fine through crossover/wine on my macbook. however, i need to drag and drop third party templates and indicators into the mt4 folders and i cant seem to do this. i've tried open data folder but it doesnt let me drag or drop anything
  2D array help needed...  (17   1 2)
You probably get a billion questions about arrays, and I feel like I've read a billion pages on them. But I'm getting a tad annoyed. I didn't think i was this stupid, but somewhere I'm going wrong. All I want to do is declare a 2D array with three variables stored in it. The bar number at a
I install MT4 by using playonmac in my macbook air. But here is the problem, i can't really find the folder for mt4 or playonmac. Hence i can't copy and paste the MT4 template file into the folder. What should i do or how to actually add in the template file in OS X operating system? 
Hi there! I have a EA that checks if a candle from a indicator has been 100% positive (So every tick), before he does something. Is there any way to simulate this situation so i can test the best settings? I already tried the strategy tester with extra downloaded data and 100% quality in the report
MT4 terminal getting slow after I install the EA to the charts ( its basically a trade manager). If I remove the EA then MT4 works well. I noted this isn't with respect to the particular EA, I tried with another EA as well its the same issue and works well after removing it from the chart. any help
I want to ask someone how to code below. New data 1 comes. I want to add into Array. [1] Then next a new data 3 comes. [2,1] Then next a new data 3 comes. [3,2,1] etc... Can you help
Hello everyone, I would appreciate your help since I am not so familiar with mql4, but trying my best to learn more every day. :) Thank you in advance. My goal: ArraySize (atf) should be 3, since M1, M5 as well as M15 are true. If I put the code into int OnInit () then the error "uninit reason 8"
Hello Guys, I would Like to know if it is possible to copy trading signal from My account on MQL5 to My demo account on meta trader 4, please help and thank you in advance.
hello developers I have a problem which have tried to search the forum on but can't seem to find the solution I'm trying to combine RSI and MACD , where by RSI " Apply to " will be based on previous indicator data have tried some few things any help or suggestion will be much appreciated double MC =
Hello everyone, I do not know if this question has already been posted, I used the search function with no success. Here the matter: I'm working on a future EA trading 9 pairs at the same time, but I have already two Metatrader4 running on my VPS. This MT4 are already using around 60-65% of the
Hi everyone I have a question I printed comment of an order closed by Take profit (I selected deal with OrderSelect() from trade history) I expected for get comment that i sent with OrderSend() but what i got in Print is this : my ordercomment: string ordercomment = "0" ; but what i got when
Hi, kindly I need your help as per the 2 attached files is that mean my expert is not working?! thank you <image deleted>
Hi All, I am trying to write my first EA. Ment to be a really simple one but cant figure out this last outstanding error message. Please could someone point me in the correct direction. not sure if this program will even function but wanted to give it a bash. My EA is spose to: - first look to close
I need help on any reference or similar ea that I can modify my strategy with 1. Latest trendline form 2. Latest swing high/low break 3. Open 2 order once fib retrace 78.6 4. 2 order with Same stop loss at second swing but different target Thanks
Is there a chance that MetaQuotes will include the IndicatorCreate() function in MQL4? It is very necessary function that is used in MQL5 for dynamic loading of external indicators and reading their buffer signals via MqlParam and IND_CUSTOM