MQL4 and MetaTrader 4 - page 568

To post a new topic, please log in or register
How to get day from price bars ? Thank you
Hi there, I often open some positions on the same stock step by step. In the chart, I can see the ticket number like #123456 buy If I do this 4 times, I have 4 lines with my 4 stop loss lines which I also add. Now, do I have a chance to rename or comment on the order somehow like # 123456 buy - this...
  i need help (4)
when i was working to make my EA , i was to compare the cods to test it and while it compare  the electric cute now i cant find the cods at EA what can i do to get back the EA before the electric cute   thank you for your assist and your time  
Hi everyone.   I've created a script that shows the record(OPEN,CLOSE,HIGH,LOW) 15 days before the present date. The problem is i dont know how to determine whether the dates falls saturday or sunday which means there is no market on that date...     thanks.... 
Hi everyone...   Is it possible to export data into excel and specifying what cell to hold a specific data. I have used the FileWrite with the delimeter ";" and "\t" in order to put data on separate cells but it failed. All data are in one single cell...     tnx.... 
Hi everyone.   Is it possible to send .csv file to an email using SENDMAIL function?   tnx    
  quickie (2)
Hello MQL4 community, What is the URL or keyword(s) for the MQL4 neighbor site providing a forum to traders seeking ideas for FOREX trading strategies, please? Thank you
I use this code to open orders , the OP_SELL works correctly , BUT the OP_BUY is always 2 pips below of the 'take_profit' level , why ? , something wrong ? OrderSend(Symbol(), OP_BUY, lots ,Ask, 3, Ask - stop_loss * Point, Bid + take_profit * Point, IDENT, MAGIC, 0, Blue); OrderSend(Symbol(),...
Hi everybody! I tried to re-write the "Hello World" genetic algorithm, originally written in java, found on this site: http://www.havnemark.dk/kim/wordpress/?p=28 I think i found a better and faster solution for the problem, but my script works very different way like the original. I am not sure...
//+------------------------------------------------------------------+//|                                                        test1.mq4 |//|                                          Copyright 2013,...
I am confused about Identifying live account in MT4 Because in my broker MT4 the Demo account also doesn't have Demo suffix after the account number in top of the terminal window.
Published new article MetaTrader 4 Expert Advisor exchanges information with the outside world: A simple, universal and reliable solution of information exchange between МetaТrader 4 Expert Advisor and the outside world. Suppliers and consumers of the information can be located on different...
Hey guys, My EA basically states, if Total Open Orders <= 1, buy/sell conditions. What I want now is for the EA to see that if it creates a buy order, it can still allow a sell order to be made but NOT another buy order. My EA states that up to 2 orders can be open at one time, but I want it to only...
System updated on Sunday with Build 451.   Mail service no longer works.   I have reset smtp on router,  25 and 587.   I deleted email.ini.   I have even set to different smtp servers.   Same error message.   Mail: Error connecting to smtp.XXXX.com.     No matter where I put it.    Any suggestions.
How can I read the value of the Median Line in the rsi window? Please note that I need to read the median value according ro the RSI Scale (0-100) not the price   Regards 
Hi. I found an EA for moving SL to PSAR. I want to this EA that move stops to PSAR on only PROFITING positions. I don't want to EA set and move Stop Loss to Parabolic SAR when the position is loosing. Can you help me to modify it?    
Hello! I need help.  I have constructed an indicator which obtains results for every tick based on 2 other indicators which I call by iCustom function. I pass the timeframe and all the necessary arguments but the problem is that it gives me different results on H4 and H1 scales but the arguments are...
  refurbished bars?? (11   1 2)
Hi, I re-wrote an indicator to make it faster. It calculates in principle EMA( EMA (Volume[i]) ) in two buffers of the Indicator and does s.th with it. So practically I do not need the intermediate EMAs to be stored and shown. Well instead of having the EMAs in buffers with iMAOnArray() for the...
Hi all,  I have one issue with trailing stop.   In code that follows when I use count down  sell trailing do not work, but if start to count up it work fine. Any clarification regarding the above ?    void Trail()    {//0                  int TrailingStop = 0.25 + StopLevel;      double BaseProfit =...
New article MQL5 Cookbook: Analyzing Position Properties in the MetaTrader 5 Strategy Tester is published at mql5.com: We will present a modified version of the Expert Advisor from the previous article "MQL5 Cookbook: Position Properties on the Custom Info Panel". Some of the issues we will address...
Program C --> abs(-5) = 5 How to use absolute in indicator code ? thank you
Hi All, Is anybody aware of a mqh which will give you a DateTime value with milliseconds? E.g. 25.03.2013 13:09:01:123 I know this can be achieved via a DLL but I am hoping for a cleaner solution via a Include file. Regards Jimmy
Hello everyone...  Is anyone have an example on how you can access OPEN, HIGH, LOW, CLOSE based on a time? for example i want to access the values of a certain symbols from 00:00:00 to 24:00:00 which mean one day. I already looked at the documentation but i have no success. And how will you set it...
Hi   Is posible to download the backtester in a excel file, not i talking about the report, i need to download the information that appear in the data window for example:   buy 1.20 stop, 1.1960, tp 1,23, ema 200, 1,18, ema 50 , 1,1850, Psar 1.1750, this information dont appear in the backtester...
Hello,  I need Help for encoding a Technical Indicator.    Standard Deviation subject to simple moving average 20 periods I want the standard deviation of the daily, not average standard deviation Thank you for helping me,    
Hi Everyone,    Could someone please help, I have lost my list of currency pairs on all of my profiles it is the list that appears just above the profile name at the bottom of the screen.   Thanks in advance.   Roman  
I want to create this thread to discuss trends and forecasts for EURUSD All the people are welcome...
I'm drawing trendlines on my swings. When a high or low is broken, I want to delete old trendlines (sometimes more than one). This is simple to do when the chart is live, open and active. What I am trying to solve is when the trading platform has been shut down for a while. Once the platform is...
HI, Is it possible to draw a line in the indicator box, and have it change colorswhen a condition changes. Please show an example..thx..
#property indicator_chart_window -- > change to  #property indicator...... ?? Thanks