Hello experts, I have a code that includes multiple IF statements (if inside if) however I have an issue when one of the conditions is not met, the related else statement is not executed...no errors received while compiling the EA. Please advise about the correct syntax & if anything is missing in
<Incorrectly posted code deleted>
I coded this ea but there is something wrong that I can not solve. The EA should not place an order buy if the last order is Buy and it should not place a sell order if the Last orderType is Sell. Sometes it is ok but if there are many open order so there is something wrong(it place same order
I'm trying to return the current profit on an open order based on the order comment. Right now, my code below is getting the profit of all open orders as opposed to just the order with a specific comment. I have an order with order comment "Testing". So, what I want to return is the profit for only
Hi, kindly I need help to removing the above mentioned error from the following coding . <deleted> Thank you
Hello! I know that mt4 doesnt have a tick history. So I was thinking if I can make one. Like an indicator which can start recording, and displaying as a hystogram,as soon as it is loaded on the chart. I started to right something to record the ticks for the current bar into and EA : void OnTick ()
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
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); } //+------------------------------------------------------------------+ //|
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
[Deleted]
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
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
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...
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
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 =
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.