MQL4 and MetaTrader 4 - page 274

  EA limit code  (20   1 2)
help me i need to limt my Ea to work under certain accounts that i choose. like i want to give it to my clients but they can only use it under one acc can you please help me with the code for that. also i want the EA to work for a period of time then expire .like a month or year i would really...
Hi! I'm writing an EA that trades based on every indicator, and I'm at the gator indicator now. I already have a strategy to use it in my code but first I need to know the color of both the upper and the lower line, because the strategy is based on that. I would like a code that stores in two
I would like to create a variable that when it touches the moving average has the value of 1 and after it performs an operation it becomes 0 and only allows new operations when it is worth 1 (touches the average)
Hey guys, On www.metatrader.com website, when clicking on 'Download MetaTrader 4' button, It downloads a file called 'mt4setup.exe', But it actually installs MetaTrader 5 on your system. I didn't find any 'Contact Us' page on the website, So I'm posting here. The download link is-
Hi all, It appears as though if you have x amount of indicator buffers whose styles are to draw an arrow, when using the PROPERTY INDICATOR_COLOR<N> at the top of the program - but just making reference to buffers 3 and 4 let’s say - will not alter the style of those indicator buffers (when run in
hellow folks ...!! my EA is working super fine on two brokers that i do normally use for testing my systems...last week i decided to download another brokers platform because my those two brokers minimum trading volume is big and i wanted to try something different(i wanted to testing under low
Hi, when I try to compile EA I get this error " Return value of 'OrderSend' needs to be checked". I am trying to create EA based on RSI of two currencies and based on that open trades.. How to resolve this error? Regards
I'm trying to make something that I don't know if it's even possible. Testers can't use MarketInfo() method, but I need to test all major and minor currency pairs. There is an obvious problem when counter currency and account currency aren't the same. I wanted to make a workaround and set different
Hi all, I've created several EA's based upon a strategy that works with almost all currency pairs by changing minor settings in the code. I'm looking to create a new strategy but my coding skills got his limitation and would need some help. What I would like to code is the following. When the price
Hi. A function in my EA function should return true when EMA 13 crosses the previous two candles. The idea is to see if the EMA value was between the candle's open and close price . It doesn't work. Here's an ASCII visual of the candles and EMA. ++ ++ ++ ++ ++ --------- ---++---++---
I can collect the offline status of a chart using: int offline= ChartGetInteger ( 0 , CHART_IS_OFFLINE ); Print (offline); If a chart is offline it is stored as a 1 if the offline box in the offline chart properties is unticked it is stored as 0. However is there a way to modify the offline variable
Hello! I am testing an ea on XAUUSD M5. I download the histoical data from QuantDataManager as always and I find this error I compared two datas: LEFT one: Metaquotes RIGHT one: Data from QuantDataManager It seems that the trade is opned 04:59 later. https://c.mql5.com/3/335/0111.JPG *I already
How can I fix the Test Generator: Unmatched data error. It is throwing errors for High/Low price
Does MetaTrader have any training videos on how to use the platform on the APP, Desktop and WebTerminal for MT4? Or what are the best videos out there to learn how to use the platform
I could not think of a more descriptive title. What I would like to do is have one chart window on which are drawn all my objects. I use 3 different time frames and when I click the button to change between these time frames I would like the chart to present itself in the same way every time so that
  help vps  (5)
hi everyone I'm new to MT4 and I'm doing several tests ... by mistake yesterday I deleted the vps connected to my account, now it is no longer visible on MT4, is there a way to recover it? or have I lost my money and the server now
Hello guys, I am not a programmer but i tried to figure out how to make a very simple EA, mostly just as a proof-of-concept. EA will open order at different conditions (doesnt matter, in exemple i use a premade code that open orders using RSI). The most important fact is that EA must place SL at X
  MT4 VPS question  (2)
hello , I try to set up a VPS / it is ok . i know how to rent it and install it . It is done . but now my question is : - i don't use robot but i want to use it only to obtain the best ping while i manualy trade from my pc . Am i correct to think i can achieve that with VPS server ? if yes what
  Code help  (4)
//+---------------------------------------------------------------------------------------------------+//|                                                                            HLHB Trend-Catcher.mq4 |//|                                                                            Copyright 2016,...
[Deleted]
Hi Since 3 days i am working on getting MT4 running on Raspberry Pi 3 (os: Raspberian) . Installed exagear and wine... Check . But every Installation of MT4 turned out as MT5. Don't know why. This was very strange for me. The setup was called MT4, the desktop link was named MT4, but the real
  MT4 Crashing  (2)
Good day. So I have a custom Indicator that works fine. and when I change chart symbol it crushes my MT4. the Indicator works well if I change time frame no problem the Crash happens only when Symbol Change. could this be linked to brute force method I have employed
In my EA, I would like to print to my log (I have this already setup), the closed order if the stoploss or target price are reached. How would I do this? thanks
Hi guys, do you know how to get 99.9% of quality model in MT4? I have some issues with TickStory, do you have a valid alternative? Thanks indeed for your help. Lorenzo
Hi I have no programing background and have just started learning coding mt4 indicators. I'm practicing with this indicator and have cleared all errors, but it is still not working. Can anyone have a look for me. I should have made some rookie mistakes. Greatly appreciated. Keli
  Charts Disappear  (1)
Hi All, I have been running an EA synced with a server purchased through MLQ5. I have not adjusted the settings recently or added charts/currency pairs. It usually runs smoothly and I occasionally check in from my desktop - there are times I may leave MT4 open in the background on my computer
[Deleted]
Hi. Might anyone know why this button is greyed out? I can't launch the tester from the IDE
int objects = ObjectsTotal (); string comment = StringConcatenate ( "\n\n" , objects); for ( int i= ObjectsTotal ()- 1 ; i>= 0 ; i--) { string name = ObjectName (i); ENUM_OBJECT type = ( ENUM_OBJECT ) ObjectGetInteger ( 0 ,name, OBJPROP_TYPE ); if (type =
hi guys i want modyfy a RSI in metatrader i want place in one time 2 indicator of RSI in one separated window, and i would when cross first rsi over second appear an allert , i try to mod ,a RSI in MT4 but i dont know why i can visualize only firs RSI this is my code anyone can suggest me some idea
This update affects configurations and encryption keys similar to the installation of a new Windows operating system. I lost one activation for all indicators. Will the Service Desk give additional activations in the future?... Thanks
Hi, Can I declare similar alpahet in lowercase and uppercase, example m and M? I wish to use the same alpabet as variable , so can I differeciate both variables by using lowercase and uppercase