MQL4 and MetaTrader 4 - page 830

hi, i want to learn the construction of MetaTrader software. As i am newbie to computer programmes, please suggest me some easy language tutorials to follow so that i can understand the working of the software. thank for your time.
Hi Guys Is there any MQL code that i understand last trade is close by TP. I wrote below code but it is not work.Because sometime ClosePrice=TakePrice is not True. I attach picture that u understand that ClosePrice=TakePrice is not always true. How can i solve this problem. double GetLastTrade()...
[Deleted]
Hi there, Firstly, thank you clicking on my post! I've previously tried my hands on writing Indicators (good enough for personal use, despite having no prior training in programming) but, please, assume that I have zero knowledge about programming when answering my queries. I'd like to get started...
hi, I have the problem...when i excute the EA. appear the error " ERROR: code=4059 - function is not allowed in testing mode" double StopLoss=500;double pips = 0.00001;extern double TakeProfit=1000;TicketNumber=OrderSend( Symbol(), OP_BUY, LotSize, Ask, 3, Ask-(StopLoss*pips), Ask+(TakeProfit*pips),...
[Deleted]
Hi, is it possible to save variables which are calculated in an expert advisor even if i close the metatrader and restart the programm? In this case it would be very nice to have the parameters ! If this is not possible is there a chance to whrite the parameters into the log file in case of a
[Deleted]
In case others experience this same issue I was, of not being able to download m1 historical data, I'll post what I had to do to get it. Going into my History folder of mt4, I deleted the downloads folder. Then I deleted the m1 .hst file. After that it did down load the m1 historical data for me.
[Deleted]
Hello Is it possible to install MetaTrader unattended? I would like to run MetaTraderInstaller.exe without having to click any of the prompt boxes Thanks for your help. George
Why is it that downloading the MT4 installer from the MetaQuotes official download location results in software that connects to different servers? I have seen installers that connect to: MetaQuotes DemoAlpariFXCMWhat is the reason behind this (from MetaQuotes' perspective)? Because from user...
[Deleted]
I have very strange case that I never seen it before. First I put an EA on the chart and it starts working fine but after a while I found some thing is going wrong so I decided to turn it off and fix the issue. The strange thing that the EA keep running and still opening more positions "no pending...
[Deleted]
Hi, I've been unable to download m1 EURGBP data this a.m. Just woke up and it was gone. I"ve tried copy/paste .hst files, over from another platform, I've tried deleting all history and downloads in mt4. and I've tried importing .txt files I've downloaded from other sites., I've tried import .hst
Hello! I know we are not allowed to discuss brokers on this forum. But is it ok to discuss broker types, not mentioning the actual firms? What is an ECN broker? What are the main differences between ECN brokers and others? Which type is best? What should I look for and look out for when choosing a...
Hello. I want to display current time frame label on chart. Is there any indicator of it? Thanks.
[Deleted]
Hello mt traders, I am looking for a tool or something like that where i can be informed per email or mobil if the mt4 changes the connection status to offline/restart. There i use a vps i max. want check my mt4 1-2 times a week. Hope someone someone can help.
Hi, can anyone tell me what is the best EA for 1000$ deposit? Thanks.
Is there a way (software or available download) I can show my profit/loss on closed orders on a spreadsheet
Hi, i would like to have an indicator created that measures the rate of change of the Stochastic indicator. Specifically, it would measure the ROC of the fast moving Stochastic line; the slow moving Signal line should not be measured. Stochastic settings: 8,3,3 Moving Avg type: Simple Price...
[Deleted]
This is probably a basic question but I cant find the anwer on the site or in help files anywhere. I am running windows xp and version 4 build 225. I dont get a pop up window alert on my alerts. What am I missing? I do get an audible alert and a message in the terminal under experts, but I am not...
Hi guys, I want to calculate the profit for my trades. Does anyone knows how to do it? Below is one of the closed trades. How will the profit be € -5,19? Closed Transactions:TicketOpen TimeTypeSizeItemPriceS / LT / PClose TimePriceCommissionTaxesSwapProfit52261612014.01.06 18:35sell0.05usdchf0...
[Deleted]
Hello, I am new in all this of programming, i am trying to build my first indicator. I need that the indicator, draws a single line at opening price for the first minute candle of each day, at 00:01 (t=1), and erase it at 23:59 (t=1439). i need that the price for this line does not change in...
I have created two functions for get the value of set in optimization results listview in this case. You can adapt the code in your dll. proc getOptimizationResult, theBest ; the best pass locals     pid        dd ?     buffer     rb 128     fHandle    dd ? endl   invoke GetTopWindow, 0   .while eax...
Good morning, Sorry to trouble. I need your help badly. My broker told me that profit is added into my equity section in MT4. However, it cannot be traced either by retrieving history or view in any statement as they told me equity is always changing and cannot be trace. Kindly let me know how could...
Does anyone know,since this is the end of the program, where the right parenthesis would go?
[Deleted]
Hi guys. I have this indicator of La Selle Street in .els need it in mql4 now for my ea. Its real basic but cant get it to work right. For the first 3 bars the regEMA buffer should equal the close price from there it should go over and do the calculation as u need regEMA[2] for the calculation thus...
[Deleted]
Hello, i have find here: https://www.mql5.com/en/code/9839 a Renko Indicator, but this Indicator does change his color sometimes at the first and till the second last bar, it looks like repaint. I did think Renko Bars did not repaint, is the indicator just not coded good or is it normal that Renko...
I have a question regarding the ArrayMaximum / Minimum functions. The documentation is not clear as to whether or not the arrays are read from right to left or left to right. For instance, say i want to record the maximum of elements 6,7,8 in the following array: array[10]={0,1,2,3,4,5,6,7,8,9}...
[Deleted]
Hi All,   I believe i have a bug in Build 482,  If I open an order, and do partial closes using my EA after doing these several times, OrdersTotal reports that there are NO open tickets, but there is. Anyone had this issue, any idea how else I can know if there is an open order?  I run over 300 MT4s...
Please find below my code and log for loading an array, writing it to a file and reading it back (no problem) UNTIL I try resize the array to add another row to store more data. I get no errors but data entered from an order into the array is not there when I try to read it back again. HELP!!! been...
Usually the x-coordinate of tester's graph shows order serial numbers as below: I want to set these numbers as time, such as 2013.1.2 or other time.
Hello I have a doubt regarding setting spred in tester. Values set in spread parameter are 1 pip or 0.1 pip? For example, if my broker provides 1 pip for EURUSD. Do I have to say spread to 1 or to 10 in spread settgin for testing EA ? Thanks in advance Juan
[Deleted]
Hello Friends, Can you please point me how to stop EA from trading if the last trade is loss, I want to code this as other EA as the EA i had was compiled EX4. Extra notes / IDEAS : I had only 1 EA running . either stop EA from trading or close MT4. or we can write EA to check the last trade every 5