MQL4 and MetaTrader 4 - page 114

To post a new topic, please log in or register
  Pips (15   1 2)
Hi all master traders, I would like to ask how to write the pips on mql4. Example : i buy 1.2500 then increased 2 pips become 1.2520 and so on... Thanks all.  Victor
Hi i am aware we can set price alerts on MT4 and get push notifications on our Mobile Phone But are we able to set Price Alerts through the MT4 Mobile App? Or must we strictly only set through the desktop
Is there any way to delete the Account History [ie the complete Trade History] in a Demo account. I can always open a new account, but I'm hoping there is a more efficient method, for example, deleting one file.
hello i made an expert, it works good but for a reason it need a unique number to restore every trade so i tried to save ticket number  i searched file open, and arrays but i couldnt find what i want beside im not good in arrays finally i found something near to what i want  i got the code but it...
I was wondering if anyone could find the time to write an EA for me? I currently have an automated trading system I use in ActFX on Forexyard (TwoMAs.act), and I would like to implement the same strategy in MT4 to auto trade if its possible. Its just an EMA cross, but with defined stop and limit....
Hello, Im using MT4 backtesting 2 ready made EA to learn about the platform but I cannot get the result tab, only settings, optmisation, optimisation (both blank) and journal. Your help is appreciated, IV
Hello, I've been trying any format and a half dozen youtube videos, but can't manage to import even a perfectly prepared CSV file into the history centre. Here on the forum, I even found the tip to export existing data to emulate the formatting - which I did, to no avail. Worse, even if trying to...
To see long-term trend, I want to plot OHLCV data on a weekly timeframe. I prepared GBPCAD10080.cvs file as attached, but it is not recognized on mt4.  What's wrong with it?  FYI part of data is as follows : 2005.09.04,00:00,2.1667,2.1855,2.2022,2.157,390321 2005.08.28,00:00,2.1915,2.1571,2.193,2.12...
I have changed xml files and made black version of metatrader4 on Android. I begged the developers for a year and I got tired of waiting, so you can see the results here. If you need I can make a clone of the app, so you can have installed two version together, just ask me
hi all,     string status = "";   double currentLow = LowMapBuffer[shift];   PrevLowMapBuffer[shift]=LowMapBuffer[shift];   double previousLow;   // find the previous Low   for (int i=shift+1; i<shift+1000; i++)   {      if (LowMapBuffer[i] != 0 && ZigzagBuffer[i] != 0)      {         previousLow =...
Hi,  So far whenever I am facing a problem, I always can find a solution from MQL or online. However, I got stuck on this problem. Maybe this is a limitation from MT4. The task is to open a chart using Chartopen(), and then draw something(lines) on the opened chart, but not the one we run script on....
hello traders,  Mql4 function IndicatorCounted() returns a value for the current chart ....how to get the amount of bars not changed after the indicator had been launched last on a chart differnt from the current one ?
Hi everyone, Anyhow please, how is correct way for: void TrailingAlls(int pType,int stop,double AvgPrice)   {   int profits;   double stoptrade;   double stopcal;   if(stop!=0)      {      for(int trade= OrdersTotal()-1; trade>= 0; trade--)         {         if(OrderSelect(trade,SELECT_BY_POS...
  Persistence array - MQL4 (13   1 2)
Hey guys, I manage my trades using an array, the array contains the next Take profit level, how much lots to close at certain points and so on. The only problem I'm facing is if somehow my EA will crush? Or I will write a new version and need to redeploy?  I'll lose my unrecoverable array. If I...
Hi all, Part of a script I am trying to run is needed to count the number of times that Price is equal to a value from an indicator. the current function I have that I would expect to work is here: int GETCOUNT(double P)   {    int bar = 0;    int index = 0;        while (bar <= Bars)     {      if...
Hi, I moved to new computer and was forced to install a new built of MT4 way above 600. Almost all my compiled scripts are working, but those that don't return the same error: "not all control paths  return a value". In theory I understnad what it might mean, but with my basic programming skills I...
how do I download free indicators? No market pace on my terminal.
I am testing a simple EA that uses three MA, with the iMA api. When testing it, the chart shows the MA lines.  I would like to color or hide these MA lines. Is this possible?
hej, i would like to 1. create 2. check 3. changeValue 4. delete a Global Variable The Variable shall have the Name of the Symbol and which the ea runs and LOL....example"EUR_USD LOL" how could i archieve this???
Hello guys, I cant figure out... After i compiler my coding, it works accordingly but there is 2 warning sign showed and i cant find out what is the problem with it. Hope expert out there can help me out with this problem  if(wt!=Time[0]) {  if(TotalOrder(0)<Max_order && TotalOrder(1)==0 &&...
Think i've hit a brick wall I'm just trying to draw a trend line between 1200 & 1700 showing the previous high and low for those two times but get a screen that looks like lasers have gone wild after 1200 Can anyone help simply the code to just draw on line not a million int start() { Starter =...
I want to write an EA that joins the highest points of each candle using a trend line (after the first six hours of a day). I saw the the documentation for the trend line (https://docs.mql4.com/constants/objectconstants/enum_object/obj_trend). This is what I've done: ObjectCreate(chart_ID,name...
I have no coding experience but i will be so grateful if you or anyone out there can help me to code an indicator in form of two horizontal lines base on this info.. 1)  previous bar high-previous bar low=X next bar open price  +  X plot horizontal line at the calculated value high 2) previous bar...
  Error when Enabling DLL (18   1 2)
Hi, I purchased an MT4 indicator, and I've been told I installed everything correctly... I installed the DLL file in MQL4\Libraries, the EX4 in MQL4\Indicators. Tools/Options\Expert Advisors... Allow DLL Imports, and on the Common Tab of the indicator, I checked off both Allow DLL imports & Allow...
Hi friends, a small issue that maybe is really simple but i don't find the correct loop to achieve it : I need the function to calculate from a pool of orders Buy with same MagicIndex the maximum Lot Size. Example :  Trade 1 : 0.01 Trade 2 : 0.02 Trade 3 : 1.00 Run the function and the result is 1...
Attached: "sdk pivots" indicator for MT4 This indicator plots daily floor-pivots, including pivot-range. It also plots daily camarilla pivots. It also allows for time shifts, and to ignore Sunday hours. So, very useful indeed.  What would make it even more useful would be to have the option/ability...
I have a live account and a Demo account linked for Monitoring , and today i checked and both are displaying this message ( Signal is disconnected from monitoring and unavailable for subscription, please guide me , as i am not that good of a MQL5 user , and had linked my accounts just to have my...
Hello, I tried to write to support department but it seem he/she  doesn't have any idea about the website he/she is working for. I don't know why this employer still work for MQL5 since doesn't have knowledge about services this website is offering. The agent sent me to write about my problem on...
I am trying to use my variable switch_action which is computed in the zmq code (InterpretZmqMessage) and use it in my second function (secondfunction) #property strict#include <stdlib.mqh>#include <stderror.mqh>#include <WinUser32.mqh>datetime LastActiontime;#import "shell32.dll"int...
  Arrow inside button? (14   1 2)
Never succeeded and tried everything (at least I think so), to create some kind of arrows for up and down instead of texts, inside of a button. I have other text in, in separate button it would not be problem. Is it possible in same button with other text? Here image speaks more ... about the wish....