MQL4 and MetaTrader 4 - page 564

To post a new topic, please log in or register
I 've written an indicator with mql4 code. this indicator work properly in current chart but when i change symbol string from Null to "AUDJPY" for example , the indicator does not work ,  can anybody help me ? 
Dear all,   I have write a simplified version of MACD to show the rise and fall of the MACD historgram(the difference of the MACD line and the macd signal line). I use the following code to show a 1 to indicate the historgram is rising , a -1 to indicate the historgram value is falling.the...
thank you very much before. I need help, I need help from everyone to made simple EA for me. im just a trader, im not understand EA programming. is there anything that will help me for making a simple EA? parameter that i will made ??EA are: 1. no use indicator parameters, just TP, SL, and lots...
Working on trailing stop..   This doesn't compile for some reason! Been trying to figure it out for way too long and really would love this piece of code!       The only thing that I was weary about was the use of parenthesis:...
I would like to know when at some broker's server digits for the forex/currencies are changed (i.e. different) from 4 to 5 and 2 to 3 , i.e. 1 digit +more shown in MarketInfo(Symbol(), MODE_DIGITS), Question : Will that apply also for the other symbols from CFD and Futures and others or There is no...
Hi, sorry if this trivial question have been already answer somewhere in the forum, but I've been unable to find it. Does anyone know how to sort the Market Watch table by Symbol name column?   Thank you very much, Best regards Stefano 
Hi I need to create a renko chart of 14 currency pairs. Is this possible? 
  EA question (15   1 2)
I would like to know if there is a code for not opening another long position on a price that already has a long one open. And if it is possible for tick chart also. *edit: For ex: Moment 1: Price 1.3200  // I will go long                      M2: Price 1.3190 // I am waiting                      M3...
Hi All, How do I print a source code file and have the different colors for "Key words", "functions", etc print as is on screen. When I do  "print preview" it is all the one color.  I also tried to copy to Microsoft word but it copies as one color. I have not any problem printing or copying source...
extern double Lots=0.1;extern datetime StartDateTime= D'08.10.2012 10:47:33';//+------------------------------------------------------------------+//| expert initialization function                                   |//+------------------------------------------------------------------+int...
I have a library file, that implements a deinit() method. The deinit() is correctly executed within the event of unload, right after the deinit() of the master script. But, (unlike the deinit() of the master script) the file handles are already closed in the deinit() of the library file. I do not...
Hello and sorry by my bad english. I am looking for a script that close all open positions and delete pending orders when the total proffits of open orders be positive. I am trying to find this type of script but i can´t find it. Is possible somebody help me? Thank you.
Hi all, I have one issue with an ea regarding open orders. I'm looking to open opposite orders apart of an opposite distance from an existing one. Some times it opens at right distance, others at a distance above and others even a distance below. While I can understand that sometimes it could open...
cam anyone help me to create a script to close 15 orders one time thank you
MirTD
does anyone have any idea how to show price chart using the ask price?.by accessing the propoerty diaolog box one can show the 'ask line' but i want to display the price chart using just ask price.i.e. OHLC ,all in ask price.is there also a way to program in mql4 ?
Hi, I've just started learning to code mql4 over the last couple weeks and have gotten stuck with the first stage of the custom indicator & EA that I'm trying to code. The first thing that I'm trying to get this to do is to create 2 vertical lines for each week, one on Monday 6.00, and one Friday 21...
Hi all, Anyone knows of a script to plot historical trades (data stored in excel) including lot sizes onto my MT4 terminal? If possible, I would be willing to pay for a script like that. Thank you.
anyone know what causes this?
Hello, I would like to know if there is a way to compare tick1 with the previous one tick0. And if there is one, could you help me with a point from where should I start to code this one? Ex: Suppose every tick change every sec, at 00:00:00 will be tick0:1.3000 and at 00:00:01 tick1 will be 1.3001,...
  iMA egality problem (19   1 2)
yo, here's my code : int magicalNumber,ticket;double Moyenne1=iMA(NULL,PERIOD_M30,20,8,MODE_SMA,PRICE_CLOSE,i);double Moyenne2=iMA(NULL,PERIOD_M30,50,8,MODE_SMA,PRICE_CLOSE,i);magicalNumber = 98765;            if( Moyenne1 == Moyenne2 )            {               ticket = OrderSend(Symbol(),OP_SELL...
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 )              {//...