Download MetaTrader 5

MQL4 and MetaTrader 4 - page 612

To post a new topic, please log in or register
Hello Everybody, My names Dave and I am trying to create a Zigzag oscillator indicator that resembles a MACD - but without the MA line. I have tried changing the code so as the ZZ appears in a separate window, THAT part worked. :) But I cannot seem to make it operate so as when the ZZ is up the...
When I write: OrdersTotal()==0 at EA this mean that no orders are open for this symbol or for All symbols? and if it is for all symbols how can i specify it for the symbol which I run the EA on it??
Just had a noob question that I'm sure has been asked a hundred times over. Nevertheless, I am asking it again hoping someone can just answer. I'm using the MarketInfo("USDJPY", MODE_POINT); function, and my broker, IBFX, is a 3/5 decimal broker. I tried to use a Comment(Point); and also:...
I am clueless on why the strategy Tester Bid price should pull the current Live Bid into the Strategy tester. As a work around I can use Close[0] as a fix, but would like to know why Bid, is not useable. It then brings into question backtesting of Bid in EA calculations.
New article The Role of Statistical Distributions in Trader's Work is published at mql5.com: This article is a logical continuation of my article Statistical Probability Distributions in MQL5 which set forth the classes for working with some theoretical statistical distributions. Now that we have a...
  ima and imacd (2)
ı try to mov on macd for signal, how can ı write it on mql4 ? for example MOV(MACD,3,E).
  MB TRADING (7)
I have created an Expert Advisor from this site http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/index.html which only works on MB Trading MBT MetaTrader Strategy Tester but not on the Live Trading Session. Why is this so?
Do time frames always matter? For instance say I have a strategy that enters a bull trade if a doji star appears in an uptrend and a bullish trade if a doji star appears in a downtrend on a 4Hour chart. If you I use a 1minute test in the strategy tester, should I get the same results if I tested it...
I have been spending a lot of time trying to correct a StopLoss and TakeProfit problem.My Broker doesn't accept the StopLoss and TakeProfit in the same line of code as the OpenOrderBuy or OpenOrderSell. I have been very frustrated with this because of 2 reasons. I am not an expert Programmer and I...
Can someone spot what is wrong with my code. I only have one place in my code where any division is being done but I continue to get zero divide errors double CalculateLotSize(double EquityPercent, double StopLoss ){   //Code to Calculate lot size                     // Print("AccountEquity():...
Hi, Im new to MT4 and I want to write an EA, can someone please give me the cod or point me in the direction of a simple EA that triggers a buy or sale order when say the 2 lines of the Stochastic indicator cross above or bellow a level ( i.e 20 % or 80 %). Thank you,
On the EURUSD chart of my MT4 the prices from 10th June 2011 to 22 Sept 2011 and from 10th Oct 2011 to 29 Dec 2011 are missing. Does anyone know how I can rectify this? Thanking you in advance.
I have six EA's running on my PC and all are actively trading. Other than the "not so friendly" expert logs, is there a way to see which EA executed any trade? Is there a report I can generate that shows the magic number associated with each trade? Thanks to those of you who have answered my...
Hello Friends, I don't understand MQL4 language. I only have some basic HTML knowledge. I want that my mt4 have to trade automatically on following conditions. I have 2 moving averages on my chart. 20 EMA and 100 EMA and 1 Parabolic SAR. BUY IF : 1] 20 EMA...
Hi, I have an indicator which use information from another (higher) timeframe based indicator as well as current time frame data. this indicator is never displayed in the tester window, while others indicators works fine. what can I do to be able to display this indicator? thanks.
Hello, I have programmed an mtf-indicator and put it on a chart with a very long history. Now the metatrader wasn't running and working anymore. I cancel the metatrader with strg+alt+delete and startet my notebook again. But now the metatrader account doesn't open again. Can anybody help me?!
Webindia a creative web solution and web hosting company and it is the fastest growing IT internet strategy companies in India providing reliable and consistent web hosting services, creative web solutions and support to clients and partners. Webindia software development company provides the best...
I am a relative newbie in programming. Is it possible to change a line of code that plays a sound alert to one that sends out e-mail alert instead? if (SoundON == true && Bars>alertBar) {PlaySound("Alert.wav");alertBar = Bars;} I tried substituting it with if (EmailON == true && Bars>alertBar)...
Hi, I want to program an pivot - indicator, which isn't using any indicator buffer. I have already reprogrammed an existing ea: double Res3[], Res2[], Res1[], Piv[], Sup1[], Sup2[], Sup3[];int init(){   SetIndexBuffer( 0, Res3);   SetIndexBuffer( 1, Res2);   SetIndexBuffer( 2, Res1);...
I would like to be able to access two values from an indicator within an EA written in MT4. I don't have the source code for the indicator. Is this possible? If I had the source, does that improve my chances? Thanks
I've been using eSignal for around a year, but it's expensive. I've only just started using MetaTrader, (as well), so is anyone able to tell me if one or the other has significant advantages over the other? If so, what are they? Many thanks for any enlightenment - and a Happy New Year to all!
Hi, this might sound like a strange question but here it goes anyway. If I wanted create a trading robot that trades as often as 'humanly' possible while still hoping to make money in this market what is the maximum trading frequency on the order of? Is it thousands, Hundreds or Tens per day?...
hi, please can anyone help me to know how to get the lot size of an opening order (buy or sell). thanks.
hey guys, can you help me calculating something? i wanna transfer my code which is based on ger30 to eurusd that i can use both symbols. my problem is that i dont know the exact exchange ratio. for example when i open a trade after 5 pips in ger 30 (6111-6116: open now)...what is it then in eur/usd?...
Hello, I have a problem when I must close an order, it does not work; there is an "invalid price" error (129) althought the programm seems good if (OrderSelect (i, SELECT_BY_POS, MODE_TRADES) == true) {         if (OrderMagicNumber () == magicnumber)   {            int prix ;            int ticket =...
Hi! I have a DLL called from an EA which works fine as long as the EA's start() is called on incoming ticks only. Now I changed the EA so that the whole logic runs in a while() loop within start() which executes every 200 msecs. Since this change the DLL works the first time I call it but aborts...
Hey, I got an object: ObjectCreate(NameOfObject .... And now I need to place the same object several times with different coordinates but as the NameOfObject stays the same it's not possible to create multiple objects in the same chart. How can I set an extra name for each object? I would need...
is there any time zone setting in software which might b change by mistake 4m my side
I have a script that modifies the spread of a currency in the tester by editing symbols.sel I need the same thing but for Swap Long and Swap Short. Can anyone help me out with that? Or if not, then perhaps someone knows what file this info is stored in?
Hi, I am writing an EA that will use 50% of the previous 3 day range. E.G - If today is Thursday it will find the center value of Mon-Wed range and if its Friday then Tue-Thursday's range etc. I would like to be able to run this EA on smaller timeframes but still want it reading the 3 day range....
1...605606607608609610611612613614615616617618619...1218