MQL4 and MetaTrader 4 - page 33

To post a new topic, please log in or register
Hi i am after some simple help in coding some starting logic in MQl4 I am trying to ensure that if a value is set to true then a bit of code runs to exclude certain values from being run through the EA code. If it is not set to tru then the normal program execution would take place. My problem is
Because of the new update of mt4,my plateform doesnt show a customized indicator As you can see on this snapshoot, in the directory (1) C:\..\ MQL4\Indicators, I copied (2) EJ_CandleTime.mq4 But i cant found it in my mt4 plateform under customized indicators (3) How can it be corriged? Thanks in...
I am wondering why sometime EA is not opened order in some broker. Broker A is OK. But Broker B, no orders. What is the check point of the code
Hi guys, Does anyone has a tool or developed a tool/indicator to draw short trend line in MT4, just like in the TradingView.com below picture
Is there an easy way to determine the high low range going 10 bars back of an indicator?  *This is not bars.. Specifically the highest high and lowest low of 10 bars back of the indicator.  Again this is not price but the buffer value.. Kind regards comrades.
Hi Guys, sorry to bother you with so "simple" question, but I can't find [for good time already] any way to move one [or more] indicator windows, up or down below main chart window without closing it and re-opening in desire order. By closing one indicator window and re-opening it I have to...
I assume that for meta trader, chart will be updated when the real time tick data is arrive. Maybe Meta trader keep write the rate information gathered from the tick in the binary text file to feedback to the chart. However, if the Meta Trader terminal is shut down for many days and  the user...
  Price Per pip (96   1 2 3 4 5 ... 9 10)
This is driving me nuts, I have been looking for months now for an existing algorythem that does nothing more than calculate the Price Per Pip, regardless of the pair it is on. I have found 2 really good money management strategies that are both dependent upon this value as a way to precalculate...
Hi All, I am trying to figure out an EA which updates its pending orders if current price pass the SL level of pending order both for buy and sell orders. As you can see below pic current price is below the SL point of pending orders. Therefore I want to modify new updated pending orders with
so guys, i have been using my mt4 mobile to receive alerts from my desktop mt4,until yesterday i have not been receiving notification. i have unistalled mt4 on mobile and reinstall. closed the desktop and tried it again,still no avail. how do i fix this
Hello guys, I am running 32 terminals on windows 7. IF i try to run more than 32, the 33rd terminals does not launch so i assume the maximum allowed terminals to run is 32
This is an EA I worked on , but it did not work as well as I had hoped. Most if not all EA's I have made are like this, but they may still be interesting to someone, so I will share some of them here. This first one was supposed to find a combination of the previous N (eg.7) losses (where the SL was
Hi all, I am looking for what I call a "What's the worst that can happen" MT4 indicator" In indicator that shows on the screen: 1. Current balance 2. Current equity 3. Projected Balance assuming all SLs are hit. My situation is this: I usually have a lot of trades open and use a trailing stop. To
Hello im new here on mt5 forum, not sure if this is where im meant to be but cant find the Mt4 forum, Ive been using and programming Mt4 for quite a while, now installing to a new computer and the Mt4setup.exe file is installing mt5 instead which is just wierd. Ive tried downloading the mt5 setup to...
I want to teach my trading panel to change MT4 color scheme programmatically. I need to change background color, color of bars, etc (I already know how to change color of graphical objects). I couldn’t find how to do it. If it is not possible to do it in MQL4, then it should be possible using
Is there a way to sort the accounts in the accounts tree in MT4, I would like to have mine in alphabetical order of server name
Hi friends, I'm trying to install MT4 platform of different brokers and I faced a problem during installation.  I just installed metatrader 4 of some brokers without any problem but for some others at the final stage of the installation a window popup and requires me to enter the proxy server...
Hello, I am getting a strange issue with a custum indicator I have to work with. I want to print the value of one buffer of the indicator I am using for the EA I am coding, but as shown in attached image, I get empty value number after 2 candles which is right the value I use in iCustom function for
Hi there, I was wondering if it was possible to get a list of input parameters given to an EA or Indicator? Right now I'm logging my EA's settings to a new file automatically whenever it detects that I'm using different settings so that I can look back and see what I was using in the past.  However,...
hi , i need open buy order when the BID gets on my specified price ! can you help me ? or how to change ordertype ? example : i open order BUY LIMIT and whe order opens i want change it on the BUY
I found a new/indicator I want to test out on my META 4 Platform. How do I load it up to test/use? Thanks in Advance, Mike
I have a few indicators that are very good but i can't make them conect to mt2, can someone help me please
Hi All :) writing a custom indicator I came across a problem... hot to place text in the right position. As I create text object I can see that the text is justified "bottom-center" and I did not found any parameter to change it :( I need my object text to be aligned "mid-left"... or otherwise the...
If you have this in your code how can you call 'Period' to calculate SL TP or say MA which relies on this ATR value? ATR is dynamic and I want to capture the value with every tick for the next dynamic calculation. Thanks void OnTick(){//---double atr = (iATR(NULL, _Period, Ind3Param0, 1) *
We are working on tools for calculating potential draws on grid systems. We need a dynamic calculator in spreadsheet format or the formulas to build in excel, which can be then coded to mql - it needs to account for spread, pip value, and new orders which would be opened if price moves. This is not...
How to calculate the maximal draw down truely ? Where Max draw down is based on Equity or balance ? Why the rules: MaximalDrawDown = Max of (Maximal Peak - next Minimal Peak); and  MaxDrawDown % = MaxDrawDown / its MaxPeak * 100% ;why these rules are differents of the max drawdown displayed on...
Hi, Can someone please tell how to put some text vertically or diagnolly starting from the High of each bar on the current chart I tried below code but it it showing somewhere in the middel of chart. ObjectCreate("test",OBJ_LABEL,0,Time[1],Close[1]);ObjectSetText("test",DoubleToStr(AccountBalance()...
been asked for this a couple of times by pm,so here it is
  Spread Indicator (26   1 2 3)
Hi traders, several times traders from forums ask if there is an indicator simply showing the current pair's spread. I already programmed such an indicator for my own use and decided to contribute it to the community. Feel free to comment! By the way, it's also posted @ codebase.mql4.com Indicator...
  Filter Hours of trading (25   1 2 3)
This is currently working as expected. If is outside this time range the EA does not trade. if((Hour()<=StartTime || Hour()>EndTime))return(0); //Preferd Trading Hours From an older EA, which I believed tested successfully but is not working. if((Hour()<=7 || Hour()>=10) || (Hour()<=14...