MQL4 and MetaTrader 4 - page 200

Hi guys! Did anyone else experienced the same issue in the next few days? I used the same VPS before but now it`s not working at all. Thank you for any help!
I'm writing subroutine functions, then importing then into the main program code using the Include instruction, however the compiler never finds the imported code because a huge numeric number that is part of the path for the include instruction. Is there a solution for this problem? any suggestion
Good day. When I use OrderOpenPrice() in code, it only uses the correct OpenPrice the first time, after that it always uses the previous OpenPrice. It seems like when a order closes, the OrderOpenPrice() keeps the data and the cach is not cleared so that when the new order opens up, it keeps the old
I have an exe file that i created in python (Start.exe) which when executed manually generates two files "a data file" and "a template file". now i am trying to automate that process by executing "Start.exe" from the indicator and then Load the template that the "Start.exe" generated. But when I run
Hi All. I am trying to display moving average and cci inside of one custom indicator. if you take a look at the attached screenshot you will see that the moving average looks like just a straight line , that is to be expected since moving average value is a lot less then the cci value. I tried
Hi, Need support on coding function to close all orders for current symbol with specific magic number . I searched around and tried to code it myself but unfortunately not succeed :) Appreciate your support Thanks void CloseAll() { bool Result; int i,Pos,Error; int Total=OrdersTotal(); if(Total>0)
Hello comrades. How can I handle off quote errors in MQL4? What function to call? I do not know if the "IsTradeContextBusy()" function suitable to handle off quotes. Anybody please. Thank you in advance.
Hello! This is one of my first posts, so please be easy on me. Here is the issue -- I have written multiple EAs and not one of them will make live trades. I cannot find out why my Expert Advisors will not trade. I have done my best to follow the official MQL4 documentation. I have read the MQL4
Hi guys my EA opens trades on every close of 4hr timeframe thats why my mt4 is set to 4hr timeframe only. But i want to add a function that if price reach to a certain price then close the trade if that 1hr candle closes where the price reach that certain price.is that possible? Thanks
Hello my friends. I want to add a news part to my EA. for EA to Automaticly import the time of the News from an Online Calendar. like the Online Calendar of MQL website. and I want my EA to stop Trading 2 minutes before and after every important News. I know This is not an original Idea, and I have
Hello, I had mt4 ea coded for me and asked programmer to have ea write some info to the chart. That works and he used #include <Controls/Label.mqh>. But every time the ea is dismounted mt4 deletes the info from the chart but i want the info to not be deleted. I commented out void deleteDisplay(const
I would like to count the profit of a varying number of closed trades. At the start of a martingale string of trades, each trade is provided with a tradenumber in the OrderComment (). The trade number is increased by 1 after each loss until a win where the number is reset. After a certain
So bear with me. When I run the following code, I get an offline chart but when I open the offline chart, all I get is a "waiting for update". Anyone know why? I know, I'm just copying EURUSD data, but like I said; I'm learning. The sub class
I need to modify the thickness of a few trend lines and rectangles, depending on the level of zoom on the chart, so i use if(ChartScaleGet(0)>3){thickness =...} else {thickness = ...} in my drawRectangle(...) function. but that works only on new candles, because I limit my for-loops to the new
Dear All, I have been searching for past few days for a vwap which is exactly in the tradingview. I have noticed that in tradingview and in MT4 the vwap are different. when i open the nifty future chart in mt4 the vwap is different as compared to the one in trading view and broker zerodha. i
Hello All, How to use ChartSetSymbolPeriod in back-testing for MT4 or this is not possible Regards, Amr
Could someone please tell me How to add if false == ordersend(); Although I add these coding, EA still open positions. input string SettingTradingTime = "================================================================== " ; input bool Filter_TradingTime= true ; input string Time_Start= "02:00" ;
Hi everyone I was looking for an EA that opens a buy or sell trade trade immediately that price action touches or penetrates an SMA or EMA. I found a very nice EA called "price cross MA" (I've attached it) but it does not open a trade immediately when price line touches the moving average . Nor can
hello can any one help me to have make one indicator which generate gif image of meta trader 4 screen when price or ltp changes and it should generate gif image with same name and update that gif image when ltp changes
I recently came in contact with someone that claims to have an indicator that shows "major" vs "minor" trader activity. They say that the "majors" are likely banks and institutions and "minors" are retail investors. The indicator graphs two pairs of lines... one pair for majors and one pair for...
[Deleted]
Dear fellow traders, I just picked up trading and so far I've made some small gains, the last couple of days I've been range trading with the RSI. Whenever it's in the lower quartile of the range and the RSI is below the OVERSOLD (30) line and is rising again I go long and vice versa for going short...
  how to backtest timebased EA  (15   1 2)
how to make backtest possible for this code? if(DayOfWeek()==5 && Hour() == EntryHour && Minute()>=EntryMinute)        {                ticket=OrderSend(Symbol(),OP_BUYSTOP ,Lot ,Ask+Distance*Point,SlipPage,Bid-Distance*Point+SL*Point,Ask+Distance*Point+TP*Point,OrdComment,Magic,0...
  Forex data converters  (93   1 2 3 4 5 ... 9 10)
MT4 script to convert csv to hst
I have an indicator that plays a sound when price passes a level (horizontal line) , The problem is there is no delay is sounding the alert (wav file) .. I do i put a delay in to do this in the code
Hi all, Is it possible to run a script outside metatrader, eg from vba? Rgds
Need an idea on how I can refer to daily opening price from M15 chart. My EA is attached to M15 chart, is there any way to access D1 opening price info at any time? -> MQL4
Hi there, I have written an EA which I run on several charts simultaneously.In order to keep the margin usage within a reasonable level, I want to preventhaving more than 5 orders open at a given time. I use an order counter and compareits result with the value of OrdersTotal() before allowing a new...
hello everyone, I'm getting the array out of range error with my ea ... Can anyone help me out? Thanks in advance //+------------------------------------------------------------------+ //| FirstEA.mq4 | //| Copyright 2021
Hi , I am using an indicator (MQL4) which one of its input argument is mystery Enum! I could not figure out how to input its value I thinks it is something like this : enum ENUM_NAME{ item1 = 50 , item2 = 100 , . . . } as you can see items value are secret! second can I at list choose between items
Anyone knows how to do a more comprehensive and detailed backtest for EA testing in MT4? I wonder if it is possible to log the DD against time in graph and log the average holding time. Anyone please