Forum

MetaTrader4: Implementation of High price in candle and Buy Stop price

Dear forum members, This is a inquiry on MT4 and the prices it shows within candles, as well as the price specified in a Buy Stop order . I need to ask an opinion from other traders, further to a dilemma I am having with a new trading account. As far as I know - this is what I observed/understood

Stop Loss of Sell trade was hit - how?

Hello there wherever you are, I might be tired this evening..... there is this operation that I see in the terminal history but do not understand. This is within a scalping system that I am using actively. The loss isn't much obviously but the loss in understanding is always too much for any trading

Orders accepted and cancelled right away

I am encountering the following problem while trading with Oanda through MT4 using an MQL4 EA. Now after 3 days of error tracing, debugging, monitoring, watching prices live, re-reading all the MQL book etc... my modest brain is near burning out due to effort plus frustration. Pointless to use the

Expert Advisor log problem

Hi folks, I have been using MT4 + different EAs written in MQL4 for quite several months now. These EA print traces using the Print function , and I find these log under /<MT 4 install root>/mql4/Logs A few days ago, I have wanted to stop live trading for a while, and test a new set of EAs on a

How to call a MQL4 indicator with any timeframe

Hi MQL community, After manipulating one of my EA today, I noticed that the IMA function will always return 0 if it's not called with a 'standard' MT4 timeframe. For example, it returns 0 if doing: iMA(null,PERIOD_M20,[....]) or iMA(null,PERIOD_M10,[....]) The MQL doc for iMA says to use any of the

Max spread in points

There are a number of topics on this forum about checking for the current spread before placing an order. However each of them says something different, and as my brain is over loaded today I can't set my mind on a good solution. Can somebody confirm that the following is a correct way? That will

iADX values are always 0

Dear community, A EA that I have playing with uses the iADX function . When I debug I have: iADX (NULL, ADXTime, ADXPeriod, ADXPrice, MODE_PLUSDI, 0) i.e. value of current +DX always returns a value. iADX (NULL, ADXTime, ADXPeriod, ADXPrice, MODE_PLUSDI, 1) i.e. value of previous +DX always returns

Running an EA on many charts

Dear community, A strategy is more than running the best of the EAs on one symbol. I was wondering where is the limit with MetaTrader in terms of number of charts where one can attach an EA? Let's say you have developed an expert doing a few dozens of operations (which is more or less what is needed

Why is there always a difference between a signal price and an order price?

Dear MQL community, I have a little problem to solve with MQL, and hopefully someone can provide the good answer, and maybe it helps others because I really can't find a reason and a solution. So I have developed an expert, and after doing some unit testing the second step has been to test over past