MQL4 and MetaTrader 4 - page 262

Hey team, can you let me know what is wrong with this code so I can fix it? It only produce a new result after I manually refresh mt4 //---- #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 DodgerBlue #property indicator_color2 Tomato extern string
hello traders and coders, pls i want to build an ea that place a sell order when ema 20 gets to rsi level 80 and also a buy order when ema 20 get to rsi level 20 vice versal, I don't think there is anyway to place 20 ema on the same rsi window on pc, i have only seeing this happening on mobile. even
I need a help how to lock my EA/Script based on my login account name ? how to make the this script can run only account name of jeo mex for the example ? 
hello people please how possible Is it possible to place two indicator on the same indicator window on mt4 pc platform, just like the mobile version. i want to place a 20 ema on the same rsi window, this is possible on mobile pls how can i do the same on pc
Hello, I would like to have a line of code to have a Trailling Stoploss on my robot. Explanation: I open my position at 0 My StopLoss is -40 and my TakeProfit is 100 .. If my position is 60 then I would like my StopLoss to be 40 (- 20 Pips) And if my price increases by 20 Pips then my StopLoss will
Hello I'm using the .mqh files placed in MQL4\Include. I mostly use the controls and canvas for the graphical parts of my EAs. It is very helpful but sometimes I'm having a hard time to find an answer for my questions. I did lots of search and trial and error but still some of my problems are not
Hi, is it possible to download the trading info from the Mt4 WebTerminal
Hi everyone Please help professors extern int Postion_Buy_No1 = 0.01 extern int Postion_Buy_No2 = 0.02 extern int Postion_Buy_No3 = 0.03 extern int Postion_Buy_No4 = 0.04 extern int Postion_Buy_No5 = 0.05 extern int Postion_Sell_No1 = 0.11 extern int Postion_Sell_No2 = 0.12 extern int
Hello, i am facing a weird problem with my MT4. after installing any indicator in my MT4 i am getting the texts congested like the attached pictures. i have tried reinstalling the MT4 and result remains same. if anyone is already experienced the similar problem and solved please help me out. Thank...
hello people, pls i need a perfectly working renko bar indicator on my mt4, the one I downloaded from Luckscout is not working well. for example, if you set it to 10pip, if price move up ten pip above the last close renko bar it will paint another bullish block. but if price move down 10pip after
In the native code of RSI I notice that in the "main loop of calculations" the for loop does not start from the rates_total but from pos = 15. Why do I find the RSI value of index 0 in rates_total-1 instead of index 0? //+------------------------------------------------------------------+ //|
Hello, I have code which gives me profit from specific time to today. //--+ Get Profit From Specific time to Today +--// double GetProfitFromDate( int month, int day){ double TimeProfit = 0 ; datetime CurrentTime = TimeCurrent (); datetime TimeFrom = StringToTime (( string
What is the expiration pending order - code mql4
Hi! I would like how to use IBarShift() to enter in the market, I want to enter Ask if the last bar is bullish an enter Bid if the last bar is bearish in a specific hour. Thanks
[Deleted]
Hi guys, I created button by example from manual: https://docs.mql4.com/constants/objectconstants/enum_object/obj_button but this button haven´t effect click on button. Or maybe have some error? How get effect click on button...?  Thanks 
[Deleted]
Hello, is it now possible to draw buttons on chart wich can be use for trading with the new MQL4 update?
Hi, I'm was looking for an indicator, but can't seem to find one. So I created my own, but can't figure out how to get the moving average value correct. //+------------------------------------------------------------------+ //| OCHL ratio.mq4 | //|
Hi. I want to somehow simulate deposit withdrawal in MQL4. I want after a trade is closed to take any surplus above the initial deposit from balance. Ideally save this number somewhere. Any ideas
Hi all, I have an EA that I created for couple of months. Since I still learning about MQL 4 the only close and open order that I can do is based on the present time. Right know, I'm creating an EA which consist of a lagging line (shifted 26 to the left) that will be used to close an open order. My
Hello fellow trader and programmer, please I wan to know how possible is it to get the price of currency pair when RSI is at level 70, 80, or 90 and also get the price value when rsi is below 30 vice versal. The iRSI() function only return the RSI level not the price
Can anyone provide the MQL4 source file for the 3 SMA Pip Machine as it is no longer available, whilst there are many free EX4 files for this indicator. Regards Peter
hi, I am trying to make a EA that needs a standard MACD, not the one that is available with the iMACD function. I know that the MACD line is made by subtracting the 26EMA from the 12EMA, this can be easily done with the iMA function. But after that there needs to be a EMA made out of the MACD line
Hi everyone, I am a long time reader, new poster, so please be gentle. This is the first indi that I have tried to write from scratch as I always pay for the service and then tinker with the code after, but I figured that it can't be that difficult for such a simple indi. I am try to create a
My partner and I work for a company where we use their platform to manage many accounts and trade for the investors. We want to start our own company doing the same. Does anyone know how we can acquire the necessary platforms to do this here in the United States. Thank you
how can know an object is Back or Front ? i use this code but it return 0 always! long vv; ObjectGetInteger ( 0 , "FML_H1" , OBJPROP_BACK , false ,vv); Print (vv); or Print ( ObjectGetInteger ( 0 , "FML_H1" , OBJPROP_BACK , false ));
[Deleted]
I'm new to MT4. What would be reasonable backtesting time for a simple 1 or two indicator EA? Regards, MSquared
In my code to detect a MA cross and only buy when two MAs cross, it somehow does not detect a cross but still goes on and starts a position. Furthermore, these positions start by being a 'Buy', then closing, then all positions after that are a 'Sell'. What am I doing wrong? input double Lots =
Hello In this example you can see that if i do an optimization since 2019.06.13 it only shows 1 round in the Optimization Resaults and takes only 22 sec to complete it. However if I do the same Optimization since 2018 or before it does work fine showing all the combinations and its resaults, taking
[Deleted]
  Error 133  (19   1 2)
with GetLastError() i got Error 133 while trying to open an Order with OrderSend. Error 133 means "trade is disabled". What is the solution?
First I had subscribed signal in my pc. And I moved from pc to VPS and logged in vps MT4 . mql5 of course also logged in) But VPS don't received signal? How receive signal VPS mt4