Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1036

To post a new topic, please log in or register
Hi, Just wanted some feedback. There are A LOT of help requests on this forum. I have been a software developer for 10+ years, & must say that even with all the code examples & help, the MQL4 platform is a very difficult platform to work with. I'm still struggling to complete my system the way I...
Hi I do have a good background in trading, but I cant figure this problem out for the life of me. All I am basically trying to do is have an 'always in' system that can handle opening and closing it damn trades. if (first trade) { if (trend up) buy else sell } if...
Im creating a text label object but cant seem to get the placement where I want it ie. just above the actual bar that is the signal. But regardless of the bars location, the Text always shows up in the same location (midupper left) What am I doing wrong? I have a signal bar who's postion is p,...
  mql4 is easy??? (20   1 2)
At the First time I was read, how to construct an EA is easy ?? What we need just only Three Function, Just int init, int deinit, int start. Oh it will be not so difficult. And then I Tryed it,.... Just to Code Simply Basic of Trading " Buy at Low And Sell at High Prices " What I get?? It not Easy...
Hi. I'm sort of new to forex. I have a question. Let's say I open a position; any position. There's an initial spread cost (ex. a spread of 3). Next, let's say I'm at a profit of +0.12; and now I decided I want to close myposition. Here's my question. Will my profit be +0.12 - the opening spread...
Does anyone have a code that converts server time to local time in the charts? Using daily charts as an example, instead of updating at 00:00 GMT, they wouldupdate at 00:00 GMT-5, or whatever time you set. I'm sure this would be possible, but I'm new to MT and not familiar with the code. Can...
I'm here to share a great script I've created, you can try it on IBFX, because it's the only one i know that offer a $0.01 peny per lot, so open a mini 5K and try this script for this week, good luck and let me know how it worked.
I was just wondering if it is normal for an EA to perform differently with 2 different brokers? I have been studying forex and learning for a while now, and have done several different demos. Not until recently have i had any success with an EA. I had my EA set up good with a broker on a demo...
This is a popular scalper and can't have been hard to code. Anyone got a similar EA we could use or investigate?
  Bug or what ? (2)
Hi ppl, I found that when I try to make a new order like this OrderSend(Symbol(),OP_SELLLIMIT, lots, Ask+100,0,Ask+200*Point,Ask-200*Point,"",0,0,0); the journal says OrderSend error 130 /// invalid stops I don't understand why Can I set sl and tp or not ?
I am looking for instructions how to update data for the offline charts.
Anyone want to throw some example code my way? All it needs to do is place some text label object with value "Buy" or "Sell" just above the current bar.
I want to when 2ma crossing happens, metatrader play a sound. how do i that?
Does anyone know how to transfer data from an Excell spreadsheet to an Expert program written in MT4. Ideally I want the Expert to be checking on each tic the value in a spreadsheet. Thanks for any help. HU
anyone please advise me where or how i can get longer test period data to test my EA. I am using Fx interbank demo account, i found it only has 1 year or little more period of time for m30 EUR/USA data, it is not enough for a EA, i want a least 2 years data for that. thanks
Set two pending order manuallyThen an EA will automatically close one of the pending order if the other pending order hit take profit, but if the other pending order hit stop lose, it continueIf this is possible, can anyone please code this kind of EA for me, Im sure this is the simplest thing for...
I am a newbie and needs help on my first EA, There is one error remaining . It says ( '\end_of_program'-ending bracket '}' expected ). The error dot points me to a line of code where the program should be opening an additional order. Does anyone know what I may do to solve this problem.
I have written my own indicator. It uses iMaOnArray function and works properly. When I transform it into an EA system and run testing, everything seems fine except no trades occur. And no error was reported. I looked through the forum and saw many EA systems. Nearly none uses iMaOnArray function. I...
Hello, I've looked through the FXCM thread and wasn't able to find anything on this. Can anyone reccomend a MT4 demo provider that has a data feed using FXCM or even close to FXCM? They don't offer demos, but other providers are sometimes even 10 pips off the real prices at FXCM. I want to use MT4...
Could someone advise me how to syncronize two or more vertical charts on the MetaTrader platform with different timeframes so that the cross-hair appears on both charts similtaniously. I apologise in advance if this is the wrong forum to seek this advice. Thanks.
Hi, If I have an EA attached to the EURUSD chart that uses the MarketInfo function to open and close trades on GBPUSD, do I have to have the GBPUSD chart open in MT4 while the EA is active? Thanks in advance for help. ~DV
Hi there, I just need somone to point me out on how I could create a cloud between a candle high and low. By cloud I mean to color horzontally up to a specific timezone the space between the high and the low. I need to know at least what function I should look for. Can anyone help a bit ? Thx!
Hi, can someone help me to risolve this little problem? 1. I open an order when my conditions are true. 2. Then after Trailling Stop >= OrderOpenPrice from (1. Order) : Open second Order 3. Then after Trailling Stop >= OrderOpenPrice from (2. Order) : Open third Order Then Important!!!!: if...
I tried to setup a separate account to run an EA by itself so that it wouldn't interfere with my main account. ( I'm test 2 different strategies.) But when I add the EA to a chart, or add a chart, or an indicator, or take away some action in one account the platform performs the same action in both...
Hello, can anyone help me finish this EA. I know I'm doing something wrong or a piece of code could be missing. The EA should close all open orders once the account profit reaches x amount. Thanks.
Hi all, trading on 4 pairs EUR/USD GBP/USD USD/JPY USDCHF EURUSDMaxLoss = -500 GBPUSDMaxLoss = -350 ... How can i calculate the MaxLoss on E/U and close all E/U trades if E/U MaxLoss >= -500 greater or equal if reached Example code can be combined for all 4 majors or seperated for each pair thx in...
Hello, As a programmer, it is frustrating when a new build comes out and the old experts/libraries/indicators cause crashing of the MT4 system. Is there any way to find out what changes have been made or how programs are saved in profiles, config, templates? So far, the only way I've found to...
I was wondering if someone can create this indicator? Thank you
Hi All, I would like to know how to use Expert Advisor & Strategy Tester options on MQL4 trading platform/system.....please help me. Thanks. Rupesh. Dubai
1...102910301031103210331034103510361037103810391040104110421043...1244