Download MetaTrader 5

MQL4 and MetaTrader 4 - page 300

To post a new topic, please log in or register
Hello, I would like to use realtime Data fromt MT4 in Ninjatrader7 (NT7) but the Broker doesn´t support NT7 The Data comes in MT4. How can ich get the Data in realtime from MT4 to NT7. Is it possible? For reply many thanks.
Hello, I have a continued problem with the creation of screenshots in metatrader. There is no consistency to this problem that I can find.  The problem:  Screenshots are being created with 0 bytes (sometimes) I'm not sure how to solve this as there is no consistency.  I know people are going to ask...
New article Third Generation Neural Networks: Deep Networks has been published at mql5.com: This article is dedicated to a new and perspective direction in machine learning - deep learning or, to be precise, deep neural networks. This is a brief review of second generation neural networks, the...
Hey guys, is it somehow possible to place the indicator subwindow above the main chart window? 
Information to all   Hi guys, I deal with now time optimalization mql code. I have found that preprocesor mql language test all boolean conditions even though the result is clear already after some condition. Example: When 5 conditions type boolean and your code is: if  ( cond1 & cond2 & cond3 &...
I have made an EA. However it does just first trade and then the time is halted (not the test but it does not move forward). I have been searching the mistake for very long time but found none. How it should work: First trade is closed by stoploss or takeprofit. If the first trade was buy and was...
I need a ea for mt4 terminal.simple ea,moving average base ea they have take profit, stop loss with equity growth option, please any expart help to create this ea. 
Hi, I have some sentiment data for currencies and commodities. The data is produced in hourly and daily format. I have created a widget that displays the sentiment and gives an idea of where price will move. I want to integrate this into MT4 and I dont know whether to use a Indicator, EA or app.  or...
extern double MaPeriod = 14;extern double MaShift = 0;//extern string MAMethodHelp="SMA=MODE_SMA;EMA=MODE_EMA;SMMA=MODE_SMMA;LWMA=MODE_LWMA";extern double MaMethod = MODE_SMA;//extern string MAAppliedHelp="PRICE_CLOSE;PRICE_OPEN;PRICE_HIGH;PRICE_LOW;PRICE_MEDIAN,PRICE_TYPICAL;PRICE_WEIGHTED";extern...
Hi, for a better overview I sorted my indicators in seperate folders. Now the EA can't find this indicators with iCustom Function, because he is searching direct in MQL4\indicators-path. What can I do?
Hi, I'm new to MQL I am working on an EA with a simple strategy trading on a certain price levels. My defined price levels are 00, 20, 50 and 80. So let's say in a EUR/USD pair if the last two to three bars closes at my trigger price level i.e. 1.30500 then I will execute a trade with a take profit...
Hey guys, I know it was her few times. I'm trying to get candle closing always in 60 seconds (at the end of bar). I know about MQL4 coding nothing. But I tried a lot of codes here for that but no success.  Probably because I don't know in which part of code source I should insert it.   Could someone...
Automatically loading .set files on OnInit()? Concerned when terminal crashes or restarts that the EA will not associate with the .set file required. Looking for it to automatically pull this file and use it on OnInit()?
Hi guys, I have this problem: I have indicator which calculate some arithmetic operations. If change period on chart --> all aritmetic operations have to be make again. This very very slowing down and placing a burden on my pc. And some data is loss. My idea was - simply demonstrative mql code:...
Hi, I'm fairly new in MQL is there a way to get the exact value of the Digit variable let's say for EU 1.3050, is there a way to get 3050 or can I do it by splicing the variable? Thanks in advance!
I am a new trader and using a demo account with MT4. I have saved a profile EURUSD but it is not loading, they are in the profile list. Can anyone help ? I attach screenshots.
Please what is rebates and how is it calculated in forex and CFD?
Excuse my bad English. I have a problem with ArraySort(). I used it to classify a basket of orders before closing. Rarely, but from time to time I take a "Invalid ticket for OrderClose function". If I do not class them, I is never this error. I cannot find or is my error! If someone can tell me....
hello. Some one cane help me to write a simple code that can i use to summation elements for an array. tks.
Does anyone know why the ping can be so dramatically high or way out from the ping test I carry out from the SRV file of the brokers server within CMD? It seems very ambiguous what this number really means let alone where it is derived from (definitively speaking)?
I need to modify BuyStop order when market revers with keeping 2 pips Gap. i use this following code. but it is not working. someone help me to fix it.   void BuyStopModify() {     for (int i=OrdersTotal()-1; i >= 0; i--)     if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))     {         if...
L14
  I NEED HELP (3)
hi there.. i am a new trader..just join forex trading for about 2 month ago. just want to ask about market execution and how it works because i cannot enter the position more than 0.50 volume. i tried 1.00 volume and its executed with "not enough money" stated. what should i do?
Let's say i have opened order 10 buy and 12 sell, and current order profit from OrderProfit() function is let's say 1 USD, and i have profit target 5 USD, with this situation, can i calculate 5 USD - 1 USD = 4 USD  that mean 4 USD from current market price i can make order modify to all order with...
Hi, My problem/question if I have created the fxt-files my self (tick-data of Ducaskopy, GMT) I want to be sure that they are not mixed with the prices (and the broker-timeshift) of the broker I am logged in! If I test an EA in the mt4-strategy-tester I can get the quotes: Bid,...
Hi, How to get today's high/low? while i run on any timeframe whenever candle closed i need to get today's high/low value! please suggest me to get the easy idea! i tried, but it shows alltime high/low: int   firstbaroftoday=0;double today_high=+99999,       today_low=-99999;for (int j=...
Hi, I'm trying to code a EA for the Japanese Candlesticks.  I want an EA that emails/texts/alerts me when a trading opportunity presents itself.  My code is below.  If anyone can help me or offer any feedback, I'd greatly appreciate it....
Hi forum, I want to make an indicator which calculates the total risk of all open orders. My idea is to check all OP_BUY and OP_SELL orders and calculate the risk of each individial order by using OrderOpenPrice() and OrderStopLoss(). Then I convert this into my account currency, add them and...
Dear MQL4 Users, is it possible to return a reference in MQL4? E.g. to a member variable. In C++ this is common practice, but I get an ugly "reference cannot used" error from the mql4 compiler. Thanks in advance, Tom
Hi. I'm looking for a programmer to create a relatively simple trading robot. Having manually tested half a system and breaking even, a further indicator needs to be built and applied. I just can't find the right indicator anywhere but maybe I'm looking in the wrong place?. Should this work (and in...
Hello, the below is failing to open. when i compile it it shows errors. Help clear the erros please //+------------------------------------------------------------------+ //|                                             Momentum Candles.mq4 |...