Download MetaTrader 5

MQL4 and MetaTrader 4 - page 616

To post a new topic, please log in or register
The function I use to calculate my lots //Code to Calculate lot size       if( ((bear.signal == true)||(bull.signal == true))&&(LotCalculated == false) )       {           Print("Calculating Lotsize");            Balance = AccountEquity();            StopLoss =...
Is it possible to display the trade line as green for wins and red for loss? Right now, my trade lines are just displayed as blue or red randomly. Thanks!
how to allow 1 trade per day only?
  Error # 130 (5)
for(i = 0; trade_flag != 1 && SSL_flag != 1 && BSL_flag != 1 && SSL_flag != 2 && BSL_flag != 2 && i < 100; i++)    {        if(//<condition>)        {        trade_flag = 1;         //<DECLARING BUY PRICES, SELL PRICES>                        Print("Buy Abv ",DoubleToStr(buy_price,4),", TGT - ",...
New article The Last Crusade is published at mql5.com: Take a look at your trading terminal. What means of price presentation can you see? Bars, candlesticks, lines. We are chasing time and prices whereas we only profit from prices. Shall we only give attention to prices when analyzing the market?...
Hi, i am relatviely new to MT4 and have written my first EA. -when i run it using a demo account using the Strategy Tester i enter the dates to test and click START - the results in the journal window only show me about 1 day's worth of results - the dates i entered were for at least 2 weeks - i...
First I would like thank mladen for his help with the csv importer and exporter. If you are running the estimation across many currency pairs, they are really a huge time saver. In this thread I will explain how to set the exporter, storing the data to the Rapidminer repository and lastly the svm...
excuse me sir, introduce, my name Rendra, i'm still newbie, may i ask masta masta in here to teach me about how to make expert advisor with meta editor from zero hehe, i want make expert advisor with my own strategy, thanks before :)
Hello I haven't been able to find a report of this problem. When I access the strategy tester I do not see the "use date" or the slider which controls the speed, or any date fields. Does anyone have any idea? it used to work. To be honest, it happened once before and I don't recall how I was able...
Hi, Complete newbie Is it possible to have coded a button that sits on an MT4 chart, that when clicked, places a Buy/Sell stop OR maybe LIMIT order in the terminal, based on pre configured settings Thanks Charlie
Can anyone help me to code closes opened position by equity automatically, if it loss $100 it closes and if it profit $100 it closes, after closes it sets another $100 automatically.
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?
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?
  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
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...
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 guys, please i need a reliable and properly regulated broker,that has confirmed fixed spreads on its platform, all the ones i have used always increased their spreads abnormally, making it difficult for me to plan my trades well. any help will be highly appreciated.thanks. Williams....
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?...