my code didnt perform well. ex : if(normal logic... ){ if( !hasSentAlertOnce ){ Alert(" Alert " + Symbol() +" "+ Period()); hasSentAlertOnce= true; } }else { hasSentAlertOnce = false; } anything wrong in this code (bt didnt wrk :( alert over n over ) . still couldnt figure out
Hi All, obviuosly brokers do not offer to download years of data, so i used "History Center" of MT4 to download my data form Metaqoutes. But because my EA is time based and most brokers are using DLST, i am curious how time/price is shifted if you download and use the data lets say in summer or...
Hi,I have a questions... What function I must use for open an orden when the price reach a specific distance? Thanks.
Hey Guys,How does the code have to look like, if I want to open a Buy-Order every Monday?if(DayOfWeek()==0 {// Place Buy Order} sorry im new to mql
Comments that do not relate to the "OnCalculate Problem for Convert Candlestick Indicator to EA", have been moved into this topic.
Hello I thought that my monitor was dying but I've removed that variable. Horizontal lines appear to be different colors on my screen depending on where they are drawn. This happens if I move their location by scrolling / zooming or if I highlight and move them. This is quite irritating as I use...
Hi! Thanks ! #property strict#include <stdlib.mqh>#include <Controls\Dialog.mqh>#include <Controls\Button.mqh>extern string sVisualSettings="<<=== Visualization Settings ===>>"; // <<=== Visualization Settings ===>>extern color BuyFontColor=clrWhite; //Buy Btn Font Colorextern color...
Hi. The problem is, when I set a pending order by my EA in strategy tester with magic number 1: OrderSend(Symbol(),OP_SELLSTOP,lot*n1,sell_price,0,sell_stop,NULL,"",1,NULL,Blue); And when the SELL trade get opened in specified price, it's magic number automatically would be 1. But in my real account...
Hi, I have 3-level- semaphore indicator . Refer the attached mq4 source file. Sometimes when current signal appears, previous signal near to that current signal disappears automatically. Can anyone please suggest any changes in code so that the signals shouldn't vanishes automatically
Hi, how are you. I have a problem with a code that, under certain conditions, must determine if it is favorable to open a purchase or sale position, but only send the notice. I try to put an Alert ("There is an opportunity to buy or sell according to the case"). But the alert appears every time the
Hello, I want to close all positions at a defined time. E.g. at 23.00 I want to close all positions. What code you recommend.
-
Hello, I have just created a gmx mail account for sending mails with metatrader but the simple test does not work. I have configured like on the attached picture, where is the problem? Maybe I have to use my internet access provider like in Outlook, isn't it?
I have read that also others have problems with sending mails with the integrated mail function. I am using my metatrader build 625 with my gmx mail account and getting the following errror message: "Mail: 550 Insufficient security or privacy level" It is necessary to turn on Encryption STARTTLS or...
Hi, I've been working with email to sms alerts in my EA using the SendMail function. I currently have my email set up through GMX which forwards all incoming messages from MT4 to my cell phone. This all works great about 90% of the time. The other 10% of the time I get delivery delays from my email...
Hi everybody, I have some problems with email alert in MT4. I guess the config is ok but it doesn´t work. The Mt4 is 950 Build
Hi all Is there any way to remove the news candles from the data history ? most of back tests fails due to these candles
Hello MQL4 community, Does anyone know of a way to resolve http POST webrequests in the form of "https://username:password@site.com/urlhandlers..."? Apparently the MQL4 webrequest function does not accept URLs in that form (I've allowed permutations of the URL already in the options setting, before...
Is there an efficient way to exit loop? I can't relay on ticks, i have to check database every second or 2, tick sometimes have long pause. When i do infinite loop, MT4 is difficult to shut down. Can anyone help
It seems as if the values of High[0], Low[0], and Close[0] gets overwritten with the value of Open[0] when running this simple code from within Strategy Tester. For Instance, take this Init code: int OnInit() { for(int i=0; i<2; i++){ printf("Bar[%d]=%f|%f|%f|%f",i, Open[i], High[i], Low[i],...
I am trying to create a string array based on an ENUM that I created for a drop down list. The enum and drop down list work fine. When I create an Array based on the enum selected that's when I run into problems. enum ENUM_BASKET { USD=0, //USD EUR=1, //EUR GBP=2...
Now, I want a numeric data of each second from the Matatrader4. Please teach me how to do that.
Hi, I am new to this, i tried this EA but this EA does not open anymore positions if there is a position already opened, even if the open position rules are being met. btw i kinda wana do the SCALPING. so can anyone please help me out here?
Hi, I have been trying to place a trade from my Expert Advisor but so far I have not been able to succeed. My broker is Go Markets. Here are the codes I tried: int order=OrderSend(Symbol(), OP_SELL, 10, Ask, 100, 0, 0, "BO exp:300", "543254325423", 0, clrGreen); int order=OrderSend(Symbol()...
Hi all, It looks like the Close and Open arrays starts with a 1000 elements of history in it by default. I discovered this while printing out ArraySize() during testing. Is there a way to make it start bigger? Thanks!
Hi guys, my question is simple, while creating a horizontal line I'd like to make it possible for the user to move it in case my algorith miscalculates it's placing. For example when you manually create a horizontal line you can drag it up and down. But when you programmatically create it you cannot...
Hello Why in a multi-pair EA this: take=NormalizeDouble(MarketInfo(pairmajeur,MODE_ASK)+Take*MarketInfo(pairmajeur,MODE_POINT),MarketInfo(pairmajeur,MODE_DIGITS)); Gives me an error ""possible loss of data due to type conversion Malibu.mq4 426 111". (111= MarketInfo(pairmajeur,MODE_DIGITS));) with:...
Hello, I need help how to change a source code. I have Cent acount in MT4 Indicator show - 870 $ but correct valuet should by - 0,870 $. I will be grateful for your help. Mark
Hello Folks, I recently got this indicator which is pretty accurate. However, I am having trouble with the email alert. Do you know how I can modify it so that it alerts me when it changes trend? Thanks!
i declared something like "B1=Bid", so am wondering when the variable, B1 is updated. Is it every time i load the EA, or every time a new tick(price) comes in.
Hi everyone, I am seeking help to write the correct logic that can adjust the entry price for a trade, which is the nearest 25 level below each daily bar candle. For example, if the price of GBPUSD closed at 1.2966, then the entry price should be 1.2950. If the close was 1.2986, then the nearest 25

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.