Download MetaTrader 5

MQL4 and MetaTrader 4 - page 773

To post a new topic, please log in or register
I was running an optimization for 4 days and the computer lost power, and the results do not seem to be saved inside mt4 - I checked the logs but dont see any record of it. Does mt4 save optimization results in a log file, as it's optimizing, as it appears inside the terminal window?
I want to track my open orders, and when one gets close to it's stop loss, I want to place an order in the opposite direction, and when either of them get to stop loss or take profit, they both close at the same time. Does anyone already have some code for this that I can have and play with? Thanks...
Is there any way to change where an EA places an order? I am looking to set up EA that places orders at the open of the next bar after something occurs. Any idea what line(s) of code I would need to accomplish this? Thanks!
  HELP!!! (6)
Alright, I've put together a strategy that is supposed to buy at the open of the next bar when the previous bar's Close > Open. The trade ends either at my stop/limit or when the Close < Open (if I haven't hit my stop/target, my trade should end at the open of the down close). I cannot get this code...
In MQL for any indicator say Istochastic() regardless of what parameters input, is the indicator value updated with every incoming tick or is it updated with some time candle?
As I know, until now there is no support to develop mt4 or mt5 progran to run on windows phone 7 platform, any planning in future to develop this support?
I created a very, very simple expert advisor with a very simple strategy. I have run several backtests on few brokers with no error. However, when I run demo or forward test on broker FXOpen (ECN Demo Server), it show some comment which I cannot figure out why. My expert advisor do not have any...
Something I have noticed both on my computer (XP) and on my VPS (Server 2003) is that when I run many MT4 terminals then Windows start behaving badly, not just MT$ but any open windows application. (I run around 20 terminals but have decreased Max bars in history/chart to a minimum in most of the...
Please, Does anyone know if there is any way to get the price at which the broker requotes a trade request, from an EA? I tried the below: 1. Call RefreshRates() after OrderSend() gets requote error message (138) 2. Call MarketInfo(), to get current market price but the price I get is not the...
Hi, I would like to scan the last 24 hourly bars and find the 9 o'clock bar then store its open. Is there a function that return only the hour for each bar something like iTime(NULL,0,i)? How else can I solve the problem of finding the 9 o'clock bar? Many thanks
The question is as above in the subject. Has anybody any idea? What MQL4 expression use for assign the expert to the only one computer? The best way will be use mainboard s/n...
Hi, I would like to know how can I execute a calculus only once per bar. I was trying to compare current time to last bar beginning time, but it did not work and to me it makes no sense. I already read others posts here, but I could not find any solution that worked. Thanks #property copyright...
  ASCTrend system (493   1 2 3 4 5 ... 49 50)
I start this thread for the following reason: - to develop ASCTrend EAs according to the manual trading systems described here https://www.mql5.com/en/forum/173249 and - to delevelop new asctrend system for M5 timeframe. Please find updated templates (3 templates) and all the indicators for this new...
can someone show me what needs to be changed to get the following code working? I'm having 2 pending orders, which need to be modified (with magicnumber 222 and 333). When a green line on the chart is moving, it needs to adjust the openprice, TP and SL on the pending orders. Here is what i have done...
So I just realized that you can take moving averages of indicators in metatrader. I've been getting some decent (manual backtesting) results by taking the EMA of the ADX and combining it with the PSAR, and I'd like to automate this system. However, I need to somehow define this EMA-ADX combo...
My name is cesar, and I need your help, i have a great strategy but i don't programming in mql4, so i need that if you create this EA, Description Pair: GBP/USD Time Frame 15 minutes I need that the EA calculate the high level and the low level before the london opening, I need that EA show the...
hi everyone good day i have this EA, but does not attach with my gbp/usd chart, my I help please thanks
I copied EA's to MT5. They do not appear in navigator indicators. I tried expert too, and they're not there either. I copied to program files\ metatrader 5\mql5\ indicators. They do appear over in program files folder. I installed EA's before in mt4. So I know how to do this.Any help, Thank-You.
Within a Script, I would like to open a new chart, but can find no documentaion on how to do this. Ideally, I would prefer to skip the solutions that include sending keys to the main terminal window (i.e. ALT-F N). I have found examples of how to attach an EA to a chart : int MessageNumber =...
  Tandem trades (3)
I have heard of a service where a trader has a stable of customers and each trade the trader makes is made in tandem on each customer's MT4 platform. The size of the position is in the ratio of the trader's account and the customers' account balances. How does this work technically speaking? The...
Hello. I would like to know how to make an indicator that takes past bar values. I have this code in the special function star: Buf_0 [i] = IMA (NULL, 0,13,0, MODE_SMMA, PRICE_MEDIAN, i)-IMA (NULL, 0,24,0, MODE_SMMA, PRICE_MEDIAN, i); If in one of the indicators, I want to select values of 3...
Hello. I have a problem with all Custom indicators I use: when I asociete the indicator with some price-screen, the screen goes gray, and don't let me select anything with the mouse. sombody know why is this? thanks againg trader201
what is wrong with this code. it doesnot work.. if (OrdersTotal()==0)             FileDelete ("mydata.dat"); I am just trying to delete the file if there are no open positions. thanks in advance..
I've written some EA which I backtested on 10 years of 15min EUR/USD data If it shows consistent profit through all that period will it be normal to assume it will work for the next 10 years ?
How do I run a script within an indicator? Thanks ...
  Error 4109 (2)
Error 4109 Meaning = "Trade is not allowed in expert properties" Can anyone please tell me what his means and how to fix it.
How can I export the trade tab in excel ? Thank you, saluti dall' Italia, Scheggia97
  Need CMO (2)
I am not find the Chande momentum oscillator. how I will get it ?
  &_____ ...??? (2)
What does it mean to place an "&" in front of a variable .. example: somefunc(int ...., string &var1) {..} can I use "&" with ints, doubles? &Thanks!
Hi, Is there a way to find out that a pending order has "entered into market". I'm developing an EA and I'm checking if the pending orders are in the market using the price, but sometimes the spread variation and some fast price action, I miss the correct entry point. Any ideas? Best Regards