MQL4 and MetaTrader 4 - page 324

Hi all, I am really new to mql4, coming from NT world. I downloaded a custom indicator which plots 2 lines (white and blue). All I want my EA to do is to go long when white crosses blue and go short when blue crosses white. However, I want it to be done only if cross happens after the one-day candle
hello guys please i need your help, i developed this EA that uses CCI and moving average filter it was all good but my problem now is that it opens trade on every bar for example if you place it on a 1H chart it will open trade on every 1 hour. please how do i prevent this from happening. Let me
Hi, first time this has happened to me but the charts for USDJPY , NZDUSD , AUDNZD do not show on screen. The charts for the other pairs I trade are fine. The MT4 platform is via IG broker. The usual MT4 page is there but all I see in the chart area, at the bottom, is the tops of my count numbers
brand new to forex. opened a demo account via mt4 app on iphone. was able to make trades yesterday no problem. Today I was not able to place trades. kept saying common error? I did not try to put a stop loss or take profit price so i know its not a math error. internet working fine. Anybody able to
When I first run MT4 or first attach the EA to a chart, the EA is loaded and initialized, but after removing the EA by "Close(x)" button of the standard library CAppDialog, the next time I attach it, it is loaded successfully but not initialized and does nothing until I change the time frame or
  Indicators Time  (6)
Hi everybody... How we can made a function in mt4 editor to count time as a common clock second by second independent of tick value from the broker
Greetings everyone, I need a little help from you .//---- ma_angle_mtf.mql4//---- indicator settings#property indicator_separate_window#property indicator_buffers 3#property indicator_color1 LimeGreen#property indicator_color2 FireBrick #property indicator_color3 Yellow#property indicator_width1
Hi I had downloaded MTsetup64.exe but my choise is for 4 version. why even if I choose version 4 does it install version 5? I'm interested in using language version 4: is it possible with mt5? Thanks Best regards Massimo
Hello I got many charts opened(USDJPY,GBPUSD,...) at the same time in my mt4 plateforme In one of this chart ,runs an EA Visually we can see in which chart it runs But is it possible programly to know the chart ID number in which the EA runs between all others Regards
When I opened MT4 today I was asked to login again and all the indicators and templates I added were lost. I have no idea what happened here. Everything was still working fine yesterday and I didn't need to login when I open MT4. I have to start adding the indicators and templates I use all over
Hi there Can someone help me so i have this Txt file that i want to import into mt4. The problem is that when im trying to import it into mt4 then it changes the date format. So for april 1st it somehow goes and changes it to december 12th Two days ago it makes it into 2020.11.03 Theis
Hi, fresh new to MT4 I was unfortunate to deal for a lot of time with etoro that had his own platform totally different from MT4/MT5 There you could have a overall percentage calculation that you can use it if you DCA I also try to create a robot but is based on browser data and not desktop
Hello,How can I change a double value say 0.1784257 to 0.1 When I used NormalizeDouble(0.1784257,1) it was converted to 0.2 I don't want a rounded number. I need just first one digit after the decimal point. Any help please
hi all im new here and trying to understand the codes i want to know what these numbers( marked Red color) means ???double haLowHigh_1 = iCustom(Symbol(),0,"Heiken Ashi",Red,White,Red,White,0,0); 0=? double haOpen_1 = iCustom(Symbol(),0,"Heiken Ashi",Red,White,Red,White,2,0); 0=? double
A couple of days I did deposit some money in my mql5 account. When looking at MT4 the Balance was not updated. I‌ don't remember what I did, but finally it worked. The other day a friend of mine had the same problem and now my brother as well. I‌s there a way to refresh this so I can see the balance...
ok I have tried to find an answer but I'm not seeing it. I have searched the forums but none of the solutions seem to apply to me. I'm probably wrong though. the error is on the final "}". Thanks for your patience. //Function to Check the last 100 candles(trendLegth) to look for a trendbool
I would like to test my EA with crypto currencies - ETH, BCH, DSH, LTC, XRP. I need 1Minute timeframe. Unfortunately there is not enough data in the history center. There is only enough data for BTCUSD. Other cryptos mostly have last 2 weeks and some data till mid of 2019. Does anyone know where can
Hello all,  A beginners mistake I'm sure, but haven't been able to find a solution on here that's worked. void OnTick(); double K_line=iStochastic(NULL,0,20,3,5,2,0,MODE_MAIN,1); double D_line=iStochastic(NULL,0,20,3,5,2,0,MODE_SIGNAL,1); double pK_line=iStochastic(NULL,0,20,3,5,2,0,MODE_MAIN,2);...
Hi Everybody, I am trying to retrieve the details of the last open order (i.e. not pending) , but the code below does not seem to work. Any hints? Thanks MG for (int Counter=0; Counter <= OrdersTotal()-1; Counter++) { OrderSelect(Counter, SELECT_BY_POS,MODE_TRADES);
  Coding Question  (4)
void OnTick() { // We create a variable for the signal string signal =""; // We define the EA double K0=iStochastic(_Symbol,_Period,5,3,3,MODE_SMA,0,MODE_MAIN,0); double D0=iStochastic(_Symbol,_Period,5,3,3,MODE_SMA,0,MODE_SIGNAL,0); double
I have noticed that MT4 Build 600+ makes a double call to OnInit() and OnDeinit() when you change the parameters by clicking on the smiley face. In the Experts log you will observe the sequence: Expert EURUSD,M30: initialized Expert EURUSD,M30: uninit reason 5 Expert EURUSD,M30: inputs: ...............
Okay so I have created my first expert advisor and whenever my order is being send it gets deleted automatically. Like in this screenshot I provided. Okay so this is the expert advisor. I'll also include the file of the CustomFunctions01.mqh
hello all i am getting close at stop type order why i am testing my EA any one can help to fix this
Hi,I am trying to convert the value of Ask to string but it allways returns null :(,I don´t know the reason,the code is really simple just 2 arguments,here it is strprecio= DoubleToString (Ask, 4 ); the code is in MQL4 DoubletoStr() has the same problem,do you know any other way to convert a price
Hi everyone, I tried to code my EA but I meet differents problems, I don't understand why this EA send many trade at the same time (I try to block the code with 1 trade by 1), also How can I add a pause of 5 mins by exemple after an orderclose ? Thanks in advance for your time and your help. Take
Hi, I have googled through everything and I'm unable to get POST working. The GET works just fine. I don't want to use WebRequest because I need asynchronous calls (not waiting for response) Here's the most cleanest code I found. With all the found scripts the result is always 0
Hi, Do you know of any EAs for MT4 that closes all open trades and pending orders if a predetermined price is reached ? I was able to find it but only for MT5. Thanks
Somebody has an ideia how to plot SR LINES when this zigzag based on gann angle changes? #property indicator_chart_window#property indicator_buffers 2#property indicator_color1 DeepSkyBlue#property indicator_color2 Black//---- input parametersextern int GSv_range=12;//---- buffersdouble
Hello everyone. How can I open an order with a predefined stop loss size in pips? How do I do that, regardless of the price at which the stop loss will fall, I want to open an order with a pre-defined "x" pips stop loss. I didn't see any similar option in Metatrader, there I need to enter a price
I dont know how this happened but I uninstalled MT4 and then shutdown, then reinstalled and the files have stayed as PDFs and HTML Docs. Is there a way to fix this? Thank you