Hi I have an Array which contains names of variables. Is there a way to use the Array entries to assign a value instead of having to do... if (Per_Array[i,0]) = "Ind0_DonchianPeriodsEntry" Ind0_DonchianPeriodsEntry=GVResult else...
Hello all, i am writing a "Master Candle" indicator (on H1). Master candles are highlighted, but now, i need to draw high and low trend lines until the price break these high or low. Then the trendline are stopped to be drawn on the (H1) candle breakout. How can i do that please ? Here is my code :...
This trade incurred a loss of 1 pip on a 1 lot. The loss should therefore equal -10.00 (the spread) , however the loss appears as -7.56 in Account History. There are no commission, tax or swap charges on the trade, so how is it possible for the loss to equal this amount? Order Time Type Size Symbol
Hi all, I would be very gratefull if someone could help me by advising how to implement a snippet of code in order to let my ea have an interval of a certain period between opening positions. So I want it to never open more tahn one position at a given time. Let's say 20 seconds So now it operates...
Hello, So im trying to call iCustom on an indicator i found here : https://www.mql5.com/en/code/19153 As you can see this indicator was adjusted from another to add some improvement including being able to call iCustom to have a signal when a divergence is spotted (4th buffer : Signal) But when i...
Dear Coders, I need your help. By "Specific" I mean Time Window. I would like to count BARS from 13:15 to 20:00 that are Higher and lower than the High/Low defined from 12:00 to 13:00 for every day. I tried this: double HH,LL,highest,lowest;for(int i=500; i>0; i--){if (TimeHour(iTime(NULL, 0, i)) ==...
Hello, I have a trade log exported from a signal from this website as a CSV file. Do you know if there is a way to take CSV file download of trade history and import it into MT4 and make the historic trades show up on the charts
[Deleted]
Hi Guys, How can i display the macd open and close level values on a chart. Could someone give me an example of code to enter into the ".mq4" to achieve this.. Rgards
please can you led me to an article or post about checking for inappropriate symbols when coding indicator or EA ??? thanks for help
Hi all, if I try to use the following code on a H1 chart Print(iTime(NULL,NULL,1)-iTime(NULL,NULL,2) ); the result is 3600, 60 seconds x 60 minutes. If I apply the code on a Renko chart I seem the result is not correct. For instance the opening time for bar 1 and bar 2 is 11:44 and 11:35, the...
I have written a code and in this part i get this error, Semicolon expected. How should i write this line to avoid this error? extern int Chart.LeftTop.BarsL = 10;
According to the documentation on the ObjectCreate function (https://docs.mql4.com/objects/objectcreate), I should be able to pass a datetime value for the anchor point. I have used multiple formats for the datetime value. Regardless of the format of the datetime value, the object is always placed...
[Deleted]
For the benefit of forum members I have attached a spread sheet that calculates how many lots you can trade for a given stop loss and a given %risk factor of your equity. Use the green squares to make your entries in the spread sheet. Here is an example: Let's say you want to trade the EUR/USD...
Good day all Does anyone have the english version of the attached indicator? If not, any of the helpful coders here can help change it to english please? Your help will be greatly appreciated! Thank you
[Deleted]
I can draw a vertical line from past date into current date but how to draw a vertical line into future date? I've been tried with this code but nothing happen: extern int FutureBars=100;extern int BarsLimit=1000;for(int i=BarsLimit; i>=0; i--){ datetime...
How can I connect with Android? Mainly, I need to find the IP address to remotely connect to the VPS. Thanks
Hello traders! I need help for my code. I need to get the current order price on the market, according to the ticket ... This price: I attach a function that returns the number of the ticket I found here: https://www.mql5.com/en/forum/109180 int LastOpenTicket___(int magic_number ){// Function...
Hello, I've been looking all over the forums and documentation and I cant find any information on my problem. I want to count the time in hours since a specific action was taken. I want it to be easily reset able and manipulable. Is there a particular "Count Time" function that I can use? I am...
Hi, is there a snippet how to find the current used Symbol? I want to do that if for e.g Symbol = EURUSD than do something. If USDJPY do something. How can i handle that easy?
Hello. I have 4 MT4 on one VPS and all of a sudden I can't see anything in the market tab. I am logged in to mql5 and can see my Balance in the upper right, but the window is just blank. I can't see any Experts or Indicators. Not in any of my 4 MT4 installations. They used to work before, because I...
I got this function that selects the latest open order .Now I want to determine whether this order is a buy or sell, how do i proceed from here? Will this work? if LastOpenTicket() == OP_BUY ) the Do this...... ) My question is , will the programme be able to tell if the last open ticket is a buy...
[Deleted]
This is my first post!! In the MACD Sample EA included with MT4, what do the Open Level 3 & Close Level 2 actually mean? I have only been practiceing for 3 months and would to try an EA
I am just wondering if there are any special code for Renko chart? I mean the same icustom is used for Renko chart? double Buff1=iCustom(NULL,TimeScale,"Renko indi",1,1);//buy In renko chart, how about TImeScale? If EA attached on renko chart , TImeScale =?? Also what about icustom shift? Shift...
Hello, I've tried for many hours to figure out what's going on with my code on this. From my understanding, I can code into a customer indicator in *.mq4 format to open my *.ex4 customer indicator. If this is incorrect, please correct me. So now, here is the code I have been implementing using...
Hello, I am working on an index indicator based from this one : https://www.mql5.com/ru/code/9780 I really need to get the HIGH and LOW's values (from the subwindow) of each day then i will be able to draw boxes (with OBJ_RECTANGLE). I know how to get it from the price's chart to draw boxes on the...
Hello every one, I am working on a indicator based on this one : https://www.mql5.com/ru/code/9780 I am modifying it in histogram version by changing : "DRAW_LINE" with "DRAW_HISTOGRAM" . My problem is that my code, drawing all histogram bars in one color dependig on the current candle's color...
[Deleted]
I know that this question has been asked before, but I can't get it to work. I hope someone can help. From my custom EA, I want to programmatically add my custom indicator to a subwindow of the chart the EA was added to. I've managed to do this in MQL5 with ChartIndicatorAdd. So, I have my indicator...
How to write a new line in Comment() MQL4 question thanks
I would like to kindly ask you about the broker´s side of Meta Trader 4 - I mean the server. As I wouldn´t like to have any troubles with the brokers in terms of overloading their server/servers, my question is: Can I send tens of orders (eg. twenty times 15 lots) to the broker´s server in the time...
My mt4 doesnt work in windows 10. My windows 10 has update, and i use the version mt4 Activtrades. I tried reisntall, but doent work. What i need do to open my mt4?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.