MQL4 and MetaTrader 4 - page 965

To post a new topic, please log in or register
  void comment (4)
hi all, i seen some EA that can display a whole load of text with the comment function but when i try, the max is only up 64 how did those EA do that?
if the brokers can see the orders done via ordersend but can these brokers have a software which they can run in there sever which it can make the EA place order while the condition for the placement has not all met? If answer for this question is yes, then how can someone prevent it or...
I had a problem with Indicators in my EA when using the strategytester. It used to be that when I would run an EA in the strategy tester theindicators used would automatically appear in the chart. Admittedly things likemoving averages all had the same colour, but nevertheless they appeared. Recently...
Hi there... I need to make an EA that can retrieve data from several currency spesific charts(That I know how to do) and on another metatrader enter the trades based on the results on the metatrader hosting the EAs.... This might sound abit complicated but I was thinking an EA writes to a database...
I've solved my problem but I'm interested to understand why it behaved the way it did... I declared a variable on the global scope and also inadvertantly declared it again in init() prior to calculating a value for it in init(). Now, I think I understand why that compiled OK, becasue the second...
  Why won't it trade? (14   1 2)
Here is a simple EA (ignore the crummy algorithm). It gets the signals OK but won't trade - error 130. Where is the bug? Please! #property copyright "HS" extern int EA_magic = 20100430; extern double slippage = 2; extern double minLots = 0.1;...
  MQL 5 Issues (1)
Hi first off I just registered at mql5 but I cannot login... and even when I do after a few attempts I get automatically logged out! Any way my query on mq5 is: 1)How do you call account leverage? Is this the same as AccountInfoDouble(ACCOUNT_MARGIN_LEVEL)
Please i would like to know if brokers can manupulate EA either to give it false signal differrent to actual signal coded for the EA or to prevent it to place orders . Also i will like to know any form of influence the brokers have on EA. Thanks
Could someone help me with this: I put informations about email account like on pict. What I did wrong? I have email account on @yahoo.com Highly appreciated help from someone with yahoo account.
  HOW TO? (2)
can anybody give a suggestion if possible on how to draw an horizontal tine using an Expert advisor,such that the horizontal line limit is defined rather than extending throuhgout the chat e.g drawing a line so that it only extend from say time[17] to time[3]; and not going beyond these limit,Thanks
hi, i developed a strategy but i'm not sure if it is possible to use it with metatrader. maybe you guys can tell me if it's possible to code this one. i would like to use the strategy on a 5 minutes candlestick chart. every time a new 5 minutes candle shows up, there should be a buy order combined...
  a strategy that works!!! (33   1 2 3 4)
You keep hearing the old saying over and over again that over 95% of forex traders lose money but yet a great deal of people join in day in day out in hopes of being one of the 5%. Everyone thinks they have something special about them that no one else knows about. You learn all about technical and...
hi can anyone pleas give me indicator macd simplified codes for the mt4 thnks in advance mangeshdsonawane@gmail.com
I'm trying to use an account copier EA and am getting an error message - "unknown symbol". I believe it has to do with the fact that I'm copying from a standard account to a mini - and the m after the currency pair name is messing me up. Is there a way to remove that "m" on my platform? Thanks for...
Hi Traders! I am beginning programmer in mq4 and I would like to ask you to help me, if possible. I would like to implement into my EA small function who can immediately close ALL orders (buys, sells, buystop, selllimit, ...) with different currency pairs? This "multi-closing" can be iniciated f.e....
hi all i'm pretty new to MQL4 and have been working my way though the above article. the article itself is great as is the template example. i am however, with the greatest repect to the author, having difficulty getting the modifymarkets function to run. i.e. i have created a very simple EA...
Hi there, Summary: I am a newb who needs help. My programming experience is limited, and I’m trying to learn MQL4. I’m writing an EA to help my brother test some trading strategies. He has come up with a strategy that uses a breakeven point. I’m trying to code it but having problems. I’m hoping that...
How can I change the default size on the New Order window? Also, is there a way to change the pull down sizes on that window? Mine goes from .05 to 1.00 to 2.00. Is there a way to customize these pull downs(and the stop loss default sizes)?
Dear Folks, As my first post I was planning something simple, but it turns out it's not that simple... Not for me at least... I googled around for hours, but it seems that ever since around build 199-200, I believe they removed the Multilanguage Pack (editor) from the MT4 terminal. But since I like...
I have the following problem: I have my own EA, but I would like to use it only if check box [prompt for manual confirm] on Meta Trader 4 platform is not set. Tools - Options - Strategies - Allow trade [set check box is OK] - Prompt for manual confirm [this check box should not be set ] My question...
How can I link from mql code to history centre and pick latest ohlc to the code and use those information for calculation into code? Help pls!
Is there any possibilty that MT4 automatically sets the color and sytle of a new user drawd Trend or horizontal line depending on in which timeframe terminal the object was drawn. The color and sytle should keep constant when changing timeframes. Example: I'm looking at the H4 chart and draw a Line...
Good morning, I would like to code to go out to the average openprice + 5 pips, in the case or we have several positions. If I put the code below, i go out for all the positions but at the price of the last entry +5 pips and not at average openprice + 5 pips : if (MarketPositionMN("", -1, -1) ==1 &&...
Hi all! Who knows, how I can indicate the price on chart in painted area beetwen two Simple MA set on high and low?? For example, this chart: Thanks Best regards
Hello, I was wondering if anybody has seen an indicator which highlights the beginning and end of each day of the week? maybe something similar to this https://www.mql5.com/en/code/7753 except instead of session the days of the week are marked Thanks
I have been testing the Stochastic Momentim Index indicator dor some days and I have a problem. The indicator starts shifting to the left, not presenting the new values generating a black box on that side of the screen How do I solve this? Thanks in advance and best regards STIG
I am in need of alert based on two moving averages. I trade on a H1 chart (multiple currencies...). 3 EMA 5 SMA (Shift:1) I need notification of the 3 EMA crossing the 5 SMA (Shift:1) the INSTANT they cross (in either direction). I would like a pop-up window (alway on top) with sound, and an email...
I have program a EA that works with tick information, but I would like to change to M1, M5, etc.... How do I have to proceed? Regards,
Hi i am new user did not know where to post sorry if i post wrong. I am writing a bot with the iCC command but i want it to use CCI = iCCI(Symbol(),0,14,PRICE_CLOSE,0); Now i waned to know how get this to use the "First Indicator's Data" function. Could not find a Price_ or a Mode_ for it. Was...
Hello, Is it possible to change the colour of the horisontal line displayed for the bid price? Thanks, Pieter