MQL4 and MetaTrader 4 - page 312

To post a new topic, please log in or register
I have a MS Surface Pro 3 tablet that I loaded MT4 on. Can log into my account and it runs fine. I copied some custom indicators from my PC to the tablet and placed in the proper indicator folder. I even compiled them again with no errors. But when I place them on a chart and click OK, nothing...
Hello! I would need some help in the making of an EA. How can I eg. export the bid/ask prices of two brokers (using global variables, excel or something) on order to compare them and send a signal to the EA to initiate a trade. I can write most of the script i think but i have not done anything like...
Hello, Im  programming an EA and i want to use custom indicator so I using the iCouston function.The problem is that this indicator is colors and not numbers(when its black buy and when its whit sell for example). How i turn this colors to signels that well tell the EA when to open order? How I writ...
What timezone is used for the dates in the time[] array passed to OnCalculate? Are those times in the Local zone (computer) or in the Current zone (the one set by the broker)?
  hi Parham, (1)
Hi Parham,Have you looked into mqllock.com?  Only $25/mo to have a dll automatically generated to protect your EA and be able to avail to your customers.  Am not a rep, just heard about it.  May need do myself in the coming year :) Jerry
Hi,  In an effort to simplify the problem I am having,  I have included two classe sin foo.mqh and bar.mqh When I compile them, I get: 'bar' - wrong parameters count foo.mqh Line 20 Column 9 which is this line in foo.mqh: foobar(bar  & b) { example = b;}  I have read up on other posts that deal with...
Hi, If I vary extern variables by the strategy-tester and check them within the EA again and may be re-set them in order not to be trapped by swapping in and out again and again - so I do: extern double EA_Threshold = 0.03;extern double EA_Breakout  = 1.4;double LimHi,LimLo,LimBreak;...int OnInit()...
There is an indicator provided with MT4 called SimplePanel. It can be found in Indicators/Examples. This demonstrates the use of an object oriented technique for drawing graphical objects. Does anyone know where I can find some documentation on how to use this?
Hello, I'm trying to do some mathematical equations within my EA , but the problem is one of equations  requires the first number of account's balance . For example if the balance is 506.60 I want to get this value "5" , if it is 432.32 I want to get "4" . So how can it be done ?  Note : To get the...
Hi all, 1. Is MQL4 able to recognize whether the EA was launched/stopped by user or by terminal? I've got a part of EA code to be executed only when the EA is launched/stopped by user himself and not when it is launched/stopped during starting/closing of Metatrader. Functions OnInit and OnDeInit...
Hi All, I am using strategy tester. I want to test on "USoil" and other CFDs or Futures or whatever they are. The problem is that "USoil" is priced in USD (ie its actually USoil/USD). My account is in GBP. So to calculate lot size etc, I need to know the GBPUSD rate. However, MarketInfo("GBPUSD"...
Hi,   There are some rumors that SNB will intervene again.The ceiling will be between 1.30 to 1.35 (CHF to EUR). This may happen during next week. What do you think about this?   Google: SNB will intevene 
Hi guys, I have array, 100 elements and I need shift all elements left, index 99 bye bye :-) from index 98 to index 99, 97->98, 2->3 .... index 0 = zero What is the fastes solution for it? Exist any special mql function? Or basic solution ...: int count=ArraySize(array);for(int i=count-2; i>1; i--)...
The consolidation of the platform between mt4 and mt5 is not yet complete. While introducing a marketplace for algo/signals is a commercial priority, feature consolidation should not be left behind imho. Support of multiple symbols during backtesting should be trivial given tick/bar databases are...
Hi   if I run an expert advisor on a chart, how can I have the history of trades done by this ea (since it was opened) to appear automatically on the chart with the usual arrows and trendlines between opening and closing of the position (like what I get when I run strategy tester and click on "open...
Hello,  At the outset, I apologize for my English, most of the work done by google translator. Thank you for your patience with this text :) Problem description: I need after the first Target profit were offset any remaining orders to break even In this code after the first profit Target is moved...
  OnChartEvent (5)
I have a situation where I want my code to do something when eg. a trendline is clicked. I also want to be able to move the line without the code being executed. My problem is that when I double click to select the line to move it, the first of the 2 clicks activates the  CHARTEVENT_OBJECT_CLICK and...
Hello all, does anyone know what's the meaning of this error and how to fix it? It seems to appear after a few minutes when I load a custom indicator. Thanks in advanced. 
Here is what I want to do, but I just cannot seem to get it right : I have 2 EA's, both trading one symbol - for reasons that are not really important, I want the first EA to identify the condition at which an open trade on the symbol should close, but I want the actual close to be undertaken by the...
Is there an hierarchy between OnTimer and OnTick, with OnTick being "more important" than OnTimer? I have 25 EAs running on 25 different charts with a OnTick function which takes less than 2 milliseconds to execute. I have another EA where I keep track of what's happening (I call it a review panel),...
So is this possible? I really need that. Greetings
There are under Windows 7 two MQL4 folders: 1) at C:\Program Files\........ \MQL4 2) at C:\Users\.........\MetaQuotes\.......\MQL4 Which folder should I use for the back up? What is a purpose for this duplication?
Reggie was Aion gold animate in allowance the now recaptured survivors escape in the aboriginal place, but hes allegedly had a change of amore aback then.Hes abominably aggravating to plan his way aback into the basal accumulation any way he can, and in this case, hes been tasked with watching over...
Hi, I got a EA made which seems to work when I set it when the market is open. But if I set it on say sunday for a Monday open it will not open a order. I need this as I cant be in front of computer when the market opens Monday my time. What would be the reason for this? hally2710
Hi, traders    I build EA with OrderSend like this My condition, when complete current bar : If close() > MA(11) then Ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, StopLossLevel, TakeProfitLevel,.... Ticket = OrderSend(Symbol(), OP_Sell, Lots, Bid, Slippage, StopLossLevel,...
Tooltip object disappear if  i Restarting Terminal. Is that normal..? it will be better if tooltip still exist.
Server time is an invention made by forex brokers to sabotage development of profitable automated trading. Nothing more nothing less. There is no other purpose. It is well known fact that charts and technical analysis made using timeframe smaller than 4 hours is not very reliable and profitable...
Hello, I am using MT4 with an Alpari account however there is a few problems. The first problem is that the equity is shown in a currency called USC and i am in the UK so how do i change it to show my equity in £s? The second problem is that the time shown on the charts is wrong for example it is...
I have data offline EURUSD1, EURUSD5, EURUSD15, EURUSD30, EURUSD60, EURUSD240, EURUSD1440 but when opening them in offline chart, I can not other timeframes   People can help me! Thanks 
Is there a way to get the previous order modified time corresponding to that order ??