MQL4 and MetaTrader 4 - page 662

[Deleted]
Hi! I want to know that, If I invest in FOREX, will I be reach soon? or what is the purpose of FOREX to make reach?
Hi, i have a question regarding getting/storing the candle info on which a specific event happened.   let me explain, suppose i am looking for the candle that has the following condition: Low > EMA(2) && Low > EMA(10)  then, i would like to store the HIGH  value data of this specific candle (say 1...
Hi guys and thank you for reading my thread. I am very new to automated trading and have been spending time on the MQL5 website reading articles.  I have also been reading through the MQL4 book.  I think I understand the content reasonably well so far and have had a go at creating dummy "alert type"...
Hi mates,  I have a question here that how can I get an email of any alert in my trading terminal. I am working on a system and an alert is given when a buy or sell signal is present. Need help regarding this if possible. Thanks in advance 
[Deleted]
Within my strategy, I use a function GetPosSize() to calculate position sizes. I'm only using the strategy with EURUSD at the time being and for the life of me I can't figure out why posSize is returning a negative value, resulting in an OrderSend error 4051. Any help would be greatly appreciated
What are the steps in loading a wav. file into my audio settings in my EA. I am trying different things and its not working. Thanks There is a selection in my ea settings to load a sound file so I can get a audible alert when trade is closed and opened. I have tried using the load tab in my ea to...
hi i want to build expert ,work with indicator ima , when ima1<ima2 or ima1>ima2 put two order different At the same time , when one order get a positive profit the expert open a one new order like order profit whth other lots, like hedge.
dear fellow traders!  I am in the process of setting up a VPS at home. Something along the lines of what this guy is describing:  http://www.tradingheroes.com/how-to-build-your-own-low-cost-metatrader-virtual-private-server-vps/  However, I am not completely  sure as of what I will need in terms of...
Is it possible to read the value of a EMA as it was at a certain point in the past, while the bar was still forming? For example, it is 16:05 and I am on TF M5. I would like to know what was the value of H1 EMA(20) at 14:35. Using iMA + iBarShift(14:35) will return the EMA for the now-closed H1 bar...
Hi all.   How can I get the Volume color ? Using Volume[0], or iVolume() function I can get only the amount, not if it is on High/Low value. See the Volumes indicator properties: How  
[Deleted]
EDIT: Thanks for your Responses so far. Please see my second post down yonder, where code is provided and situation narrative updated   Fully realizing this situation has been covered before, but wholly unable to comprehend the solutions provided. Hoping WHORIDER (sorry for spelling) or Raptor can...
I posted this topic on MQL5.com forum, and I am linking to it here for those that do not normally go to the MQL5.com site.  It is a set of pre-coded enumerated lists code stubs with trading pairs already set up into various categories.  I wanted to post it to the code base, but I did not find a...
Hey forum, I think about buying a new netbook with a mobile data-stick. There are a lot of sticks with different monthly data volume available and I don't know which one to buy. I only want to use that netbook for trading purposes. But how can I measure the data volume caused my MT4? I am not sure...
[Deleted]
void CheckIfOrderEarned()   {     int i=OrdersHistoryTotal()-1;   //----   OrderSelect(i,SELECT_BY_POS,MODE_HISTORY);      {                                          OT = OrderType();      OL = OrderLots();      SL = OrderStopLoss();      TP = OrderTakeProfit();      _symbol =...
[Deleted]
Hello everyone, I downloaded several ADX indicator Cross. I enclose what I'm using. But I want more than that to see alerts on the screen when they occur crossovers between -Of + DI and I wish I would open an alert sound. I found other but are very invasive. I would simply like that once crossed the...
please i am looking for a way to get my lot calculation step like this 0.1, 0.2, 0.4, 0.6, 0.8, 0.10  etc but i fine it had to code out instead i get 0.01, 2.00, 4.00, 6.00, 8.00, 10.00 etc please can someone help me make it like this === 0.1, 0.2, 0.4, 0.6, 0.8, 0.10  below is what i have done so...
Hi, If I manually place a horizontal line on the chart, how do I report the level where I placed the line to my EA ? How do I even identify the line ? Thanks.
I am looking for an EA that will close an open position in 3 equal partial closings of that position, that I can do at my discretion and not by preset price levels when each of the 3 equal partial closings are done. Meaning if I bought .50 lot, than I would want to close that position in 3 different...
I have some code that returns the number of digits for the specific currency pair that I use to convert my pips to add/subtract from the price. Until now it has worked without any problem but since yesterday I am experiencing problems with one of the results. Where the variable CalcPoint should...
Hi   Kindly help me with the following code. I am creating an EA in which I want to open new chart with EURUSD M1 and apply the template in newly opened chart . EURUSD chart is getting opened , but template is not getting apllied on newly opened chart EURUSD M1. I have kept the template file in...
hi i would like to divide the Order Lots (Praticl close)when the Profit  reaches certain level but the problem that it continues to divide , need help to know how to break the loop and don't repeat itself  //-------------------------------------------------  void PartialClose() {            for(int...
  is such an ea ??  (1)
hey all   i am looking for an ea with a buy and a sell button. when i click buy it opens a pending order 10 pips above the current candles open price with mm risk 1% and if i wanted to go short the same, has anyone come across an ea of this kind.  
[Deleted]
Hey there,   I'm currently writing an EA. First the 20 EMA needs to cross above the 50 EMA. Then the stochastic oscillator needs to cross the 80 level downwards. When the stochastic moves back to the oversold region and then crosses the 20 level upwards I want to place a buy order. The problem poses...
I recently started to use the strategy tester, on MT4 version 4 build 840. I have tried to find an answer to my problem by searching the forum and the web, but no results. I hope that someone here will be able to at least direct my research. The data returned by the Print function in the strategy...
Hi all,   I am trying to write an EA but I am having problems opening a trade and closing a trade on the next bar after a signal using icustom. Can someone point our my errors and how to fix them. Only one trade in any direction at any one time. Thanks in advance. 
New article Using Layouts and Containers for GUI Controls: The CBox Class has been published on mql5.com: This article presents an alternative method of GUI creation based on layouts and containers, using one layout manager — the CBox class. The CBox class is an auxiliary control that acts as a...
[Deleted]
Hi Guys! Im currently developing an EA System and would like some help on a certain thing. Basically the idea behind this system is that it will open a trade and wait for the price to rise and if the price drops by two ticks from the High of the current bar it will close the trade and then open...
In my indicator I change in OnCalculate the values of the buffer of the last 10 candles. MT4 always shows the old values values for the past candles, not the new values; only the value of the current candle is constantly refreshed. I added a call to WindowRedraw() after the buffer is updated but...
Everytime I load a custom indicator instead to see arrows or symbols, I see that letters. How can I solve this problem?
I read about the WindowScreenShot but I can't guess how to use it to print the historical charts .Say I want to use 15 min time frame and  print the last 20 days  charts .Every day to a .gif file .Any help ?