MQL4 and MetaTrader 4 - page 637

Hi Experts, I am making a Robot and i want to make all Ordercommision and OrderSwap calculation before setting its takeprofit in pips.... Example, I want to Calculate OrderCommision, OrderSwap, Spread and TakeProfit altogether without taking minus as Profit... This -Take Profit is setting back my EA...
[Deleted]
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.
[Deleted]
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...
[Deleted]
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 !!
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 "
[Deleted]
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
[Deleted]
  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.
[Deleted]
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
[Deleted]
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...
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...
[Deleted]
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 
[Deleted]
Hi, I found this EA: https://www.mql5.com/en/code/10483  It's great but I need help with one simple thing - I want that just one line will be writtento the file. it's mean that every time I will open the file I see only 1 line, the last tick. Only the last tick! In the next tick the current line...
[Deleted]
In this picture the blue line is the result of the code. The red one is the result of dragging the RSI indicator to the chart. iRSI(NULL, 60, 03, PRICE_OPEN, 0) - iRSI(NULL, 60, 14, PRICE_OPEN, 0) Why is there a difference? Any ideas how to fix it?
I want to implement an MT4 multicurrency expert and I have a problem with Bid and Ask prices for all the symbols (with the exception of the one where the expert is attached). I looked for that in the forum and the answer is that I have to use MarketInfo() but that's exactly what I'm doing... I