MQL4 and MetaTrader 4 - page 1551

Hi you all, My EA works best when I increment the lots by 0.1 after each order. I want to send it to the Championship, so I came up with a formula to stop the lots at 5. I am new to Mql4, there may be a better way, but this is all I can think off. The following code works fine with the strategy...
Hi All, Are there instance variables in EA besides external variables, or can I reset an external variable from EA code? After declaring and initializing an external variable, how can i reset the value without clicking on smiley face and resetting it manually, how can i do it inside the code?...
[Deleted]
Hi, i have load the overlaychart from mql4 site for indication the correlation, but i want a indicator to building a spread from two different pairs or securitys. Can here anybody help me? Thanks
Hi, Is it possible to "catch up" my EA code on the server-side? Thanks, GG
  What is the cumulative probability?  (64   1 2 3 4 5 6 7)
I have a question for the mathematicians. Although it looks like an off-topic, it is applicable to MTS. Problem: Let there be an event X whose probability of occurrence is equally dependent separately on two events A and B independent of each other. If the probability of A-dependent event X is
[Deleted]
Hi, Who can help me out of dilemma: restart? try over? Where" is the metatrader helpdesk: email, telephone? Thanks in advance Bern
[Deleted]
I realize there are quite a few posts regarding importing dll's and error 126, but I am hoping someone has some input on this. I have created a DLL and am having an error 126 problem. I am calling some functions in my DLL from another DLL. I have made sure all the dependencies are in the folder...
Hi all, I am looking into writing an EA/Script that needs to open charts for different symbols and close them when they are not needed anymore. Is this function available in MQL4 ? I don't seam to be able to find a call in the standard library that does this. Is there a way ? Thank you for your...
[Deleted]
  swap free broker  (2)
Hello, Can anyone provide me list of brokers offering swap free trading. Please let me know if you know. Thanks,
Hello, I'm testing my first simple EA. It opens an order with a stop loss some pips above the high. I would expect if in the next bar the stoploss level is exceeded it would close the order. Much like it closes the order when a takeprofit target is reached. But the stop loss does not work like I...
www.EAResults.com(EARS) is a free service that automatically verifies your track record as trueand accurate using the Meta Trader platform. If you are not familiar with MT, download a free demo here: http://www.metatrader4.com/en/downloads/MT is used by over 200 brokers worldwide and is used by...
[Deleted]
Hi All I am trying to test my new EA but would like to be able to stop it running on and producing lots of data after it has reached a certain point. Please can someone tell me how to do this. Ross
[Deleted]
I would like to make a suggestion to collect in this thread useful suggestions on how to improve the forum in the view of visitors and participants. Under the slogan: "A serious forum for serious people" (other slogans may be suggested :-)) Many have noticed that the level of training and experience
I got A simple price difference indicators. Just would like to share code for the indicators like this for(cnt =limit-1 ; cnt >=0; cnt--) { Diff[cnt]=Close[cnt]-Close[cnt+1]; }
[Deleted]
I would like to know if there is already a code or how to dynamicly color OHLC price bars upon OA and MFI indicators. SO, I would like to have: 1) If AO is red then OHLC bar is red 2) If AO is green then OHLC bar is green Or more advance: 1) If we have in Market Facilition Index: MFI Down,...
[Deleted]
Hi, I have problems with symbols. It seems like "something" has changed the symbol tables. Instead of arrows ( fractals , etc ) I'm getting letters. Can someone help
Hello, I have disabled the option "Ask for manual confirmation" and indeed my EA opens orders automatically. But it will not modify orders automatically, and the window for Modify SL/TP options keeps popping up when there is need to change SL. Please, does anyone know why this happens and how can...
  An error puzzle  (6)
A friendly HELLO to all you good people! Trying to compile the attached file Acdat01.mq4 gives this error: '\end_of_program' unbalanced left parenthesis Clicking on the error doesn't take me to the place in the code where the parenthesis is missing ... it does show (143,1) but I can't see any...
I'm looking for a Translate English for Revers.mq4 https://www.mql5.com/en/code/8820 //+------------------------------------------------------------------+ //| Revers.mq4 | //| Copyright © 2005, MetaQuotes Software Corp. |...
On the website of the Automated Trading Championship 2008,an article Multicurrency Expert Advisors at the Championships has been published. Multicurrency Expert Advisors allow us to reduce risks due to their diversification. However, the present research shows that there is much to do in this field...
Hello MT Experts, I Can`t Create A Simple (Free Hand) Trendline Alert !!! Is This Possible At All ??? Does Anyone Has An Alert Yet ???  Thanks ahead
[Deleted]
Does anyone have any expierence with the "Instantprofit" software to calculate your trade positions for the next week? Looking forward to your reactions.
[Deleted]
Hi everybody.I wanted to test an EA in the Strategy Tester (EUR/USD), but I just get the message "Waiting for Updates". I am able to test it from 2001 till today but if I want to test it from 1.5.2001 till 31.4.2002 I get "Waiting for Updates". I already downloaded all available historic data from...
[Deleted]
In this EA, I am simply trying to add up the number of times a given distance occurs between median price and a simple MA.  When the array prints in the de-int, it prints all 0's.  I think there must be something wrong with the way I am adressing or assigning the arrays? extern int...
[Deleted]
I testing a ea, the King_EA, but not woriking extern int MaxOpenTime_BUY = 10; extern int MaxOpenTime_SELL = 10; parametr . Why? Can somebody correct him. I know that they is error the code other, but I am not programmer
New article File Operations via WinAPI is published: Environment MQL4 is based on the conception of safe "sandbox": readingand saving files using the language are allowed in some predefinedfolders only. This protects the user of MetaTrader 4 from the potentialdanger of damaging important data on the...
[Deleted]
Hi, I am just a beginner in forex trading. I just want to know how do you adjust the date/time format in the timeframes? Let say I am in the daily chart, for example I see the dates as January 1 then January 4 then January 8 (I mean the days is shown in intervals of 4 days). I want to see the days...
[Deleted]
Hello, I need to create a script to exit a trade on a certain RSI (7) value. Can someone show me how to do this?? I have seen lots of scripts to exit trades based on a certain price, but I need to exit trades based on specific RSI (7) value. Thanks!!!
  Trial Period EA  (2)
Hi I want to have people download an EA and run say a 5 day trial. I want to go the route where the EA connect to my website and checks my Database. I program in PHP so that is no problem but how can I communicate such a thing with mql4? L
I have a strategy which needs to be built up with 2H timeframe. I have gone through Period_Converter_Optimizer indicator, but it just shows the chart on 2H timeframe. How can I encode my strategy to work with this 2H timeframe, as the strategy tester doesn't allow me to select custom frames.