Download MetaTrader 5

MQL4 and MetaTrader 4 - page 798

To post a new topic, please log in or register
Hi there, I'm working in one of Forex companies in the world :-) Currently our FX system is using Flex as top UI level that provides functionality for end-users for making transactions including placing/executing orders, querying rate history etc. In other words, users can do everything via Flex...
How can I send an alert from an indicator, but NOT spam tons of alerts every time it is processed? I want to send 1 alert per bar if appropriate to that bar, and not send any alerts for historical data when loading the indicator. I'd also like to make the arrow symbols displayed to the chart larger...
which one's price is the lowest one I have bought 5 times,so I have 5 OP_BUY order, how to find out which order's open price is the lowest one?
Hello @ All, I received the following indicator from a internet friend and its make very good signals. its signals are: Short and ExtitSchort just as Buy and ExitLong Unfortunately, I can not read these signals per iCustom() and I don't have its source-code. Is it possibly to be...
Hello, I'm a novice at trading with MT4 and it's Expert Advisors. I downloaded several EA's and installed them. One of them gives really nice results on the Eur/Usd M5 chart (when backtracked in the tester). On the M15 chart however the results aren't that good. When i turn the EA on, the EA apperas...
Is there a way to initialize a whole string array to x without doing myarray[100,10]={"x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x","x", .....etc etc }; I dont really want to have a huge line of code so i tried myarray[100,10]={"x"}; but then it only initializes...
Has anyone seen this before. I have just 5 objects drawn on a chart 4 Text objects and 1 vertical line. When I try to use the following: int    obj_total=ObjectsTotal();  string name;  for(int i=0;i<obj_total;i++)    {     name=ObjectName(i);     ObjectDelete(name);    } The last two text objects...
I am wondering how to get the high of the previous week for NY trading hours (i.e. close Fri 1PM). I am also a little confused if it is possible to write a program that, for example, looks at last weeks high/low and compares to todays open (not current tick). This is just one part of the algo, but I...
  Order sent (6)
When MT4 sent request to broker to open a position is there a code to pinpoint exact time (using indicator) when the request was sent? Thank you.
Dumb question I know, but I can't find a hard answer. Is it possible to run you EA even with your computer off, like using a proxy server or some other way??
Hi, My expert advisor is based on such a strategy that it opens a new trade on every single bar.What should i do to my ea so that it opens a new trade only when the previous trade is closed according to the closing strategy..........Thanks alot in advance !
Hi all, I am looking for a way (function) to get the equity in a selected (EA choice) currency or in the current trading base currency. i.e. if my equity is $10,000 while trading EURUSD, I need to know it in Yens when trading the AUDJPY Thanks, James
I would like to know where I am doing a mistake in this formula, I couldn't find it. It is only showing the first buffer - Impulse[]. .Thanks. Rodrigosm #property copyright "Copyright © 2010, MetaQuotes Software Corp."#property link      "http://www.metaquotes.net"#property...
hi, I programmed some custom indcators. Since my indicator lines are partially covered by the information in the upper row of the cust.ind.window, I'm wondering how to hide the custom indicator name, the values etc. which are displayed, so that there is a window with the cust. indicator line and...
Hi, I'm trying to call an external function and I need to know about the current directory. The directory from MetaTrader installation. Is there a function to get it? Thanks.
I have been curious about this subject, and I'm interested in hearing some educated opinions on the matter: Curve fitting is the major pitfall of optimization - anyone who has tried to move on to forward-testing knows this. The way I try to avoid curve fitting is by optimizing on one length of time...
Hello, I'm a novice with MT4 and have a question. Last night i installed an EA (100pips). This EA started very enthousiastic and opened about 160!! trades which were closed during the night. It resulted in a los of about 40 pips. Overnight it opened about 140 trades. Current loss is - 100 pips (not...
Hi all!!! I wonder can i make back test of different custom indicators and can somebody explain how to do that?
I'm using an InterBank FX demo account and I can't execute an ordersend command when setting the stop and limit. I have verified that the stop and limit values were correct. Also, I have to confirm the ordermodify command. Am I doing something wrong? I want to automate my trading strategy. Thanks in...
I want to send some data to a web page from a custom indicator. I don't need a post request, a get will be enough, so I would just need to get a web page. Is it possible? I searched through the docs, and I only found something about ftp, and in the forum I found something about a http post request...
Sorry for the vague title, this is more about tools than a specific question Previously, I imported stats into an Oracle DB, and could do what I wanted by querying the database and etc. Now, I want to do the same modeling in mql, but I am running into a conceptual problem It seems that everything is...
hi i miss one future order where the error is 0 no error s1ticket is not executed ! why ? void StartOrders() { if ( DayOfWeek() == day_ && Hour()== hour_ && Minute() == minute_ ) { Ask_price_zero = Ask; Bid_price_zero = Bid; double Ask_Norm=NormalizeDouble(Ask...
Is the market closed today?
Hi all, I'm using the LiborderReliable routines on the advice of (I think it was) forum member "7Bit"... so far it's been a godsend, it's really helped clean up some nagging little problems with my EA. In doing some further testing today, I had this scenario... which may be normal but I'd just like...
I have this warning pop up when I try to get quotes: You are going to download data from the "MetaQuotes Software Corp." history center,but your account is opened on the "Interbank FX, LLC" trade server. I don't know if that matters, but I do have beginning of the week data discrepancies. This is a...
hello i want to open buy and sells only when i get the signal in chart,,,,,,,,,,,here is the code : the problem is that the order is created on the next candle, not on the signal candle, anyone could help me please? thanks you so much
  moving high and low (13   1 2)
hi everybody : please i want a help in writing certain code i want to write a code that get me the highest price and the lowest price of a certain determined number of candles to complete my strategy note :iam on my very beginning steps in mql4 programing thanks a lot
Hello everyone, am a newbie, on this respected forum, need to transfer an indicator from VT Trader platform to Meta4 platform, the indicator name is Trailing Stoploss Levels (Volatility-Based) and it's code is: {Volatility Stop (Long)} PrelimStopLong:= HHV(H,Pds1) - ATR(Pds1)*Mult; ActualStopLong:=...
A custom indicator I'm writing is giving me some problems. I've chopped it down to the attached code, and it still turns the entire chart (and only chart BTW) into a blue rectangle. e.g. EURUSD H1, max zoom in (1 bar per gridline), black-on-white, bars. I've un-installed MT4 & reinstalled it - just...
To the outside Windows environment. Can this be done ??
1...791792793794795796797798799800801802803804805...1244