MQL4 and MetaTrader 4 - page 20

Hi, I am trying to write an indicator that puts an arrow below or above the current candle if it's Low/High is lower/higher than the Lowest/Highest value in the previous 120 candle but I can't work out why my code is putting arrows on every candle. Would appreciate some help. Here is the code
  OBJ_TEXT not showing  (11   1 2)
I just want to print a small OBJ_TEXT in the right upper corner of the main chart window showing SWAP LONG and SWAP SHORT. I can print the values and show it in a comment but OBJ_TEXT is not showing up at all Am I missing something? #property version "1.00" #property strict #property
I have heard rumours that Metaquotes will be phasing out Metatrader 4 soon. Is this true
Hello, I am changing my EA code from Pips to Point directly. Previously it was like extern double TP = 30.0 ; extern double SL = 253.0 ; int OnInit () { if ( Digits == 3 || Digits == 5 ) Pips = 10.0 * Point ; else Pips = Point ; if (Trading_Strategy == Scalping_TP) { TP = SL *
The MetaTrader 4 platform update will be released on Friday , February 23, 2024. This version provides error fixes and platform stability improvements. The update will be available through the Live Update system
[Deleted]
  Toolbars disappear  (12   1 2)
Always when I re-start MT4 my toolbars have diappareared as well as my terminal. Whatever i try with profiles, it does not help. Anyone knows what I should do? Thanks.
Hi All, I am struggling to find either a standard or custom drawing tool in MT4 version 4.00 build 1280 that will allow me to draw a horizontal line between two chosen points on a chart, and then show the level in the price axis, or next to the drawn line. Today I am drawing the horizontal levels as
Hello everyone, Please I need somebody's help concerning this, I have tried everything i know but to no avail. After completing my EA and compiling, it displayed "Event handling function not found!" on line 1 and column 1, I checked everything about line 1 and column 1 but there is nothing to...
Hi all. I received the attached email from the broker with regards to hyperactivity on the account. Does anyone know of a way to work around this issue. The EA is a tick scalper. Is there a way to reduce messages or bypass them, or if anyone knows of a broker that allows this type of activity then
While adding an S&P500 index chart, I accidentally added the wrong one and subsequently added the correct one. Please can anybody tell me how to remove the extra index from my list. I know that I have to tick a little box and then delete, but I can't find out how to get box to appear. Thanks if you
Hello everyone I use this code to draw SL and TP lines. I have two problems: 1) I can't continue the lines until Time < Time[i]; For Example : Time[i-10] 2) Each time the indicator signals, the previous lines are not deleted to be displayed for the next signal. But this happens when the timeframe
Hi guys! I'm setting up a demo account and I'm preparing about 90 EAs. I'm using a third party EA generator that is able to set multiple strategies on the same file. Each EA will have about 10 strategies. In other words, there will be 90 charts and EAs running but actually about 900 strategies. They
I have been working on this simple expert for days, but it does not open any pending orders when you reach the preset levels BestLongPrice or BestShortPrice. Yet the logic is very simple. these values are set, you set whether the direction is long or short and set the entry and exit levels. the end
  POI
Hi. Is there any source code how to show POI snd more valid POI with FVG or IMBALANCE? Im not finding any source code for this. Regards
  MT4 to R interface ...  (23   1 2 3)
This is a MT4 to R library interface coded by 7bit Detailed description by 7bit (and some examples) can be found here : MQL4 -> R-Project - Interface Library Some more details on R itself (it is a free - open source, software project) here : The R Project for Statistical Computing
I was looking in the documentation and I only find run-time casting (<dynamic_cast>) but I was wondering if static_cast is available in MQL4? If not, is there a workaround to implement static polymorphism in MQL4
As the title says, are built-in indicators pre-computed in the strategy tester? I was wondering if the only overhead for theses indicator functions (i.e iMA) is just extracting the values from the buffer? I couldn't find anything the documentation, but I don't want to assume things
Hello, Even when Automated Trading setting is turned off, EA functions are getting called. Is this normal? or it due to some error?. if ((!Close_Buy_Limit) && Buy_Limit && trades_count(BuyLimitMagic) == 0 && istochastic_16 > up_level) { ResetLastError (); gTicket = OrderSend
The tooltips created with OBJPROP_TOOLTIP in MQL4 disappear after 20 seconds. I'm wondering if there is a method, through MQL4 programming, MT4 settings, editing specific configuration files, registry tweaks or even using the Windows API, to extend the length of time these tooltips remain visible on
[Deleted]
does anyone have pivot point indicators for quarterly and half yearly levels or can any programmer modify yearly pivot to quarterly and half yearly pivot dividing the year into four quarters the first begin at january and february and march and the second quarter include april and may and june and...
Hello guys, can sameone help me? I have this indicator that give me sentiment %, i use iCustomCall to have data % but i dont receive values, looking in the chart there is no buffer values and no data object. How can i manage it
Hello, I coded an custom indicator which is already on the chart and working. I also coded a button (contains to that indicator) which should open the indicators properties when I click on that button. The button itself works fine (I tested him with Print()). I only need to know the function, method...
When using the MACD indicator on the chart it shows 2 values - a Histogram and a Signal line. If you use the iMACD() function to calculaute the MACD values you have 2 options - MODE_MAIN and MODE_SIGNAL. I have always assumed thet MODE_MAIN represents the Histogram values. Now to my dismay I
I'm not sure what I'm doing wrong but I'm positive it's because I'm new. When I try to open a buy or sell order other than instant execution the place order button is disabled. I can change the order to instant and sell/buy become available. It seems to be only when I specify a buy/sell limit or
Hello, I am frequently getting Error 136, specially during news hours. I searched and founded this happens due to Price change faster than EA placing trade. In this forum i saw some post where peoples saying using of RefreshRates (); will resolve the error. I changed to code with RefreshRates ();
Hi; Got a question I can't seem to find an answer to, even after searching online. I have an MT4 layout that uses two charts: Chart one: 4hr EURUSD configured with its own indicators Chart two: D EURUSD configured with its own indicators I save this in template directory as a .tpl file When I load
I am getting 28 warning in my code. My EA is working fine on live market. I am not sure what does this warning mean and why i am getting it. For example : Warning : return value of 'OrderSelect' should be checked JS23.mq4 794 7 double CalculateTradeFloating( int CalculateTradeFloating_Magic)
Hello, Today, I traded two news event AUD - Monetary Policy Meeting Minutes and CAD - Core Consumer Price Index (CPI) both closed in loss because of very high slippage, high spread and StopLevel. Apart from this i get a lot of error in Terminal (Expert) Tab. List of Error capture during news event
Hello, What does OrderType() > OP_SELL mean? There are a few instances in the EA I am working with that have some if conditions with OrderType() > OP_SELL . I understand that OrderType() == OP_SELL means it should be equal to a sell order, and OrderType() != OP_SELL means it should not be equal to a
Hello I will appreciate your help, I have written a function but it is not doing out operations as required. Upon launching EA on chart it should open buy position on break of previous high later on the preceeding orders will be on break of previous low. I f any of the orders hit sl the EA resumes