MQL4 and MetaTrader 4 - page 684

I try to open order with OrderSend function. But it makes error code 136   Code that i use    void OnStart()   { //---/--- get minimum stop level   double minstoplevel=MarketInfo(Symbol(),MODE_STOPLEVEL);    Print("Minimum Stop Level=",minstoplevel," points");    double price=Ask; //--- calculated...
I need a Hellp, please. I have some indicators MQL4 source file ( not .ex) but My MT4 cannot read it. I was putting this file to "Indicators" Folder. What i have to do to see my indicators on MT4 chart. Tank You for helping
[Deleted]
Hi, im still a newbie on using expert advisors and indicators, My question is that i used the same indicators and expert advisors on 3 different brokers, but the 4th one requires that my ex4 comes with a mql4 source file to come with it, is there any way to create it or what do i do from there?
Dears,   How to understand "DRAW_SECTION"?  When shall I use  "DRAW_SECTION"? and When to use "DRAW_Line"? What's the difference?  Thanks.  
[Deleted]
The "Entry Price" to buy EURGBP is listed as being "0.78617".  My base currency is USD. Is the "Entry Price" in USD or EUR? How much, in USD, would it cost to purchase a standard 100,000 lot of EURGBP?
I noticed that the DC will show a ms ping of 0 in the Status bar drop down list, but the journal will show ms ping of 0.83.  Well, shouldnt the status bar DC list also show microsecond or sub-millisecond precision (0.83 ms) instead of just rounding down to 0 ms?
I need some opinions about this. Lets take a BUY trade for example, we know that it is opened at Ask price. Then, the question is where to put SL and TP if we want them to be 10 pips, and why? SL should be at: Ask - 10 pipsBid - 10 pips TP should be at: Ask + 10 pipsBid + 10 pips    What about...
I am trying to recreate the BandWidth indicator for the Bollinger Envelope (not BBands, but Envelope). I am still struggling with the not normalized version. See code below. My issue: when trying to draw the line, no line is to be seen. The formula is (UpperBB - lowerBB) / middleBB. I tested around
Hey folks, I simply wanna do the following thing: if the bollinger bands (upper and lower band) spread out, there should be an arrow on the upper and lower Band be drawn. For the upper band is it working, but for the lower band I'll get the array out of range error. May one specialist here can teach...
I badly need an indicator for forex tester for an alert at the price crossing a particular level. Would be immensely grateful for the help. I have spent 3 days, looking for it with no results!))
How do Mean ? https://www.mql5.com/en/charts/2852355/usdchf-m5-a1-capital-menkul  Metaeditor is has.  
  error 4108  (2)
I don't understand this: A pending order is opened with ticket 5 but it can't be closed even with the right ticket nr. it shows error 4108 what means invalid ticket. Later the order (here order #5) is filled & modified. That happens all the time in the tester with that ea. Can someone explain me...
According to some documentation signal subscription should be available in the toolbox but I am missing the tab here. Why?...  
  Awaking the EA  (3)
Hello freinds, I have an EA that sometimes id going to "sleep". I mean that although the conditions are fit to open a trade, it doesn't open it. What I do is to reinstalle  the EA and then it opens the trades. Any idea how to overcome this sleeping? Thanks.   
[Deleted]
I want to set a take profit for trades that will result in a specified dollar gain. How can I calculate this?  In the examples below, what math will I need to use to set a take profit that will result in a $50 gain?   Thanks!    Pair: NZDUSD  |  Entry Price: 0.770000  |  Volume: 53000 Pair: EURGBP...
[Deleted]
Please, Please, Please, Please develop Metaeditor for Android quickly...many of us developers would really like to code on the go!
First of all, I apologize for my poor english, I'm using the google translator to write this post. This is my problem: Imagine that i've this class: class Example {    int hello;} And I need to do something like this extern int Aux;Example ex;ex.hello = Aux; I want to know if there's a way to delete...
[Deleted]
Hello, Metatrader has the habit of popping up windows if it is used with incorrect login data. Therefore, it seems, one cannot backtest automatically, i.e. start instances of Metatrader from a program, without having it log in to a demo account. However, from time to time, logging in does not work...
Hi Guys. I often run MT4 in portable mode for ease of copying/moving installations . However, I recently discovered this difference.   When I run MT4 in normal mode, and then request as much history from the broker server as possible, it goes all the way back to 2009, but when I do the same thing in...
MetaTrader 4 Client Terminal build 610 Terminal: increased the maximum length of the field in trailing stop placing, as well as in SL and TP modification dialogs.Signals: improved initial synchronization with a trading signal.MQL4: fixed sending emails from MQL4 applications.MQL4: fixed writing...
[Deleted]
  Help Simple Code  (6)
hi, can anyone explain me how to do this simple code: i have an expert advisor, and i have to tell him to stop open new trades for a certain period of time. practically after that the program close le last trade , this code must stop the ea for a while(like 30m o 1h). sorry fot the bad english...
Hi there, I've been fighting this thing since yesterday, tried different things, googled like a mad... I can't make it work. Let me explain: I want an indicator that marks with a vertical line the end of different times (end of day, end of week, end of month, end of quarter). The length of the...
  News tab not showing  (14   1 2)
Hello, My news tab is not showing. I believe that it should appear in the terminal window. Under tools/options/server I have checked 'enable news'. It still doesn't show, even after restarting MT4. Any ideas why this is? Thank you
Hello,   I am wondering, if anyone could help me? I have an EA, that sends messages to my phone. Problem is, that the data are not refreshed so I do not get any signals, or much less than I should. When I get to the somputer and restart metatrader, or open  MetaEditor and compile the script, it is...
How to differientate if a position has been closed by an user manually or by the EA logic? Is this possible? Greetings BeLikewater
QUESTION 1. LONG TERM  EA PERFORMANCE i back tested this ea ("LONG TERM  EA PERFORMANCE") in long term data ticks like 10yrs and got excellent result,then i back tested again on short term ,like 1yrs performance but the result was not good as long term performance,it was consolidating up to one year...
Hi Does anyone know of a open source news filter indicator that is easy to use and call it (using iCustom function)? it should be able to consider high impact / medium impact news and also those Speak news. I know of FFCal but it is too confusing, and I couldn't find the right way of calling it...
Is anyone able to help and advise why this consolidated position indicator (from http://www.informedtrades.com/blogs/3d_fx/2492-consolidated-position-indicator-mt4.html) when a position is partially closed, does not include the remaining open position in the calculation? and if so, suggest what...
Hi, Need help for some basic programming here. Im currently using an EA. I would like to be notified through Push Notification in MT4 once the EA open or close a trade. Any idea how to do this? It doesnt have to be incorporated into the EA, as long its workable.
[Deleted]
Hello, I'm trying to build a relatively simple EA that should log: a) All trades that have been closed (either manually or by TP/SL); b) Time, open, high, low and close data for bars between trade entry and trade exit. I have attempted to use the CopyTime, High etc. functions, and assign the data...