MQL4 and MetaTrader 4 - page 847

To post a new topic, please log in or register
When running tester in auto configuration mode, tester starts very quickly and even the account is not activated yet. It takes few seconds for an account to activate in the mean time tester has already performed some testing which generate in valid results. Does any one has idea how to add the delay...
Hi all, this time i come here with a question .. i dont see some mistakes .. but maybe late hour :-) i was playing with iBarShift in an Indicator for OBV. in General is working not bad . int i,nLimit,nCountedBars;   nCountedBars=IndicatorCounted();   if(nCountedBars>0) nCountedBars--;...
Hi I have been setting up my first EA with the help of a more experienced coder. One condition of mt trades is that if the price is X amount from the nearest pivot line then it will invalidate the possible trade. This is working for long trades, so if the price was too close to a pivot line above...
If I insert a trendline in a daily chart, although it is set to 'Visible in all timeframes' it is not appearing on my hourly chart or 5 minute chart etc. Any suggestions to correct this?
The bulk of the work and discussion on the thread subject was commissioned in an unrelated thread: Get Computer Name in mql4 I am making this thread solely for the purpose of aiding those who would seek similar information via the forum search function. The code, and solution, is posted in the...
Hello I have an EA that is not calulating the bands correctly. You can see on the attachment the difference in using the bands indicator in metatrader and the one in the EA, but the settings are the same. Here is the code for the bands in the EA, the only thing I can think of is that the EA using...
It appears that the embedded OrdersTotal() function is not working in Indicator codes when using the Strategy Tester. OrdersTotal() calls in Expert Advisor codes return correct values, but in Indicator codes only returns 0 when there are open orders. MT-4 build 226 To demonstrate this possible bug,...
New article Trade Events in MetaTrader 5 is published at mql5.com: A monitoring of the current state of a trade account implies controlling open positions and orders. Before a trade signal becomes a deal, it should be sent from the client terminal as a request to the trade server, where it will be...
Hi everyone, can somebody please help me building a srcipt for the Crosshairs, which shows 2 horizontal Lines +/- X pips away from price? For example, X=20, if you move the cursor to 1.3617, there would be also a line at 1.3637 and 1.3597. That would be a really useful tool. Thanks a lot!
got the following code. for the ordersend command i want to set the open price on the value of hh5 (highest price from last 5 bars), but i keep getting error 4107 or 130. Could someone show me what im doing wrong?    atrvalue=iATR(NULL,0,20,0)*10000;   atrcalc=atrvalue*1.5;   hh5=High[iHighest(NULL...
  Mata4 (3)
Hi,I wonder if anyone can help, Meta 4, my options are regarding the amounts to trade are 0.01 0.02 0.03 0.04 0.05 1.00 2.00 etc I don't trade with 1.00 it hurts, but I do trade in multi lot's of 0.05 I think it's about 31pence (GBP Money) however as part of my strategy, and to keep me focused, I...
Hello,I have one very difficult situation for me. I want to create EA with MTF channels but I couldn't to run it in tester properly. It use iBars, iHighest, iLowest, iTime. I checked all this parameters with Alert and it calculate some information but indicator don't want to draw the channels.I had...
Dear Support Team, or anyone else who may be able to help, my problem is as described in the subject line: - When I close my MT4 software, most of the newly edited/added/changed alerts will not be saved, instead upon reopening MT4 the alerts are put back to a state a couple of days ago. Which means...
I'm running optimizations and the Tester crashes after about an hour. After investigation I've noticed the log file full of memory allocation errors.... I tried running optimization again, this time I left the task manager (windows xp sp3) open on the performance tab. The PF graph is a nice linear...
#property copyright " N.Huy "#property link      ""//+------------------------------------------------------------------+extern double Initial_Equity = 3000 ;extern double Profit_Rate = 5 ;//+------------------------------------------------------------------+double Profit_Equity...
Windows 7 MetaTrader 4 Problem - New script files deleted on startup. When I run MetaTrader 4 in Win7 64 Home Edition it deletes all the newly created/copied script files from expert/scripts folder. So after startup only standard scripts remain in the folder. What is this? Any Ideas?? I tried...
Hello, With no success, I have been going through various forums to find out if anyone has posted how to backtest a Fibonacci sequence. I know that it's either difficult (or impossible) because it solely depends on the person drawing the sequence and also the variations in price action, but I...
How to calculate the maximum value of a bar within a period of 10 bars? I'll use this to calculate the resistance in this period.
Hello Everyone, I would like to make sure that I have a continuity and disaster recovery plan for my MT4 trade station. I am running a robot and would like to have multiple locations using different power and broadband providers. I would like to have each server running mt4 on the same broker and...
Hello, I would like to make sure that I have a continuity and disaster recovery plan for my MT4 trade station. I am running a robot and would like to have multiple locations using different power and broadband providers. I would like to have each server running mt4 on the same broker and same...
Windows 7 (64bit) Pls help me why?: There has been a critical error Time : 2009.12.15 01:41 Program : Client Terminal Version : 4.00 (build: 225, 10 Jul 2009) OS : Windows Vista Professional 6.1 (Build 7100) Processors : 2 x X86 (level 6) Memory : 4158312/2864560 kb...
Hey guys. can anyone please tell me how to set my mt4 to send mw alerts, for example when a cross over of moving averages takes place? i would like for my alert to go to my e-mail inbox. thank you.
Hi, I'm new to MQL4 and do have a problem with the execution of an Expert Advisor. While the Expert is running I'm getting the alerts I assigned to the OrderSends, but the orders don't show up in the Trading window in FxPro, which means the Expert doesn't do anything at all. Thanks in advance. Here...
Hi, I have a problem in coding Trailing Stop Loss. if (OrderSelect(u,SELECT_BY_POS,MODE_TRADES)) { double stoploss = OrderStopLoss(); int ticket = OrderTicket(); double priceopen = OrderOpenPrice(); double takeprofit = OrderTakeProfit(); int typ =...
If you've got several charts open, can an Expert Advisor cause the chart that it applies to to be selected? So if all your charts are maximised, the one that it selects will be the one that is displayed. Would be useful if this can be done.
  other forums (1)
are there other recommended forums or brokers,automatic trading, strategies ? TIA.
New article MQL5 Wizard: How to Create a Module of Trailing of Open Positions is published at mql5.com: The generator of trade strategies MQL5 Wizard greatly simplifies the testing of trading ideas. The article discusses how to write and connect to the generator of trade strategies MQL5 Wizard your...
hi guys, since I cant find it in the forum, maybe you can help me here. I'm trading 10 pairs at the same time, so there are possibly 10 trades or so open. I want to know the profits of - lets say - EURUSD. so far I have: double profit_in_currency()   {   int i, iOrders = OrdersTotal() - 1;...
Hi all, Can I please indulge a kind developer to write me a small EA for MT4? Objective: To open and manage hedge orders to orders created manually Description: I open trades manually in either buy or sell direction. I could open multiple trades at any point of time in either direction for a...
Hello friends this is checkmail and still being learning tried to code an MTF Macd indicator, me just wana add an text display to it, like the tui indicator but am getting lots of errors, think its on the final condition of buffers + 0. Can anyone correct the code....