Download MetaTrader 5

MQL4 and MetaTrader 4 - page 442

To post a new topic, please log in or register
I do not understand what "magicnumber" exactly does. Can anybody help me with this.....! FXSpeed
Hi all, New here and new ish to mt4. A very quick question.... I am trying to write a ea which will buy and sell at set levels under certain conditions. I have created the condition filter but am having problems in automating the buy and sell orders.... what I want to do is enter an order to buy or...
where can I find historical prices for the 5-minute time frame gbp-usd and eur usd currency? start 01/01/2009 to today? thanks
Hello, I'm new here. My background is programming, not trading. Maybe some here can explain to me how it is that the graphs shown with the various EA's here all go up (promising heaven), but when I test them, I only see the graphs tumbling down and consuming all my virtual money. The one more than...
i define a array[10], but if iwant use the arraay[10],i must use for(i=0;i<10 i++) array[i]= 0 initial,mt4 have auto initial 's fuction?
How code below I am sending the function OrderModify to platform and some times the platform is returning code ERROR 130, this error is abour STOP LOSS values, for me is this OK, I cant understand why is returning it some times. Can help me to resolve it ? Inside a loop with 'for' if(OrderSymbol()...
Hi, all i need is a simple code that sells everyday at a certain time, for same amout TP&SL..i want to backtest it.. For example, Sell 14.45 every day a TP of 10, SL of 10 Thank you
When i'm using expert advisor in MT4 to open trades, it doesn't work by himself. I need to check the "Ask manual confirmation" checkbox or else nothing happen. If there is an open trade condition from the expert advisor, if the "Ask manual confirmation" is not checked, nothing happen but as soon as...
Try this: 1. Create a new EA called “Dummy” using the defaultEA template. No coding needed if you have the default template. Compile it toproduce Dummy.ex4. 2. Run the EA in the strategy tester in (everytick) visual mode with the speed turned down. 3. Compile the attached TestInd and...
Hi guy. Can you help me explain this code? Inside it, i add some comment where my question is. Code info: Name: SuperSR 6. Author: Scriptor (2008.03.05 09:45). //+------------------------------------------------------------------+//|                SuperSR 6.mq4...
  I need profitable EA (34   1 2 3 4)
Hello! Is here anybody who send me profitable EA?
I'm a fairly experienced programmer, but still learning mql4. This one has me stumped. Apologies if this has been asked and answered, I can't find or deduce an explanation: • Same EA running on EURUSD and AUDUSD in the same account. • Executes fine on EURUSD but returns 4107 error on AUDUSD •...
  how to ... ? (13   1 2)
Hi guys, i need some help if someoane it is there! I want to use in my indicator the last 3 buffers bar from the fractals indicator, example: Fractals Indicator, has '' SetIndexBuffer(0,ExtUpFractalsBuffer);'' so i want to use the last 3 value of this ' ExtUpFractalsBuffer'' and the same for...
When I post at codebase.mql4.com then my name Adrian cannot be seen, instead of that some number can be seen as my name. The number you see is my Login name, that number is in fact a number from my markets.com account. It doesn't seem safe that people can read that number. How can I change the...
is it possible to draw a vertical line at the up or down arrow( both arrow and vertical line showing)?
Hi ! I daytrade on 5-mins charts. I would love the programm to play a sound whn every bar closes to call my attention... Thank you! Yuri Dayananda
Hi All, See chart pic below, it should be limited to maxBars=20, but keeps counting. My putting in SetEmptyValues in init() and, in start(), the last chunk, while (i >maxBars) { arrUSD[i] =0; ... } has no effect ! Athar. //+------------------------------------------------------------------+//|...
Hi everbody. who is responsible for special version like the mb trading fx mt4. This version http://www.mbtrading.com/ have the option Enable DDE Server but this not function. I ever use DDe because I have a program in .net that I use in paralel to monitor the market. Buut in this last build, 509...
When I reinstall theMT4, I find the version compiled in June and the version compiled in Septemberare different, although they are both version 4.509. I use MT4i'sQuickchannel DLL to send Alarm message to my C# client, it is work very stable,now when I reinstall the newer version which downloaded...
Hi everyone, I would like to ask a newbie question regarding the backtesting optimization feature. Whenever I start testing a given EA, MetaTrader calculates the number of passes (combination of parameters) and the estimated time to complete the task. But the final process always gives a smaller...
//+------------------------------------------------------------------+//|                                         Buy and with SL and TP |//|                               Copyright © 2008, smjones     |//|...
Someone can explain me the logic that follows the fractal indicator?, Ie only an explanation of the logic that follows, not the code in mt4. Is as follows: 1-high (n-2) <high (n) 2-high (n-1) <high (n) 3-high (n +1) <high (n) 4-high (n +2) <high (n) 5-low (n-2)> low (n) 6-low (n-1)> low (n) 7-low (n...
I noticed that sometimes when I send a custom indicator to a friend, when he copies the ex4 file in the indicators folder(under experts) it disappears or gets erased. When the platform(MT4) opens is not under the Custom Indicators in the Navigator Window. When he goes back on the C: drive in the...
I was using visual back testing for a while and never experienced something similar... As I start back test, I select the EA, and choose the Visual Mode option. However as I start the backtest, the Visual Mode gets unselected and the test executes. I tried different EAs, time frames, pairs, as...
Asia-Europe-US session with rectangle filled from top of the chart and the bottom How? I found https://www.mql5.com/en/code/7753 that shows the session of each with high price and low price of that specific session. But, that is not what I want. I want just the bottom of the chart as a low, the...
any one tell me is how this ea can place only 12 pending order on different time . means 6 on above the price and 6 blow the price like buy sell limit and stop . all these 6 order shold be same distance like 25 pips
Hi, I am currently trying out a pairs trading EA on GBPUSD-EURUSD. The EA is attached to the GBPUSD chart on live trading (not backtesting). I have the following code ... if (Condition ...)   {      Ticket = OrderSend("GBPUSD", OP_SELL, Lots, Bid, Slippage, Ask+StopLoss*Point, Bid-TakeProfit*Point,...
I downloaded the MQL4 Book by Kovalyov: https://book.mql4.com/content I was able to right click Properties > General tab > Unblock on the file to make the file readable. But now I got to keep clicking on bottom page links to go to the next section, as opposed to just flipping pages back and forth...
hello, does anybody know if there is any method to save and reload mt4 system tester results, to qiuckly reload former test results? thanks in advance
  for loop (2)
int init()  {    int handle;  handle=FileOpen("countmein", FILE_CSV|FILE_WRITE, ';');  if(handle>0)          for (int Counter = 1; Counter <= 100; Counter++)    {     FileWrite(handle, Close[Counter], Open[Counter], High[Counter], Low[Counter]);     FileClose(handle);      }  //...//----   //----...