MQL4 and MetaTrader 4 - page 261

To post a new topic, please log in or register
How to store the last order type buy or sell in to order to be used as controller for other operators/expressions? and which type of declaration should be used? Global or Local variable?
forexryk
I have profit able forex Trading system that work on all broker i have scalping , Trend, long term trend and short term trend system if any person interested to account manage then send me skype id for more information the system result you can check below if you want to more info send your skype...
Hi all,   I am trying to use an indicators signal in an EA, when the indicator signals I would like to place an order.   Can someone please help me out here,   if (G_time_244 != Time[0]) {      if (G_ibuf_200[1] == 0.0 && Gi_248 == FALSE) {         if (DisplayAlerts == TRUE) Alert("PZ Day Trading"...
In my EA, a new order is open only after a previous order isclosed and there is only 1 order open at any one time.  The rule isfollowed well according to back test. However, do you know why the curves ofBalance and Equity aren’t completely overlapped in back test?   Please refer to the screenshot...
The MetaEThe MetaEditor 4: Problem saving file to MetaEditor 4, as it ends up producing *.ex4 in Version5. This is not suitable for some users as brokers have not converted to the newer version of Metatrader. Please help as file need to be executed in the version 4.thank you.
Hello,   Thanks for reading this post.  Currently, I am automating a trading strategy, and we have backtested the strategy, and have validated it by backtesting through other software and checking that the trades match up; however, even though the results in are backtesting are matching up, when we...
Hi ,   apologies for the basic qn but I'm used to teh JVM doing this magic for me. I have a function that is called OnTick, it creates a few object instances, makes calculations and passes on the object reference to a controller function, controller does his thing and exits/finished. simplified code...
hi iam started learnig to write a code need to write this  if previous 1,2,3 bars highest of high value should be higher than the previous 4,5,6, bars lowest of low . anybody help me !!
Can somebody please post a very simple example of a) an EA that uses iCustom to get 2 parameters back. No code is needed to do anything with the parameters,except perhaps print them b) the corresponding indicator that produces the 2 parameters. The code to producethe contents can be hard-coded...
I like to create a filehandling class. It would be nice if some member functions could havethe same names like the normal file handling functions, i.e.FileWrite, FileRead. But a class would always call the memberfunctions with that name and it would not be possible to call thenormal functions....
Please refer to the EA log printed below. I found "136" means "Off Quotes". Does it mean that my requesting price was re-quoted? Or is it just a slippage?  Moreover, how to know if my EA is experiencing re-quote or slippage? How to know if re-quotes happen to me?    2015.09.29 09:23:08...
when ea runs ,on the terminal i get this message "indicator is too slow ,please rewrite it "
Hi All, There are default values in MT4 when creating an alert, like "maximum iterations = 5" How can we change this to a different value; its irritating that for every alert, we have to manually change the default value. Thanks
gilmt5
  alert edit (5)
How can i remove check in check box as default setting? and i want to change timeout and maximum iterations as default setting.
Machine learning is a powerful tool for not only coming up with new strategies (like we do in TRAIDE) but also for improving your existing strategies. In this article, we’ll cover adjusting your position size using a random forest algorithm and turning your strategy on an off...
Hi, I want to learn how to do programming in the meta trader 4 platform. I tried to download the MQL4 book from the link below: https://book.mql4.com/ After downloading, there was no content in the book, I got a message saying navigation to the webpage was canceled. May I know how I can download the...
Paying for virtual hosting and signal subscriptions in MetaTrader 4 has never been easier — now there's no need to have money on your MQL5.community account. Select a preferred payment method in your platform and make a direct transfer from it. Thousands of traders use virtual hosting...
hi guys, Is there any code in mql4 to enable the user to change the the stochastic's predefined level ( for example use 30 & 70 instead of 20 & 80 ) directly from the inputs ?  thanking in advance for your guidance 
Hello, I am getting an error 131 on build 880 when I try to do backtest offline.  How can I solve this problem, which occurs only on few markets, not all?  Thank you in advance.   
Hi all, I have a problem with Renko charts in the new MT4. I’m using Renko Live Chart v 3.2 in the OLD MT4 version, but I don’t see the M2 chart in the offline folder in the NEW MT4 version. I have read this article https://www.mql5.com/en/articles/1387 and make the suggested adjustments but it...
Hi, since the last terminal update to 890 I do have several problems. A serious one is that my tries to load the new-file of the week fails: #import "wininet.dll" int InternetOpenUrlW(int,string,string,uint,uint,uint);#import ...  string strUrl = "http://www.forexfactory.com/ffcal_week_this...
Say i have a file: "DOWJONES.txt" the file is updated from time to time through email scripts whenever the file is updated, it needs to be read by an EA and the new values must be loaded. FileGetInteger() can tell me if a new file is present by checking the  FILE_MODIFY_DATE.  So I'm cool with that...
Hello I searched in this forum but I could not found a topic talking about it. I´m programming an EA that has a neural network. I structure the code to function like a network and developed a specific architecture according that I experienced in the market. I´m using as a model the article made...
What could be the issue?     ZEROAM= FromHours-4;     THREEAM= FromHours-1;     threeAM=0; while( TimeHour(Time[threeAM]) != THREEAM ) threeAM++;     EJHigh7To10 = iHigh(NULL,PERIOD_H1,iHighest(NULL,PERIOD_H1,MODE_HIGH, THREEAM-ZEROAM+1,threeAM));     EJLow7To10 = iLow(NULL,PERIOD_H1,iLowest(NULL...
  Hide OTH (3)
Someone asked me an interesting question: Is it possible to Hide Outside Trading hours? So if you show DAX, that only bars during Frankfurt trading hours are shown and rest of data is discarded - that is: price is moving, but no bars are formed. I am looking for omitting data (ie bars), not merely...
I have created a new squeeze indicator for MT4 RA_Squeeze_V1. Check these out and email me if you want it - aravishstocks@gmail.com. Another one:
  WebRequest (8)
Next and last question and for this Forex Game i'm building ;-) And it's going to be fun and might even be profitable for the players! Can anyone give an example of how to send some data with the webrequest? The data I want to send is a simple comma seperated list with doubles: 1283762323234, 1...
Hi Everyone   While not new to trading, I am new to programming.  I want to learn how to do it and I do have the MQL4 book and reading it.  I thought that I would start with something really simple and basic and use this as a base to build a more sophisticated EA, but I cannot even get this EA to...
noobshow
Hi Forumers, I've been trying to work on a Maths Since yesterday, but it seems it is failing me. I need to get Order Commision in Pips Value. How do i go about calculating it? I've used OrderProfit() + OrderCommision()+OrderSwap() before, but this are just in Currency values.. I want Pips Value of...
MQL4 RSI indicator is updated once in 30 minutes. why? can I get the current value? I'm using the API call: double rsi = iRSI(Symbol(),0,RSI_Period,PRICE_CLOSE,1);    Thanks, Eli   eli@intel-agent.com