MQL4 and MetaTrader 4 - page 352

Hi. I am converting a single currencyindicator to a multipairs indicator and I would like to know the correct way to proceed. The indicator I am working on is a keltner channel, which works ok on the current symbol, however, I don't fully understand how to use IndicatorCounted() on a external pair(a
On Debian XFCE Buster Wine MT4 on both the Terminal and the MetaEditor we need to press ALT every once in a while bc the key gets "stuck" in a weird glitch. Anyone got a fix? Would be so great if they did a native AppImage https://appimage.org/
Does anyone know why if I run exactly the same backtesttwice (with the optimizer) the results, the order in which the passes are made ... and so on, are different? LAUNCH-A: LAUNCH-B
I am a beginner, would like to inquire coding EA Condition 1.After pin bar close price "+" 3 pin bar >>> open "Buy" order at pin bar 4(Open order at open price) 2.After pin bar close price "-" 3 pin bar >>> open "Sell" order at pin bar 4(Open order at open price) 3.EA open only 1 order per time and
how to get the account balance and equity to work in strategy tester ?Not the "real account", but in strategy tester. Looking for indicator that displays these values. Any reference is appreciated. Thank you
Dear Fellow-MQL-Afficionados! I started with MQL4 for about two months and have been carrying out some more orless successful experiments. However, I keep running into problems as soon as I try to use the function: iMAOnArray! In order to try to really understand this function I did some...
Does anyone by any chance have or know of a Profit/Loss alert indicator/EA, that would send an email alert when for example, Profit/Loss reaches -15 or any other custom negative number? Above an X amount would be nice also, but yeah
Hi all, Can someone help me with this indicator? I am using IC Market and mt4, but it seems to have an error. It wont create an ex4 file even if I already copied the indicator in the indicator folder of MT4. I have also restardet the program several times but to no avail. It seems to have an error
Dear community, i would like to announce new free software for the community. Its called "EASetup" and its able to create installation software for Expert Advisors, Indicators, Scripts, Sounds, DLL Files, Executable files and many more file types. Here is an overview about Features: Support of...
Trying to update EA which has already been installed on terminal (on my VPS so same terminal etc) and says it's going to use one of my activations any reason why
  Back test  (2)
Due to the backtest by loading the data into MT4 and converting to different time periods. At first it was good but then later became n / a every time, so I would like to give suggestions for fixing
Hi All, I wrote a simple EA and back tested it and it game a loss. I tried to debug the EA by putting the good old Print statement. when I ran the EA again on the same currency and same period, the results turned to profit! just simple print, compile and then back test again and the whole result is
Hi all, When an indicator such as the "Awesome Oscillator" has an email notification in the input section how do I set up my Mt4 account and my email so the indicator will send me an email to my mobile when there is a signal line cross for instance. I don't want the ordinary alert for bids
Hi, I have created a bunch of EAs using Strategy Quant and am backtesting these in MT4 on a demo account. Originally, i wasnt getting any trades created at all and i checked the journal, it said there was not enough money on the account. I chucked in a million demo pounds and the trades were
Hi guys. when we change timeframe or close metatrader paltform, OnDeinit() function is called. I need to code whether timeframe is changed or Meta Trader is closed. Is there any way to check and distinguish this difference
Every time I try opening a trade mt4 says trade disabled please verify operation parameters and try again later
These 2 EA's execution speeds are very different, I take it due to the fact that in first one there is the declaration at top and in the second one there is only the declaration inside the OnTick() function. Is this all there's to it
I just found out about op_buy_limit and op_buy_stop. In my current understanding op_buy_limit and op_buy_stop fall under pending order, but it is listed as position that I have when I iterated OrdersTotal(). So this make me confuse about mechanic behind it. If I want to find out, just opened
Hi I'm a complete beginner on MQL4 but using what ive learnt so far, i've built an EA which puts a strategy ive developed into practice. However, after figuring out how to only trade once per bar, I realised that the trade only opens at the beginning of the candle eg. at 10:00 rather than when my
Hello all First I am sharing a code I wrote to format currency amounts with commas. Secondly I could not find this anywhere in the documentation but I'd like to simplify it. string sCurrency(string sIn){ bool bNegative=((double)sIn<0?true:false); if(bNegative){sIn=DoubleToString(MathAbs((double)sIn)...
Hi everyone, I'm not able to change separator when I create csv files, COMMA is always used as separator; I used the following: int Handle = FileOpen("fileName", FILE_CSV|FILE_WRITE, ); // CSV created with COMMA separatorint Handle = FileOpen("fileName"
I think it's just posible to make it by using OrderComment or so, but no idea about how to do it. This code close orders partially till exhausted: if(Bid>OrderOpenPrice()+(OrderTakeProfit()-Breakeven)*(PartialClose2/100)){
I'm looking to place an order once the stochastic %K is below 20, the slow ma is over the fast ma, then check for an additional condition for the stochastic. If this occurs I want the for loop to look back "i." number of barsback to see if an additional condition occurs within that range. Can
[Deleted]
Hi, I m using MetaTrader4 Administrator to send reports to my clients. However, i couldn't send reports to "Gmail" accounts. It gives an errror message. Is there any way to send reports to "Gmail" account. How should fill in the "smtpservername" for "Gmail" account. Thanks in advance, Balaji G
Hi, I am learning to code. Wrote this EA to call an indicator. It works fine. But, in 'Print' on a down trend, iCustom_1 returns an EMPTY_VALUE and on an up trend, iCustom_2 returns an EMPTY_VALUE. Could someone tell me what I've done wrong. Thank you for the advice in advance. Harvey_Trading
do you guys have the adx indicator to show on the chart as the value of the adx ? just as a number i mean ,on the chart ..without having the adx open below the chart
Hi, I'M not very skilled in MQL4, and havig problems with the lot size in my EA, where souldn't be to orders open with the same Lot Size at the same time. I made a For loop that finds if there's an open order with the same Lot Size as the intended one, and if its true, adds 0.01 to the lot size, but
This seems like a small problem and maybe it is but I've been struggling with it for a while and have finally given it. My ea opens 2 orders on buy and sell signals. First OrderBuy1 with sl and tp, the OrderBuy2 with only sl. OrderBuy 1 can close with tp and sl but OrderBuy 2 is supposed to be
Please help. Thanks! double BandU[]; double BandL[]; for (int i=1;i<5;i++) { BandU[i] = iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_UPPER,i); BandL[i] = iBands(NULL,0,20,2,0,PRICE_CLOSE,MODE_LOWER,i); } I want to caculate
Hello, I am a forex trader now. I've read in some forums currently that forex trading is completely illegal for Indian residents as per RBI guidelines and it may cause to jail. I want to know that how to overcome this problem. Can anybody provide any legal solution on it? Thank you.