MQL4 and MetaTrader 4 - page 867

[Deleted]
Hello! I tried to find the last bar when the time was 00:00:00 using ArrayBsearch for theTime array: End_Bar=ArrayBsearch(Time,D'00:00:00',WHOLE_ARRAY,1,MODE_ASCEND); The value of End_Bar that was returned is 1! WHY does it happen?
[Deleted]
Hi, I'm an experienced software engineer. I have years of commercial software design and development experience covering technologies such as c, c++, SQL, Assembler, etc. I'm also a self taught trader. I have a Pro a/c with Alpari. I understand from the MetaQuotes website that the MT4 product set...
Hi all, I'm trying to Send some market order on a demo account through the OrderSend function, setting TP and SL. This is my code: RefreshRates(); TP=Ask+120*Point; SL=Ask-120*Point; Print("Sending BUY. Point: " + Point + " EntryPrice: " + Ask + " TP: " + TP +...
  TZMT4API  (6)
Hello. I saw the API for MT4 Client Terminal. The problem on that API is that it is a Demo, So once a while it brings popups. How do I get a fully working API?
[Deleted]
  fib time  (11   1 2)
does any body know of an fib tool that measures time in increments of 38.2,50 etc thanks
Hello everyone. For some reason MT4 wont download historical data from Meta-quotes, and my provider doesn't seem to understand my need for historical data that goes back past 65000 1-min bars, (I realise the limitations on number of bars per chart, but want to back test over certain periods). The...
Hi Can anyone help me how will I use this DailyPivotPoints.mq4 indicator in metastock or I have to metatrader Regards Vinod
[Deleted]
For some time now I have been unable to find an mt4 script which would close a nominated percentage of an open order when price hit a trailing stop. In my scenario it is a partial close trailing stop, which once triggered resets a stop loss, the user can select the portion of the remaining trade to...
Hi, if I write the text as Object below the line, I can use the same coordinates for text and line and it works in every TF. But how can I write the difference, when I want to write the text in the middle beside the line? How can I program my offset, so that the difference is in every TF and for...
[Deleted]
Hi, It feel real stupid to ask that question, but there must be a solution to show the MovingAverage of another Timeframe (e.g. Timeframe: M30; Periode: 300; Shift: 0) into a smaller Timeframes -> M5. There should be a solution without downloading a new indicator, but I just can't find it.
  iCustom question  (17   1 2)
Hello everyone, I need to get some Resistance, Pivot and Support lines values from a Fibonacci indicator. I have to read and store R1, R2, R3, Pivot, S1, S2 and S3. The values are calculated once per day (at midnight) and are static for the whole day. It should be easy to use the iCustom, but I...
How can I manually update the MT4 platform? Is there any separate application for update MT4 platform? The current version is 419 Build my Broker ( www.xtb.pl ) has 409 and did not update the MT4 apllication yet. How to update the platform, because I have the problem with Expert Advisors.
Hi, the problem I would like to ask it might be alredy solved here. I am new here. The problem is that I have an EA that works fine on one broker but failed to work right on another. The EA put 1 pending order in its initial concept but with my new broker it put hundreds of pending orders at once....
Hi, I have a couple of support and resistance lines I draw manually and would like to replicate them into the future. I wonder if there is away to copy the items I have created on the chart and move it on the future "where there is no bars " using cycles to keep the distance ? Any help is highly...
i should stop trading between dec15 and jan15, but in BT nothing gets blocked ... what is wrong? if (Month()==12 && Day()>=15 || Month()==1 && Day()<=15) return(0);
Hello everyone, I have written my first baby of an EA... if you could call it that. More like an embryo. I am trying to get it to buy a small amount on a MB Trading demo MT4 account. Here is the code so far: int init(){start(); // I had to put a call to start() here because otherwise it wouldn't...
Hello freinds, I need your help, please. I wrote an EA which closes a trade with a different function. Every time I have the specific parameters for closing the trades. Sometimes, the EA closes 2 diffrent pairs. Sometimes, it closes 3 different pairs, and sometimes it closes 4 different pairs. I...
Hi, I have drawn a trendline in my chart. Now when I click to other timeframes, I see that line at the same time on a different level (in max about 300 pips). In one the big timeframes (>H4) the line doesn't exist. I checked the properties and it is visible/allowed in each timeframe. What is wrong?...
[Deleted]
when i use this ea in my meta trader 4 the ea open as a while and closed suddenly and i note that the ea icon its by gray not colored one if there any one know the reason or the missing step plz tell me thx
Hello all. I did some research before posting about the correct use of iFractal I am using this function to get the most recent swing high swing low into a routine with a very simple code double getLastHigh() { double high; high = iFractals(Symbol(), PERIOD_M5, MODE_UPPER, 3); if (high...
Hello, Since the 4.09 build version, MetaTrader doesn't want to download GBPAUD and GBPCAD history in the history center. Someone has a tip for this ? Thanks a lot for your help. Abrik
[Deleted]
  pending delete code (help)  (11   1 2)
Hifellas howcan I delete a OP_BUYSTOP order if the last OP_SELL order it 's closed andthe same thing OP_SELLSTOP if the last OP_BUY it's closed Itried this code but it didn't work many thanks in advance for your help void Delete(){        int cnt;        datetime buy_time...
hello i want to program an EA this EA switch to the next chart window each minute we can switch to the next chart window by CTRL +F6 or CTRL+TAB i need your help please; how can i program this by SendMessageA ? or other method please example thank you
  Problem with File functions  (16   1 2)
Hi, I'm currently trying to use file functions, with csv files, I create 3 files in the init function and write something, it works, but when I try to write something else later, files aren't modified .. Here is my code: int init()  {//----    touched = FileOpen("bollinger_touched.csv",...
A question here for someonw who can help. I want to select a currency pair, then check to see if there is an open trade on that pair or not? >>> if no trade are open on that pair xyz............ thanks.
  Error #0 MT4  (9)
hello, I took a few months to see EA's using two, testing on demo and real, and I will work without problem until yesterday, I suddenly goes out, only in real, the demos are working. The command failed with error # 0 And I have not changed anything is a robot position in eur / usd at different times...
OK, I am sure this must have been discussed before, but I could not find it to save my life.. so, what else do I need to add below, so to select from history the order just closed (ie the latest addition to history)? (I want to create an object /visual reference on the chart based on data related...
[Deleted]
hi - i´m sigi - a beginner in traiding. i use the mt4 since 2 months only to watch the charts. since a few days when i start the mt4 it doesn´t connect me automatically any more. it did before. if i try to log in again nothing changes. do you know what i have to change to get a connection again? i´m...
[Deleted]
Hello I have 2 active account and 2 demo. All are MT4 platform. I found that MetaQuotes already released Version 4 Build 419 but my MT4 versions are still 388, 401 and 409. I dont know what's wrong with my Live Update System. Please let me know how to fix this problem. Thanks and Regds mithetnme
Hello Cummunity, the last days i have been wondering what ECN Brokers are and why people use them. What i found and read gave me this picture: ECN Brokers don't charge you a high spread but they charge you a commission depending on the lotsize you trade - approx. 6 Dollars/Std. Lot They handle your...