Download MetaTrader 5

MQL4 and MetaTrader 4 - page 200

To post a new topic, please log in or register
I would like this indicator to alert me on current candle and not after candle closes because I'm trading 60 seconds. Please help... //+------------------------------------------------------------------+ //| binary alert based on RSI+MFI+Demarker...
They do not seem to follow the MQL5 behaviour. Whatever I set, the higher number takes control of the visible output. #property indicator_buffers 3#property indicator_plots 1 does the same as   #property indicator_buffers 1#property indicator_plots 3      
Hello sirs, please I want an indicator to keep my vertical price scale display at the right hand side to maximum of 8 display across all time frames whether chart zoomed or not . Hope someone understands my point.
How to subtract previous bars value of 1st buffer with current bars value of the same buffer and show the result in the 2nd buffer? please someone help me
In build 840 MT4 the pending order expiry function does not delete the order when the time expires. edit - posted in mq5 forum under New MetaTrader 4 Build 840: Improvements and Fixes
I am not a developer. So, replies with simple explanations would be greatly appreciated. Custom indicator EX4 files can be decompiled to MQ4 files. Build 600+ was to prevent decompilation. I guess that's not the case. I have read posts of a possible method to prevent unauthorized access to the...
Normally, I would not even consider this an issue, however, I happen to be in an unusual and unfortunate situation.  My concern, I guess you can call it, is the articles specific to MT4 and MQL4 being located on MQL5.com (and vice versa) means that if someone has accounts on both MQL sites, and for...
For some reason I can't isolate the event handling of this object. Here's a simple expert code which uses CListView, the click event is not triggering the event on CListView. Any advice? thx...
I need help modifying the ADX in MT5. Currently, the only parameter allowed to be entered by the user is the number of periods for the ADX. I need the ability to input a different time periods for the DMI. Basically this would mean having the ability to set an 8 period moving average (ADX) of the 13...
I have read several posts in other threads about Moderators being selective in certain things. And I constantly see regular Contributors bashing those who are new, albeit some of it deserved in my opinion. I have also seen some regular Contributors just disappear because of all this, I assume. What...
Hi there,   I am using the C2MT4Connector EA. When I attached the EA, I can see that the _CorDllMain is not loaded properly. See picture below. I have reinstalled the .NET; however, I am still having the same issue.       
Good day all. Any suggestions for mt4 charts not loading their template contents?  On startup or on switching profiles, charts come up without their template contents.  It's a problem which occurred fitfully years ago but is now systematic for m1 charts, occasional on other timeframes.   If I...
Hi    I met a problem when writing indicators. The indicator works fine in normal conditions but if there are some new data loading, the indicator markers and zigzags becomes messy like show in the following image.  https://charts.mql5.com/8/221/usdchf-m15-forex-capital-markets.png   Any help please...
Hi traders i am using mt4 demo version and trading forex. I have an issue with delay response on my profit limits. Today it happend multiple times that the platorm didnt get me out after i reached my profit target. Even if i move the profit target in some direction to refresh it mt4 just did not...
Hey guys, Does anybody have a function that increases the lot size by a certain amount when the account balance increases by a certain amount. Eg. If the account is initially on $2000 I want it to trade on 0.2 and when the account balance reaches $3000 it must start trading at 0.3 etc. Thanks! 
Here is the code int start(){   double BuyTP=Ask+(TakeProfit*Point);   double SellTP=Bid-(TakeProfit*Point);   double lots=(AccountBalance()/10000)*Lot;   ArrowUp=ObjectFind("SignalUp");   ArrowDown=ObjectFind("SignalDown");   Strength=MathAbs(ObjectDescription("WPRValue"));      if(...
Just like the subject says, I can create an object fine in init but if I try it in start I get nothing. I'm playing around with the FX Multi Meter II code and was wondering if there is something that might be preventing it from being created but I can't find anything. I've tried it in all different...
I open a demo MT4 account on Windows 8. In Program Files/MetaTrader 4/ there is not MQL4 folder. I attached ascreenshot. Can anybody help me?  
Hello guys, I'm bit worried about how does MetaTrader and Expert Advisor works on multicore systems. I have an idea to run 1 MT4 (or EA) on one CPU. So if I want to run a 100 accounts thus I have to have 100 threads available. What shall I do, if I want to run metatrading system. How many EAs am I...
I am getting a confusing issue with MathFloor() function in mql4. Print(MathFloor(11219.0)) gets displayed as 11219.0 but Print(MathFloor(10000*1.12190)) gets displayed as 11218.0? Any idea, why?   
Hello, does somebody know if it can be stored the value of a reference parameter which passes a dynamic array reference. Example: class AAA {    ??? Buffer;    void method_A(const double & buffer[])    {       Buffer = buffer;    {    double method_B(int idx)    {       return Buffer[idx];    } };...
Hello there, May I know how to install the custom indicator & EA to the new version of MT4 build 600? I was tried to install to the custom indicators to MetaTrader 4 directory under MQL4/ indicators, and re-open the MT4 platform, under custom indicator, I won't be able to locate my custom indicator...
Through the years, yahoo customer service phone number attempt the existence offers drastically modified. One of several improvements which can be really apparent in today’s moment is the belief that desktops have grown a serious part of your existence. Other than personal make use of, desktops may...
hi i want add 4 seconds to server time or market watch time to CHANGE OPEN and CLOSE of CANDLESTICK BARS in 1m chart and other how i can do it   the result is if your ea works on a broker like ic market so it can work on hotforex because hotforex 1m bars will open and close 4 seconds sooner
What is the simplest and most efficient way to  test if there is already an open position of a specific pair? This works but is there a simpler way? string Pair = "EURUSD"; if (OrdersTotal() > 0) { for (int iii = OrdersTotal() - 1; iii >= 0; iii--) { if (OrderSelect(iii,...
I thought it would be a good idea to have a central location for people to have a resource of information on the platform and programming similarities and differences between MQL and MT 4 and 5.  I was going to originally start just a thread for discussion, for people to post things they have...
  Trailing step (3)
Hey guys, I am trying to make a trailing step. Essentially like a trailing stop, but instead of moving the stop loss every point in profit, it only moves the stop loss after X amount in profit. Below is my code (tries to modify as soon as order enters and I get a constant OrderModify error 1):...
Hello everyone, I'm a new member. These days I am considering different strategies, I'm looking for an indicator that I consider the body of the candle. I do not know if it's possible, but I wish the indicator tells me while the candle is still forming, that is, if the candle reaches + 50pips for...