MQL4 and MetaTrader 4 - page 9

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
// Regina Gold Expert Advisor // Author: Aldan Parris // Version: 4.50 #property strict // Define input parameters input int rsiPeriod = 14 ; // RSI period input int maPeriod = 20 ; // MA period input int bbPeriod = 20 ; // BB period input double bbDeviation = 2.0 ; // BB deviation input int
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
Hi, I have an Expert Advisor which work only with MT4 version 4.00 build 1400 but not with the next MT4 version 4.00 build 1408. I have a copy of my terminal.exe version 4.00 build 1400, but each time I copy/paste this terminal.exe file into the folder of my MT4 installation it run the update to
I am looking foir an indicator for MT4 that can calculate the annual average daily range of any currency pair. I have seen plenty out there with no inputs at all or some that can do up to 100 days etc, but want to be able to calculate the ADR for 1 trading year and have it just show in a corner as...
Hello, I am editing in EA which is based on scalping, and i am normally using 1 Pips as Take Profits. Some broker have Stop Level above 10 Points / 1 Pips which provide an error to EA Invalid Stop and other getting failed. For this reason, i made nested if else statement to cover both type of
Today, I found that the pending orders of the MT4 platform cannot be deleted or modified. I hope MetaQuotes Ltd can inform the developer to modify the BUG
Hello, I am adding a GetLastError, which only print if error belongs to particular function. I am trying like : if ( __FUNCTION__ == "TrailingStopLoss" && GetLastError () != 0 ) Print ( __FUNCTION__ + " Returning Error Code for Buy Trailing : " + GetLastError ()); if (StringCompare(__FUNCTION__
Hi all I would like to know what to do to make MT4 load a little faster. For me it takes approx. 10 minutes after the click on the shortcut for the screen to popup. For me 10 minutes it a little to long for a program to fire up. The profile that is loaded only has 2 charts. I have 3 more profiles
Hi, friends! I am using MQL4 on Roboforex. Yesterday the terminal stoped working and I downloaded a new one and wanted to transfer my traiding robot Expert onto new terminal. I copied all the preset files and an Expert himself. But when I try to attach my robot to the chart I get an Allert "The
Take Profits and Stop Loss is Int Value or Double Value? extern int TP = 100 ; extern int SL = 100 ; //OR extern double TP = 100 ; extern double SL = 100 ; // ********************************************** // extern int Slippage = 3; pipettes = Point ; double TakeProfit_BuyEntry = (TP != 0 ) ? (Ask
I deleted the Metatrader4 file in open data files inside the application inside then uninstalled the application on my macOS big sur. After that i downloaded the ready-made mt4 package from https://www.metatrader4.com/en/trading-platform/help/userguide/install_mac Once installation done, i can't
Here is an indicator for anyone who is interested in using it. I created it both to practice some coding techniques and also to be able to have a look at some market dynamics that interest me. Maybe some of you will find it interesting as well. This was my first time really working with objects on
Are there principally differences between the way mql4 and mql5 handle out of range ? Or are there big principal differences in how the iHighest function of mql4 handles for example negative count values? Because iHighest of mql5 won't take those