[Deleted]
Hey, I have started to learn about MQL4 and have some question. Basically I want to make some kind of IF statement that will make a trade when current price reach specific price (lets say in GBPUSD when the price is 1.4180 execute sell position) . Also I want only one trade at a time. If some one
I attempted to publish my Trades on my Homepage Then I found this program: https://www.mql5.com/de/code/1246 how can I convert mq5 to mq4? this tool was written in mq4 but is modified to mq5. All data that become available in MQL5 can be exported via this DDE interface. how can I modify dde_example...
[Deleted]
Hi, I'm receiving this error very frequently, specially in the pair GBPUSD , but in other pairs, too. I use Metatrader 4, with the broker GKFX, I don't know why this happens. Could you help me?. Thanks
I like to dimension an array and fill it with the product of the respective row indices and column indices. The following are the codes I attempted to write which obviously did not work. Any help from you please?. Thank you in advance.// I first ininialize my array as follows:int ArrayInitialize(...
Hi, I am writing an indicator and at each new bar I need the last 10 Stochastic values. For testing I put in my loop the following code in my indicator: for(int i=1; i<rates_total && !IsStopped(); i++) { if(i==1) Print("Sto = "+iStochastic(NULL,TF,5,3,3,MODE_SMA,0,MODE_MAIN,i)+"...
[Deleted]
I get no sound from my event with a position closing, stop loss, take profit. I am using MT4 on OANDA. OANDA says it's not available. I have used it on other broker sites I no it works. All the event sounds work. can help me
I am working on an expert adviser that takes decision to buy or sell depending on price and volume. If price variation of the last bar and the volume of the last bar are larger than the variation of the last few bars, then I place an order to buy or sell, depending on the price variation. If I run...
I need store EA configuration file like below: [EURUSD] timefame = 60 stoploss = 50 takeprofit= 100 [ USDJPY ] [GBPUSD] and so on. I need EA read symbol setting from .set file in block, Anyone has experience on it
[Deleted]
Hello, Im new to coding in MQL, i was was wondering if this was the correct way to work out if the stochastic was over 80 (sell) and under 20(buy) and another question when should you use a { after an if statement and should i use one with the code below? CODE double current_K = iStochastic(NULL,0
Hi all, I've observed different results on the strategy tested and was simply seeking a little perspective. I originally worked on a couple of EA's that used the same skeleton code but each operated strictly in a specific timeframe. I've attempted to incorporate them together to run simultaneously...
Hi, guys I have a problem with my ex that I can not solve. What I would like is that the EA would eliminate a specific pending order after a previous order has reached the take profit. I do not understand where I'm wrong, I hope someone can help me. void DeletePendingOrder27(){ for (int...
Hi guys, I wonder that MQL4 provides any functions or API for create a demo account on MT4 or we have to do it manually. Thanks for your reading.
[Deleted]
I try a lot to make a simple ExpertAdvisor that make a .csv file, that contains all the close values of all bars of any symbol/currency that I run in the tester. So that when the EA finish, it export a .csv file with all close price values. I read many web sites of diferent functions (FileOpen,...
Hi, I started using Metatrader 4 with a demo account and I am working on some scripts. I make changes very often and I am interested to leave the script overnight to see whether it makes a profit or loss. I would like to be able to reset the funds in my account to a desired value (in my case, $3000)...
[Deleted]
Is this an error on MQL5 or just one of those tricks to finally delete users on MQL5? Saw a Notification banning me on MQL5 till 2030, should that be called banning? I'm confused if its from one of the moderators in MQL5 forum or just an error at my end, i can't even write to Service Desk(Not...
[Deleted]
Hi, I'm trying to make a very simple code that will send 2 pending orders one BUYSTOP and one SELLSTOP ORDER every thing is working fine with the BUYSTOP order but when it come to the SELLSTOP order i get : 2016.03.22 23:56:10.883 TEST88 EURUSD,M15: Error opening SELLSTOP order : 0 i dont...
Hello, all, this would be the best in french, for me Title: "EA trade roc & stochastic " Seeking to learn MQL4 I ask source code, 1 _ To Understand, 2 _ next to come back to you Probably organized by blocks, as; variables, externs, init, deinit, rock calculation, trade, TS, TP calculation, close to
[Deleted]
Hi there I'm new to MQ4 and am looking for advice on I can create a EA with no knowledge of programming at all. Are there any applications that can create a EA with a simple GUI? What would you all suggest? thanks
it is code not working TimeToStr(TimeCurrent(), TIME_DATE) + " 00:00"; TimeToStr(TimeCurrent(), TIME_DATE) + " " + Start1; TimeToStr(TimeCurrent(), TIME_DATE) + " " + End1; TimeToStr(TimeCurrent(), TIME_DATE) + " " + Start2; TimeToStr(TimeCurrent(), TIME_DATE) + " " + End2;...
[Deleted]
Hi everyone! I am very new to this forum and writing EAs. I want to know how to close an order after a certain period of time. For example, I have placed an order at 12PM, I want it to close after 4 hours at 4PM. Even if it is a pending order that I placed at 12, I want to close/expire after 4...
Hey guys, Is there any way to keep track of the profit that the same EA has made per pair while trading? Thanks
[Deleted]
It's been a while since I've been back to coding, but the following code doesn't seem to return the values I'm looking for, just zeros. double vDO=iOpen( "NZDUSD" , 1440 , 0 ); // Daily Open double vDC=iClose( "NZDUSD" , 1440 , 0 ); // Daily Close Alert (
I am trying to calculate the actual value of my trendline that way: x1 = (datetime)ObjectGet(AlertElement, OBJPROP_TIME1); y1 = (double)ObjectGet(AlertElement, OBJPROP_PRICE1); x2 = (datetime)ObjectGet(AlertElement, OBJPROP_TIME2); y2 = (double)ObjectGet(AlertElement, OBJPROP_PRICE2); stg1 =...
I'm trying to use R->MQL library but I'm getting the following error message when I try to import it: Cannot call 'mt4R.dll::RGetDllVersion', 'mt4R.dll' is not loaded I'm in an Ubuntu 14.04 machine. This is my code: #define RPATH "/usr/lib/R --no-save" #include <mt4R.mqh> #include
[Deleted]
Hi, I am new, thanks for having me. This is my first post. I have a great strategy that works in real life, just trying to get it into code which I have learnt pretty much from scratch over the past few months. My coding skills are quite poor I would imagine compared to your standards, but I managed...
Hello comrades. How exactly can I retrieve only a cell in a record using the FileReadString() function? I have the following code. In the code I want to read only the second column of only the third row. How can I go about doing that. Thank you in advancevoid start()int AskDis;{string...
[Deleted]
HAS ANYONE HAD THE SAME ISSUE?? I jsut opened a live trading account today with FXCm, and linked it with Metatrader 4, with which i can happily log in on my Laptop. However on the app, i use FXCM GBPREAL01 server, it says "connection closed due to invalid server name". Contacted FXCM and they can't...
[Deleted]
My expert runs on the 15 min chart. However I want to check Stochastic values on the 5 minute chart When I do this I get results from the wrong time. eg At 3:15 on 22nd March I process the 3:00 candle on the 15min chart using iStochastic(NULL,PERIOD_M15,5,3,3,0,0,0,1) The 5 minute value at that time...
Hi, I have 3 indicators and I want to create a template out of them.Now I know how to do that.The problem is the indicator use 'EventChartCustom' ,which means the event subscription need to happen over precedence. For example Indicator1 needs to first initialized so that it is ready to receive...

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.