MQL4 and MetaTrader 4 - page 1222

  Bar Counting  (3)
I would like to count bars since an event occurs. I used a flag showing the time of the event and I insert it on the formula iBarShift. I don’t know where my mistake is, but the result is always the same, and don’t start with 0, 1, 2… I think that is missing a looping between new data. Thanks...
[Deleted]
Hi, I'm trying to save active orders (Tickets) OnDeinit() into a binary file but is not working. (Note: The handle is created but the file is left blank.) Can anybody tell me why? Here is the piece of code: //prepare to write data...      int handle = FileOpen("orders.bin"...
The following code moved stoploss to breakeven. It sets a global variable in doing so, then to remember that stoploss has moved to breakeven on that particular trade. The code works when i have only one trade open, it will store the global variable and all functions work as they should in my ea. But...
Does anyone know how blocks of text (or pictures) can be added to a chart in MetaTrader ? The usual way only allows 1 line of text at a time. Is there an indicator or script that can do this ? Any help greatly appreciated.
Hi, I am using the http library posted elsewhere on this forum to retrieve some data from a remote server into an MT4 EA. The data is formatted as a JSON string. What is the best way to decode this data into arrays? Any shortcuts? I'm guessing not :( Thanks for any efforts to thelp
hey everyone, this topic has been brought up before. ther´s a gap in the period i´ve mentioned. i´m optimizing with alpari uk. i wrote them and i m waiting for an answer. does anyone have a solution for this?
Gentlemen admins ! Pardon the malicious offtops, but I just don't know where to ask about it. I myself have always been exclusively into robots. And I think their admirers are the only category of thinking and seeking traders. And to ask such a question to the (REAL) intuitives themselves, is like
I'm teaching myself to program using the MQL4 book on this site. I'm stuck on the following: I have coded the very simple stochastics cross alert program from the book. See code below. I'm not sure if I should compile the program as a script or an EA? I have tried both, compiled this code as script
Is it possible to run indicators/Expert Advisors written in MQL4 on the new platform MetaTrader 5?
[Deleted]
Can anyone help: I can't automate my EA as the OrderSend needs manual confirmation of order placement . I think its probably a configuration problem that the broker needs to set but am interested in your comments, ideas or what to tell the broker who isn't MT4 technical. Thanks
I did a search on Windows 7 DPI settings here, found nothing - so I'll post a comment followed by a question. I did perform some online research and was not too happy with a lot of things I read. I am still running XP, but have heard that Windows 7 automatically adjusts DPI based on one's monitor...
[Deleted]
Has anyone got any ideas why this is Occurring? When my OrderSend Function in my EA is run in MetaTrader4, instead of an Order being placed, causes the Manual Order Messagebox to appear which of course needs manual input. This message box is similar to the one that appears when you manually enter a...
[Deleted]
//+------------------------------------------------------------------+//|                                          ZIG ZAG NON REPAINT.mq4 |//+------------------------------------------------------------------+#property copyright "Copyright©2010"#property link      ""#property...
Hello, this is my 1st post ever to please correct me if I am breaking any forum rules. (Should this post be somewhere else?) My aim is to eventually right my own EA, but I do not have any programming in my background and I am trying to work out the best way to learn. I just read the ebook...
Hello, I made an EA on MT version 4.00 Build 228 and then opened a Demo account. The Demo account version of MT is 4.00 Build 229. The EA that got ported to Build 229 only had 3 changes total that dealt with the formatting of stop loss since Build 229 displays prices on EURUSD as 1.3xxxx. On Build...
Can someone please take a look at my program and tell me what I am doing wrong? (It's probably a lot!) I am very lost, my head really hurts, I have been working on this for two weeks straight! Help please!! I have two problems I have repeatedly failed to solve: + When the trade signal is present,...
[Deleted]
Hello, i would like to clear some parameters when S/L occured, is there any trigger function when S/L occured ? or is there any approach could meet my requirement ? thank you for your help .
Hi all! I have programmed a system that lays pendingorders ( limits ). if i want to use this system with an ECN broker, do i modify the pending orders directly, or do i wait until it becomes a marketorder ? Best regards: Enotrek
Today the public testing of the MetaTrader 5 client terminal starts. All of you now can participate in it. If you want to become the testing participant, just download the terminal and test it. You can send your bug reports and suggestions by email or publish them in this topic. For the testing...
[Deleted]
Hello all! I am using MT4. When I try to test an Expert on 1 year of data, I get an error: 'NO HISTORY DATA..' eurusd '? So, I go into Tools->History Center, I press Download.. After download finishes, I see only 3 months of data in the window. How can I pump 1 year of data in order to test my
[Deleted]
Hello, I don't understand why : int start() { double CurrentPoint = MarketInfo( Symbol (), MODE_POINT); Print ( "Symbol: " , Symbol (), " Ask: " , Ask, " Bid: " , Bid, " Point: " , Point , " CurrentPoint: " , CurrentPoint); } Returns : 15:54:44 MyEA GBPUSD,M1: Symbol: GBPUSD Ask: 1.5539 Bid
[Deleted]
  Doubt  (13   1 2)
How can we put this into a code statement: if the previous BUY/SELL order was inside last 5bars, then do not open BUY/SELL respectively. I've been searching and trying various logic but it's not giving any desired results. Thank you. Regards, Rohit.
hi forum, how can i find the highest high from 2-6 am? i tried it with iHighest but it does not work. can somebody please help me? thank you!!
[Deleted]
Hello all, i want to program an expert to replace an indicator, all the expert has to do is to take an order sell when a red dot appear and take an order buy when a blue dot appear on a custom indicator called Max Moving Average. And one more thing the expert will do is to close the previous order...
Hello everyone. I decided to get an EA and found one i like at www.superfxrobot.com. I don't know much about EAs so I asked around and people told me it quite good and they show real and demo accounts. What are your opinions on this EA? Is it really good? I need your help before I buy it. Thank you...
The following code moved stoploss to breakeven. It sets a global variable in doing so, then to remember that stoploss has moved to breakeven on that particular trade. The code works when i have only one trade open, it will store the global variable and all functions work as they should in my ea. But...
[Deleted]
hi seriors, i m new here, can anybody tell me if there is free ea available around here that can make alarm when parabolic sar change the direction? if no can anyone buile this simple ea, i would be very grateful to you guys. regards, Amar
[Deleted]
Hi, I am currently developing a calculator.But that i will need mt4 data in excel. Well i know that basics of excel data fatching with DDE server and formulas like Quote: =MT4|bid! EURUSD Instead of "bid", you can also put: ask, open, close, high, low & volume But this shows daily data range.Does
[Deleted]
could anyone help me please .... thank you ...
problem solved!!