MQL4 and MetaTrader 4 - page 679

I add following code to display Spread in chart. but it show spread as whole number not as decimal. (ex: it show 0.2 spread as 2.0) how to correct this code?          {   ObjectCreate("Spread", OBJ_LABEL, 0, 0, 0);   ObjectSet("Spread", OBJPROP_CORNER, 3);   ObjectSet("Spread", OBJPROP_XDISTANCE,...
Hello there Im developing an EA, that needes to be able to trade x position for every side as maximun. To make it easier lets say X is = 1. Meaning Only one buy market or sell market order can be activated at the same time. Not more than one for every directiom. Ok then this EA use a lot of buy...
Hello, I have a profile with 40 charts and when I use it there is an indicator in each chart which makes a screenshot. The problem here is that there are sometimes two screenshots of one chart. These screenshots are a bit different. The second screenshot contains more current data. I think that the...
Hello guys, i tried this as its specified in the MQL4 Documentation at: docs.mql4.com/basis/variables/inputvariables but it's not showing the commentary in the parameters window as it should.. //--- input parameters input int InpMAPeriod= 13 ; // Smoothing period input int
Hello again, that tiny thing is playing games with me... I have reduced the code to the mimium in a special EA and I can reproduce the failure with that. I stack a ticke# in the code and when the system is going to trade the oposite direction, I tried to Close the order with the stacked number. Over
How do  draw a parallel line  https://www.mql5.com/en/charts/2986065/eurusd-m5-gkfx-fx-cfds 
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? 
[Deleted]
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...
[Deleted]
  Opening candle  (5)
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()?
[Deleted]
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....
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...
[Deleted]
  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?
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=...
[Deleted]
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...