[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...
[Deleted]
Hello, I need get rid of infinite loop if((cmd==OP_BUY)&&(OrderProfit()<0)){ while(true) { result=OrderSend(Symbol(), OP_SELL, LOTS*2, Bid, 90, 0, 0, NULL, 0,0, clrNONE ); if(result!=TRUE) { error=GetLastError(); Alert("Last1 = ",error); } else...
[Deleted]
Hi, I want to display the values of the RSI from the 1 hour chart on all lower time frames, and also the values of a Bollinger Band calculated on the H1 RSI. So both values come from the H1 chart. Could you tell me what I am doing wrong please? I can manage to display the RSI but the iBandsOnArray...
Hi, I like to build indicators and strategies with ticks range bars , is it possible with MT4? I thank you a lot Robert
Situation: In a seperate window a couple of values, sometimes very different in value. Based on my user input I can reduce the visibility up to only one series. Problem: But the whole family of series still give there maximum and minimum to calculate the vertical range. Up to now I code a factor to
Hi when I Compile I get no errors or warnings but still wont work :( any help? I'm trying to get it to place a trade is the same direction if it was in profit or reverse if not. Based off last trade in history. extern double LotSize=0.01;double pips;extern...
Hi coders, the H1 chart is open. Now I would like to have screenshots from H1, M15 and H4. I do it this way: ChartScreenShot(0, _Symbol+(string)_Period+".png", 1280, 720);ChartSetSymbolPeriod(0, NULL, PERIOD_H4);ChartScreenShot(0, _Symbol+(string)_Period+".png", 1280, 720);ChartSetSymbolPeriod(0,...
[Deleted]
Dears, Does anyone know if an indicators similar to the 5Nitro+ indicator exist in this forum? I want to try it, but 200€ is a little steep for a trend indicator. Thanks for your replies.
Hello comrades, please consider the following MQL4 codes. The first function which is named "OpenWrite" is meant to write only one of USD or EUR, etc, to a text file. The second function named "OpenRead" is meant to read the content of the file. The first function actually writes to the file....
I recently purchased an Indicator from Market that I really like but I prefer it as an EA. Is there any way to code an EA to read an Indicator you place onto a chart?
Hi guys. I have a problem I can not solve. I created this code where I have a pre-alert. Buffer1 and buffer2 are pre-alert, while the Buffer 3 and Buffer 4 are the real alert. I wish I could erase the dots of the pre-alert all the times that of Alert arrow appears. I made several attempts but did...
[Deleted]
Developed EA for MT4 using <link removed > . Code refuses to run. What can i do? Any suggestions would be most appreciated
I have noticed that all my charts in mt4 using ichimoku, seem shifted when compared to browser versions of the charts provided by trading websites. Why are they different. Which is correct?
I am having issue with the attached EA trading multiple times per bar. I only want it to place max one trade per bar. I have tried to edit the code but it still seems not to work. Please could someone have a look and tell me where I have gone wrong? Many thanks.
Opinion - very successfull EA - $3000 account to $6300 in two weeks (could have been $9000)
(75 1 2 3 4 5 ... 7 8)
Hi I am looking for the opinion of some of the experienced people on here. I have programmed a simple EA, and it seems to work fantastic on a demo account. I know trading live is different, but what I want to know is in what way is it different and could this difference have an effect on my EA
I want my EA to only place up to 3 trades, and only once 1 manual trade is already open. Currently I have set up an external variable of TotalTrades and set this to 3. This is limiting the max trades to 3. I can't seem to work out how to set the requirement of 1 trade already open though. I...
I am currently building an EA to automate part of my trading system. However, I am unsure how to program one of the criteria. I only want the EA to place trades when all current open orders for the currency pair are all in profit. These could be both manual trades and EA placed trades. I believe I...

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.