MQL4 and MetaTrader 4 - page 333

  OP_BUYLIMIT Expiration Time  (18   1 2)
I need an example of how to set expiration time in a pending order. In this example, the expiration time is 0. I need example of pending order "Goodfor the Day Only". ticket=OrderSend(Symbol(),OP_BUYLIMIT,1,1.3104,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green); Thanks, Wackena
Does anyone have an indicator or operation like this I can use …. I'm hoping there is one out there. Thanks This is for the meta4trader. I. Think in Canada we can only use this platform. looking for an alert support and resistance function
Hi, I need help to add percent risk on capital to the EA provided because I don't understand how to add it in. Help is greatly appreciated! Thank you! This is not my EA though
  HELP PLEASE!!!!!  (6)
for(int b=OrdersTotal()-1;b>=0;b--){ if (OrderSelect(b,SELECT_BY_POS,MODE_TRADES)) if(OrderSymbol()==Symbol()){ Comment( Ask + "-" + (TSCompra*_Point) + "=" + (Ask-(TSCompra/100))); double slcompra= Ask - (TSCompra*_Point) ; if (OrderType()==OP_BUY){
Hi, I'm trying to figure out function that return true when the last 3 closed orders are loss continuously in a same day. Can anyone help me with this? bool Check3Loss{ //if last 3 closed orders are loss continuously in a same day. { return(true); } return(false);}void OpenPos(string Trade
[Deleted]
  mt4 application  (3)
Windows Phone system will be available when the application meratrader4?   Thank you, Have a nice day
Does MouseWheel Event work for anyone in MT4 ? //+------------------------------------------------------------------+//| Expert initialization function |//+------------------------------------------------------------------+string system_tag="tests_";int OnInit() {
The IP address in .srv file located config folder... it should be the data center IP. which is not the broker's trading server IP . I try using wireshark to analyze the trading server IP. I am not capable to recognize which is ? pls see attachment . the following step on connection of MT4 terminal
Dear All who are experts and newbie like me, well MT4i is copy trader and its free which copy trade from master to slave on same computer, but it copy all the trades. I want to request /ask experts is there any way that we could ha ve option programing that only profitable trades copy from master...
HI i have an EA that works of timeframe, is there a way to change the timeframe if there are more than 4 orders placed ? Also is there a script auto close the chart after trade is complete
  Waddah Attar Explosion Indicator  (171   1 2 3 4 5 ... 17 18)
NOTE If you are new to this indicator, Ihave started the strategy thread here. I do however also encourage reading this thread for some back ground. Thank you. I found this very interesting indicator created by Waddar Attar on the Codebase site. His take on the use is "Indicator...
Hello All, I want to use the moving average values of the DeMarker indicator in one EA I created. Reading some of the posts available I saw that the best option to go about that is to create first such and indicator and then call it via iCustom in your expert. So I created the following code
Hello, after installing the new operating system I have a problem with MT4. I always used to run MT4 WITH Play on mac software, if I do it now nothing happen, the Mac open Play on mac but MT4 doesn't start. Is there anyone who can help me? Thanks
Hi there, I followed all instructions to set up an EA for my demo account but for somer reason I don't see any trades made by the EA. I am using MetaTrader 4 on a Mac and I am currently based in San Francisco, USA. Does someone know what the issue might be? Thanks! Chris
Dear MQL4 developers, What would be best practice to develop pattern recognition EA which is looking on multiple time-frames at same time? My goal is to find candle pattern (using OHLC prices) on H1 chart and at the same time want to check for same pattern in H4. If/when both patterns are found
I just got this new EA and I installed it without problems, except for one! Every time I edit the Inputs and click Ok and re-open them again they are set back to defaults! I have re-installed MT4 many time but that didn't change. I thought it was only related to that particular EA, but when I tried
  EA programs MT4  (1)
I have a few EA programs and I'm looking for good settings.I can share these EA programs with you if you want.I'm just looking for someone who would help me find the best settings for these programs on different timeframes.These programs were written by a programmer and I paid for them but for your
Hi. I am currently converting an indicator into a multipairs indicator, using the same technique I used on the Keltner Channel indicator. This indicator I am converting to multicurrency is the Ichimoku Kinko Hyo indicator. I think I am finished, I just want some folks to verify this on their demo
im trying fixing an old rsi ea...but im fail ++//...need professional
Hi there, I'm a newbie and I have a problem with a part of my code. I would like to close my trade at 21h45 every day, even if the position is positive or negative. Here is my portion of code. I don't understand why it's not working: for(int cnt=0;cnt<OrdersTotal();cnt++) {
  C++ dll design  (10)
Hello. I am studying programming in MQL4. I have a question whether the pattern from this article https://www.mql5.com/en/articles/5798contains the correct syntax for the class written in C ++ for MQL4? I have a few problems and I do not know if they result from a poor dll design
Hi there,  I am attempting to validate my EA for the market.  My EA trades only the EURUSD and it is required to be attached to the 1M chart. Why is the automatic validation checking for other symbols and higher timeframes? Is there a way to work around this issue?              Test report for...
[Deleted]
hi guys, i have an issue with the Automatic Validation Process, in the Draft stage. It ends with an error (OrderSend error 131-Invalid trade volume). The validation fails there.Can anyone suggest me which part of my ea code should be checked and how to be corrected in order to eliminate that error?...
Hi I have an EA where i want to tell the code (including the Strategy Tester, if that acts differently) to skip a test if a condition is not met. I am new to MQL4 so i chaecked the web and found i could possibly use "break" is this correct and if so would strategy tester stop or just ignore one test
  For loop help  (2)
Hello friends, I'm new to MQL and fairly new to MQL5 community so I really hope I'm asking this question at the right place. I intend to upgrade this simple 3 bar entry criteria with a for loop so that I can give an extern variable later on how many bars to look for. Original code: if(Open[1] <
So i have an account with a broker and they have tight spreads on a razor account or something like that,about 0.6 on gbp/usd. The thing is if I put on a sell stop or a buy stop trade, and the stop loss is say 3 or 4 pips ,when the trade gets triggered it gets closed also ..if i put a 5 pip stop
So this is what I want to do: Send a notification to my celphone BUT i only want it to send it maximum once every x time... lets say 1 notification each 12 hours if the condition is true. Thank you
  Time[0]  (7)
Good morning everyone. I need to know what is the function "Time[0]" in MQL4 and what it do. Can someone please help me
In order to maximize trading opportunity, i entered into multi pair EA coding community. The problem in it so far is dealing with chart that are not opened in the chart window, refreshing the chart to get latest tick and most importantly getting the EA to read accurate tick data when OnTick() is
Hello. I'm learning coding in MQL4. I'm having trouble getting a string from my C++ dll file. I tested in MQL5 works without a problem. Can somebody help me? C++ code: PROJECT1_API void fnReplaceString(wchar_t* text){ wchar_t replaceText[] = L"987654321"; memcpy(text, replaceText