Download MetaTrader 5

MQL4 and MetaTrader 4 - page 901

To post a new topic, please log in or register
Hi, I the past weeks I have some trouble with metatrader. Actually I use a live account on fxcm and metatrader decmo account. But when they run at the same time . But when I start running backtest on a strategy my laptop becomes really slow and after after minutes I have to reeboor since it is...
Hi - Know of any good threads that I could be directed to regarding code for scaling in? and/or setting up Limit orders? I'm trying to covert from easy language (Trade Station) to MT4......not easy. Need some cheat sheets... Much appreciated.
Hi all, i want my EA to trade on a 5mins chart, but part of its signal comes from 30mins chart, so i want to know if it is possible get the value of the stochastic signal below,when the code is actually attached to a 5mins chart.thanks for any comment. (iStochastic(NULL,PERIOD_30,5,3,3,MODE_SMA,0...
Will this EA monitor open trades for the chart and close half the trade on reaching a certain target profit and move the stop loss to plus 10 pips of the opening price? Have I missed anything in the code? How could I stop it acting on the half closed order the next time the tick runs?...
I'm a newbie to programming and have a couple of questions that I might hope someone can answer.Please if you only know the answer to 1 of the two questions, simply reply to that. I'm sure another one of you kind experts will chime in on the other. When using the COMMENT(); command in MQ4 how does...
If you have seen script like this..please send me a link where I can find it!
Hi everybody two days ago a convert custom indicator into EA, and here is the code but i need a little help i receive 1 mistake, and don't know how to receive this problem! //| This MQL is generated by Expert Advisor Builder | //| http://sufx.core.t3-ism...
i'd like to launch metatrader 5 but my computer refused to do so. Is there anything that i can do? why my computer consider MQL5 a virus Win32/Themida ?
I was running a 3 day optimization and while my platform was in the middle of this optimization, I made some changes to my program and compiled it. Would the Optimizations from that point on use the newly compiled settings or the old settings? I would think it would still use the old settings....
Hi, I want to write a script to limit the money at risk per trade. I want to limit my risk at n% of my equity. I found some scripts in the forum but still have some questions.. I found: lot = NormalizeDouble(AccountFreeMargin() * Risk * 0.01 * MarketInfo(Symbol(), MODE_TICKSIZE), 2);//last 2...
Hi All, A little help please - Is there a function that will check to see Order has been closed out due to s/l or t/p? I'm struggling to see if a trade has been closed out, is there a trade status? I tried to see if (OrderClose() == true) would work but that function as I see it to close the trade...
Linux is becoming increasingly popular in large and fast trading systems. Serious business can not tolerate surprises from the trading platform. For all who trade a stable (Linux) platform is better than windows. It is well known that no trading platforms are available for Linux. Java charts and...
I want to write an EA so the user can enter trading times using local time instead of broker time. I've seen people reference the kernel32.dll and other system dlls. Does anyone know which dlls and functions I can reference to get the local computer's DateTime.Now?
  creating a magic number (42   1 2 3 4 5)
/*** create a positive integer for the use as a magic number.** The function takes a string as argument and calculates* an 31 bit hash value from it. The hash does certainly not * have the strength of a real cryptographic hash function * but it should be more than sufficient for generating a* unique...
Hi all, If you trade using a 4 digit broker, can you share your broker's name with me? I want to test some code but it seems that all the brokers I try use 5 digits now :) Thanks
hi there, i have a couple of questions, i dont know if this is the correct place to ask them so if im in the wrong place just tell me where to shift it and it will be done. question 1, i am looking at my charts and when i check the time on the newest candle it appears to be 2 hours ahead of my...
All of a sudden, added indicators like horizontal lines disappear when I move off the timeframe or pair, despite checking "Show in all Timeframes" in the Properties. I need to fix this fast! Thanks in advance! Patrick
Hello all, I've read some the tuts on here, and attempted to create a simple indicator. What I am trying to acheive, is to create a gray rectangle that will be placed at the top right hand side of the chart, very simple. I got the rectangle on the chart, but it's not placed at the top and also, it...
Hi folks, This is driving me mad!! I'm creating an indicator that uses 4 buffers to be diaplayed. Unfortunately only 3 out of the 4 display. Here's a simplified version of the code. I'd greatly appreciate any advice. Thanks in advance!...
Hello. Im new here. i want to know the coding for ea. the requirement is the order will enter for every hours 24 time a day.can anyone help me?thanks in advance
please somebody can help me does somebody know the diffierence between build225 and build226?
Hi All, Maybe someone could assist with this question - I'm running EA's with much success, and obviously on each tick coming in to the terminal the EA will execute. I'm however finding that over certain time frames - late night GMT - I miss quite a few ticks which throws my EA's out and won't...
has anyone this indicator? thanks xybalduin@msn.com
Hello all, I think it is very important to know when a market in MetaTrader opens. I would like to write an indicator that prints the market opening time of the current symbol on every chart's top left corner. Therefore I need to find out the market opening time, e.g. 09:00-19:00 for EURABC, for a...
New article Practical Implementation of Digital Filters in MQL5 for Beginners is published at mql5.com: The idea of digital signal filtering has been widely discussed on forum topics about building trading systems. And it would be imprudent not to create a standard code of digital filters in MQL5....
Hi everybody i am new in codding but yesterday i convert two indicators in expert advisors.Unfortunately they don't work.I really need help.
Hi, I am a novice as you can see. If I want the EA to trade only on daily chart should I use the constant as below if (Period() == PERIOD_D1) or should use the value as below if (Period() == 1440) Both seem to do the trick but don't know which is the proper way to do it. Thanks
Please I want people using this forum to help me correct error that could not make this attached ea backtest or demo trade. There was no error during compilation yet doest work. Please help
Hi! I don't know why OrderClose() is not working. Could You help me please. extern double TakeProfit = 500; extern double Lots = 0.1; extern double TrailingStop = 100; extern double StopLoss = 200; double sar,imacurrent; int cnt, ticket, total;...