MQL4 and MetaTrader 4 - page 340

Hi there, when I move a SL or TP manually, it takes less than a second until it´s confirmed and the SL or TP is at its new price. When I do the same by OrderModify(), it takes 5-10x more time. How can this be? In my log I can see, that the function is called only one time, not several times, so this...
Hello I have a pb that i can't solve : double ab =iMA("EURUSD",0,1,0,MODE_SMA,PRICE_CLOSE,pos);double bc =iMA("USDCHF",0,1,0,MODE_SMA,PRICE_CLOSE,pos); double ca = 1/(ab*bc); ab is correct (i can see it in a buffer), bc is correct too but 1/(ab*ac) return an error ! Can you explain me wghy
I'm trying to perform back testing with per-tick data in MT4. My MT4 is installed from CityIndex and I'm using the latest version of Tickstory. I'm following the instructions as outlined on this page and in this video. However, on Step 5 ( after I click the "Launch MT4..." button, though MT4 does
[Deleted]
I have just discovered that MT4's strategy tester doesn't simulate the behaviour of a stop loss correctly if the price gaps past the sl price (i.e. if a new bar opens and gaps past the sl price). Instead of closing the order at or near the open price of the new bar (which is the correct behaviour)
I am looking for a template which can show entire chart background as a histogram of indicators like CCI, ADC or oscillators like RSI? Thank you
Hello, I came across an issue calculating the Margin Required for GBPUSD. MT4 says I need $26.42 to open 0.01 Lots, but when I open that position it uses $66.06. I got in touch with Oanda, and they informed me that after Brexit the maximum leverage on GBPUSD for an account in the USA is 20:1, which...
Hi, I am using the SuperTrend indicator as part of an EA, but the indicator is very slow and is making the testing incredibly slow. Can anyone help with how to speed it up? Cheers Paul
Never seen this before, and due to the "complexity" of the message, no clue why and where. Any ideas
[Deleted]
I have been looking for a way to report this to Metaquotes but I can't find any support contact to send it to. There is no contact information on the Metaquotes website for Metatrader 4 or MQL4 support (or MT5 & MQL5 support) which is unusual for a software company. The only place I know of to
[Deleted]
Hello, I'm coding an EA and in my EA I need to detect the changes in the history pool. Is it safe to assume in MQL4 that the pool is being changed only by adding new orders to the very end of the history pool? If not, how one can detect all changes which happened in history pool since last time
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
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.
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
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
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
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 , 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
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...
Dear Mladen, MrTools, and others. I am a little frustrated because the search function is so unproductive that I have decided ask for assistance. I am looking for a chart pattern recognition indicator - such as flags, triangles etc. Also if you have some advice on how best to use the search function...
I need help to create a EA who can work with indicator : Automatical Fibonacci level. How need to work : Indcator show a sell position or a buy position . Ea need to set Instant execution on fibonacci levels .If price hit one level in fibonacci indicator , the ea set instant execution , for example