MQL4 and MetaTrader 4 - page 1194

To post a new topic, please log in or register
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...
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...
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
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]; }
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,...
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...
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
Does anyone have any expierence with the "Instantprofit" software to calculate your trade positions for the next week? Looking forward to your reactions.
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...
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...
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...
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...
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!!!
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.
Hello, Any resource on where I can find chart pattern algos? a book resource would be great.. or online articles. more 'simple', classic patterns like: - cup and handle - bull flag - double bottom thanks for any input!
Hi, I would like to write a script (or if someone could help, offers welcome) that I can use when a certain price range repeats and comes up it would activate a buy/sell transaction. If anyone could get me started or is willing to write a basic script that I can use, will gladly be willing to...
Hello, I'm new at this EA trading, I would like to have an EA built with these peramiters if possible. I want to be able to -manually put in 1 trade for X amount -Then I want the EA to automaticlly stack trades for that exact amount of the manual trade for every X amount of pips away from the...
Good morning, I have tried to open the championship demo account on the platform of 2 different brokers that I was using to test my EA (Interbank and Alpari) but nothing is happening. There is a message in the journal that show a "NO WAY" sign and says " trading attempt in the investor mode"....
I have tested many Expet Advisors from this site but none of them seem to work with the Meta Trader 4 live site. Is there anybody out there who's got an EA that really works consistently with all pairs all the time regardless of the Forex Market swings? It would be nice to know, if there is an...
int start() { int counted_bars=IndicatorCounted(); int k,i,j,limit,hhb,llb; if (counted_bars<0) return(-1); if (counted_bars>0) counted_bars--; limit=Bars-1; if(counted_bars>=1) limit=Bars-counted_bars-1; if (limit<0) limit=0; for (i=limit;i>=0;i--) { hhb =...
Hi, I am trying to figure out if there is a possibility of interpreting 2 indicators in a same window and carrying out an action. For example, I have added Momentum and RSI on a single window. Both the indicators have there own range in the chart - RSI from 0 to 100 and Momentum from 98 to 101....