MQL4 and MetaTrader 4 - page 577

To post a new topic, please log in or register
I have both EURUSD and EURUSDpro (and likewise "pro" for other currencies pairs) at my MT4 market watch terminal. But I am only allowed to trade with the "pro" symbol pairs because of the narrower spread. My MT4 can identify the trades triggered for EURUSD from signal providers, however no...
Hi, I am trying to add text at the last bar on the chart. Is it possible? Any suggestions? Antony
My question is this. I know nothing about programming but Ican install downloads in expert advisors, templates and indicators. Is theresomewhere on this site where someone has made an expert adviser, or indicator thatwill alert me if the close crosses a given moving average.. I would like for...
hello  is there a code or a function that returns the account open lots (long or short) for a specific symbol??? thanks!!! 
I recently upgraded to Win 7 and then downloaded MT4 Build 225. Prior to that I had not upgraded MT4 for quite a while (somewhere around the summer of 2009). Since the fresh install, MT4 has not been saving my layouts, and does not save any profiles. At every startup it shows the 4 default charts...
Hi, Please let me know - if I already have MT4 downloaded from this site in my PC and now would like to download MT4 from a broker platform, that I'm going to start to work with, should I first uninstall MT4 from my PC and only then to download MT4 from the broker or it doesn't matter?
Hi guys, I would like to ask this question, If I don't placing (omit) a magic number command in the EA, will my EA still monitor and closed my manually ordered. Thanks for any advices from here.... AZR
how can i get highest value of close of five bars (shift 5,4,3,2,1)? i need it to my EA, thanks :)
I just opened an account at Oanda and tried to install their version of MT4. The installation window opens normally but remains locked on the second step: "downloading the files" (see attached file). My computer runs with Windows XP SP3 and I previously installed, run, and uninstalled properly MT4...
Hi all,   I need to open an order apart other x pips. for that I though to use this kind of function, but seems it do not work properly.  Is that possible take from you some help ? extern int OppositeDistance  =  2;   if(BuyAllowed )              {//...
I'm delving into some MT4 EA development, and have a problem that's got me stumped.  There's a simple call to a couple of builtin technical indicators as follows:- double tMA = iMA(symbol, timeframe, MAlen, 0, MAtype, PRICE_CLOSE, shift); double atr = iATR(symbol, timeframe, ATRlen, shift); Shift is...
Would this work well for a random magic number??  // logic: AutoMagic is generated when placing an order. It is not reclaimed if terminal is closed and reopened though. //          StaticMagic can be used to continue an open order or used manually. extern   bool automagic?         = True; extern...
  Alert show up (15   1 2)
Hi all,  While the order is placed and works fine every time a new order is open the alert shown up. This should only happen if the order fail and that is not the case. Follow is the code. Could any of you tell me if the way and place of the error lines are wrong ?   void...
hi friends,    i am trying to do a indicator that can count the number of upwards or downward hourly candlesticks (say over the last 10 candlestick)  Then prompt a 7 on the indicator when there are 7 out of 10 upwards candlestick or inversely  there is 7 out of 10 downwards candlesticks and also to...
While I'd like to plan to acquire a new trading computer & I THINK mutiple monitors make sense, so far, I've been able to unearth any meaningful information discussing this in any detail. I apologize for asking the question as I suspect it's been asked & answered before, but, again, I've been unable...
Exactly 5 or 6 D1 bars for every trading week ? Is it different from this broker to that broker ?  Bars open time & close time are always the same between brokers or different ?  Anyone knows that a week has 5 working days, but I see 6 D1 bars per week both on the chart and in history center.  These...
Hello, I created a .fxt and a .hst file from CSV data with use of the simple_csv2fxt script. I changed the script to create a custom named symbol "TEST". This is because I want to show up with a different symbol name in tester (other than "EURUSD"). The "TEST1.hst" file is working, I can open it as...
Hello, Can someone explain to me the style: SetIndexStyle (0, DRAW_ZIGZAG); What is it for and how it works. thank you,   Pierre8r 
Hi Can someone please tell me how to remove this bad tick from my charts ? https://www.mql5.com/en/charts/122682/audusdm-w1-smarttradefx-com http://charts.mql5.com/1/244/audusdm-w1-smarttradefx-com.png Thank You
I am a bit of a novice with computers, have just purchased an autobot for trading forex and have been told to insert a couple of lines into, well this is what the manual says:-     If you already have MetaTrader 4 installed and updated, place the following files: forex1000pips_eurusd.ex4...
I'm working on a project that loops through an array of all available pairs. Currently I hardcode this, but this is obviously not good programming practice. Is there a way to do this dynamically? Thanks, Mango
As per the title. Is there an easy fast way to have an alert set to a drawn line horizontal ? Thank You
Hi I downloaded the mobile app for MT4 android but im not getting any data? I thought it came with a demo account? I have a demo with a broker that doesn't use MT4 mobile can I just use that login and password ? Thanks.
  Timevalue (1)
I'm working on a project for an alert at a specific time.  I'm using Excel 2007.  I would like to see an alert, let's say at 0600.  The formula being used is:( ='mt4'|high!eurusd).  This gives me realtime data, but I don't know how to convert the timevalue. Any help is appreciated. 
  memory-saving (2)
Question 1. (A constant) vs (an initialized local var of the same type): which is more memory-saving ? #define pi 3.14 vs int start()    {     double pi=3.14;     ...    } Question 2. Declaring a var inside (if) or (for) or (while) vs declaring it outside. Which case is more memory-saving ? Question...
Hi All, could you give me any approach how to measure candle accelaration? any code example or pseudocode. Regards. 
Hi, I am running a same EA on different currency pairs. I want only 4 trade openedfor any specific currency pair, meanwhile maximum total trade for all currency pairs is 30 trades. For e.g I would need 4 trades opened forEURUSD, other opened trades can be of different currency pair but not EURUSD,...
Can some expert shed light on my EA. I am trying to store tick data into an array, which always stores zeros. I can, however, successfully export ticks into a text file. Attached is my EA and the results
Can anyone help me with how to program any mt4 indicator to initialize on only one Forex Account? and if the indicator is place an any account it is not program to work on you would get a message on the chart stating "wrong account"
I wrote a custom indicator but it seems I cannot make the color user defined. Any solutions? Thank you.