MQL4 and MetaTrader 4 - page 1026

[Deleted]
Hey people. im new here and kinda new at this metatrader thing. ive played around with practice accounts in fx trading and even have a finance degree. im very interested in this auto trading thing, and have seen quite a bit with metatrader 4, mql, expert advisors. wheres a good place to start, and i...
[Deleted]
Something really strange is happening: void MyFunc() {   // This function is called from within 'start()'   int myArray[1]; // defined a one dimensional array with size of 1 element *ON LOCAL FUNCTION LEVEL*   Alert(ArrayRange(myArray,0));   while(true)   {      // ... some conditions ...      int...
[Deleted]
Can some computer savvy member suggest a solution? Recently my computer started running mt4 in a very degraded mode. It takes 1-2 minutes, sometimes, just to change a page or a time interval. This happens when the markets are open. It runs much better on weekends:; almost normally. I have checked...
  mm not working  (10)
need help please i have tried to add mm to my ea and also to increase the lots as it trade but it does not do that can some one help me please extern bool MM=true; //money management extern double Risk=10; //risk in percentage extern double Lots=0.06; extern double Slippage = 3; //In bars. How many
I know this is very blah question. HoweverI would appreciate if someone could give me answers or opinions. Is it possible to manipulate broker pricefeed by EA of MT4?
I have two indicators that I believe might be sending different values to the platform than what they are showing on the indicator window. Can someone add code to my indicators that will output the values that they're sending to the platform? Thanks.
https://www.mql5.com/en/code/10633 this is a script in codebase. A easy one to send market order with mouse drag&drop. But I don't know why it uses a 10 times loop ... ? Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional)...
There are support and resistance indicators like https://www.mql5.com/en/code/9711, https://www.mql5.com/en/code/9373. If there any EA sample with "Stoplose" of these support and resistance? Or other EA Stoplose base on support and resistance? Please give some example. Thanks.
I have one pair up and running, but on other pairs, the "waiting on update" is still showing. Its been 2 days now. How can I get this fixed?
When i compile a indicator MetaEditor change the long filename in short filename. f.e.: "aaaaccccc bbbb.mq4" in "aaaacc~1.mq4" do it is possible to avoid?
  Open a website  (5)
Hi, can I open a website with "https..." out of my EA?? What dll do I need for that?
I just found it out today. I am talking about the daily chart as an example. Data acquisition method 1: Just use the mouse to drag on the chart and data would be downloaded automatically and Never download data from history data center. Method 2. Go to history data center and download history data...
Hi, I have a string in which "<row>" and "</row>" is insert 5 times. Now I want to extract the parts between the first "<row>" and "</row>" into string1 the second "<row>" and "</row>"into string2 the third "<row>" and "</row>"into string3 .... I tried it like that (but that way I am only...
[Deleted]
Hi all, I wonder, whether somebody could answer the following question for me: I need for a pre-selected day and currency pair the following information: - Sequentional tick number in the day (for all ticks of the day) - Time of the tick in miliseconds (that what you get through GetTickCount() )....
[Deleted]
I am running my EA in different DEMO and LIVE platforms working fine in all of them except for 1 at FXCM live. I adjusted settings to work the same in all platforms but keep getting: - Trade disabled - Ticket=-1 intead of a regular ticket as happens with the other brokers Error 4051 I cannot...
[Deleted]
what function to use so I can compare the value from a current indicator with its value within the last 10 minutes? I tried to put those value into group but into trouble with limited knowledge of mql4.... so...could someone plssss help~~ THX A LOT~
[Deleted]
i'm a newbie at mql4 coding, please help me to fix my script or make a new one. i have a script, that will set a pending order by the time setting. I have 2 pending orders each time 1 BUY, 1 SELL. If 1 of these trades is triggered and hits its take profit, I want to cancel the other order or close...
Hello guys lets say i have a file containing 3 lines with these numbers on it example file: 123456789 987654321 234568798 for example i need to call line 2 with it's number and set each number to a variable like: a=9 b=8 c=7 ... i=1 how can i open and use the file like this? thanks for helping me
  Backtesting with tick data  (38   1 2 3 4)
Backtesting with tick data I think I have found a good way of doing this in metatrader - and I have got a fair way through this method but have got STUCK and seek some help with the final stage. 1) Got tick data from a company (commercial source) symbol: CL (oil) free sources eg. dukascopy etc. dont
[Deleted]
I have an excel FX model that I trade. The spreadsheet generates buy/sell signals and I execute trades manually in MT4. I am trying to figure out how to pipe these signals from Excel into an execution platform (like MT4) and automatically fire off trades. Any help on how I might do this is greatly...
Hello MQL4 world, I am located in Los Angeles, California and I am looking for a developer to create two indicators to fit my needs. Both are very simple and I am willing to pay. The indicators: 1. Paints horizontal lines following candlestick closes, after certain requirements have been met. I...
Hello Does anyone know if there is a tool or a way to combine multiple entries into a single bar. So instead of having 2-3-4 bars on my screen showing each entry level, it would cost average them and show a single bar. Maybe this doesnt even need to be on a bar if it were done in the terminal...
[Deleted]
I would like to write an integer array of the lenght of the order of 500 000 to a file in MT4. My only ambition with the file is to be able to read the array in from the file sometimes in the future. Would somebody know what type of file to use and how to program it - both writing and reading-in?...
Hi, I use the MT4 app for iPhone and it is a pretty good tool to have when not at my main computer. Here is a list of a couple of things I would like to see added, if possible: 1. Addition of the Week & Month timeframes (maybe something could be added to select the timeframes we wish to see, i.e....
Is it programaticallty safe to manually keep track of ticket numbers an EA has opened in an array instead of scanning and using OrderSelect() the whole time? Are there any advantages to doing this - I think it may be faster if you have a very large order history. Do the ticket numbers ever change?...
[Deleted]
Hi, I am new to Forex and for the last two weeks I am trading in demo a/c with two different broker. I see different opening and closing position rate for a pair of currency & volume for a particular day or week in two different met4 terminal. What can be the reason for different rates in two...
  Strategy tester error 130  (16   1 2)
I've been looking at this particular problem for some time and am starting to feel I am missing something very obvious. Running on the Strategy tester I get error 130 consistently for some trades that happen during my testing period . . the vast majority of trades are fine. For example: 18:43:00...
Dear All forex friends, I am very new to programming / language etc.. BUT I had a VERY GREAT INDICATOR WHICH I WANT TO MAKE IT INTO EA . REQUEST ANY PROGRAMER OR FOREX FRIEND TO HELP ME INTHIS.. THE INDICATOR IS ATTACHED HERE.. WHEN IT GIVE ARROW IT SHOULD BUY IN EA AND WHEN DOWN ARROW IT SHOULD...
[Deleted]
Hi Friends, I am trying to use "#property indicator_color" command, however it won'tlet me add more than 8 colors lines. I am able to type and compile #property indicator_color9"onwards but it doesn't show up on chart. Also when I type this in Metaeditor, it stays black and doesn't change the...