MQL4 and MetaTrader 4 - page 987

I would like to save some of the variables of my EA to make sure that when even the terminal is reloaded, it could continue its work where it left. How could I do that?
  Connecting via 3G modem, need help.  (80   1 2 3 4 5 ... 7 8)
There is a problem when connecting via a 3G modem (CDMA provider), the terminal does not find the network. When connecting via telephone, this problem does not arise (MTS operator), but it is not convenient to use the phone, and the speed is small. Checked the box, allow the use of proxies (probably
hi all, i would like to know how to store a value. if (fractalup>0)                                        {         pastfractalup=fractalup;         }  as shown in above i had assign a value to the variable with a condition, but now the question is, how do i keep the last variable when now the...
New article MetaTrader 4 on Linux is published: Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. Many home PC users prefer it to MS Windows series. Since the release of the special MetaTrader 4 version for Linux...
[Deleted]
a day maybe have a lot batch of trading, maybe 1 batch have 4 trading...either one of 4 are T/P then close all trade. and then will buy 4 trade again... have any idea to delete the batch of trades?
Could anyone help me, for some reason soon as i log into my MT4 terminal, i cant access the trade box? In my journal there is also this message.  2012.11.21 21:34:23    '36937': investor mode [trades are not allowed] Would really apprecaite any advice or help on this?
Hi. my mt4 demo is not working and is saying account not valid......................any clues Thanks. J 
[Deleted]
Good evening, I am currently using the following Stochastic Oszillator: iStochastic(NULL, PERIOD_M5, 7, 2, 2, 0, 1, 1, 0); The issue now is that once I use a Stochastic Oszillator (7, 2, 2) in Metatrader in a M5-chart the values vary enormously in comparison to the coded results. What I would like...
hello buddy can some1 help me to make a indicator :) on 1D Timeframe , appears on chart top left, example : Previous candle : Open xxx High xxx Low xxx Close xxx Pivot xxx = high + low + close / 3 thanks
[Deleted]
Is it possible to get the lowest/highest point within the last 60 seconds (Low[]/High[] cannot be used as it may be used on other timeframes such as M5 aswell)?
  Indicator dump by Dserg  (369   1 2 3 4 5 ... 36 37)
Greetings all! Since I'm always eager to share with the public another grail , while CodeBase is not a place for any forex graphomania, I decided to create a special branch. I will periodically post my indicators/experts here. Don't spare your money :-)
[Deleted]
Dear all, If we draw a trend line, and then want to open a position when the market price crosses the line, is it posible? If it's possible, is there someone can help how big picture of the algorithm. Thank you very much.
I found an older RSI divergence indicator named 00-RsiDiv_v104.mq4 (revised 4/26/09) that appears to work fine when you place it on a chart... However when I try to use this indicator with iCustom in an EA...it's extremely CPU intensive (60%+) and it is taking days to run the EA in the Strategy...
I try to change the indicators view from main window to sub window by replace  #property indicator_chart_window to #property indicator_separate_window What code need to add to make it view like the MACD View below? SuperTrend  Indicator: https://www.mql5.com/en/code/10005...
[Deleted]
Hi together,   I've got a question regarding trades already existing and therefore open new positions. I have two open trades...one long and one short with Lotsize 0,01...Now I want the EA to open 2 new positions when the underlyings direction is 30 Pips higher than from the first trades. The EA...
Hi all, I am trying to create a simple binary indicator, that returns value 1 when an argument is true, and 0 when the argument is false.  For example: #property indicator_separate_windowint start(){double SCORE;double MCCI=iCCI(0,0,14,PRICE_TYPICAL,0);double MCCI2=iCCI(0,0,14,PRICE_TYPICAL,1);if...
Hi All, I am a new Metatrader user who has some experience of coding, and am having a problem I have a custom indicator that calculates the daily pivot points (R3, R2, R1, PP, S1, S2, S3) for the currency pair I am looking at. I am currently looking at 5 minute data. I have manually verified the...
The backtests I am running over long periods are apparently not running to the full period specified in the strategy tester input. I can not think of any reason why this might be occuring. I have tried everything I know. Does anyone know what might be the cause? I am running backtests on EURUSD M5,...
[Deleted]
i find it very difficult to enter my account and to trade with my money in account. what can i do?
[Deleted]
I have developed a pattern recognition component that uses a TCP/IP .NET class (using a C wrapper) to get information to and from MT4, it works great on one commodity. I set it up so that I can have multiple TCP/IP clients speaking to the server (using different port#s) at once, so I could have 2+
Hi all, i have  difficulty to code my exigency. Let assume that i have multiple buy position opened.  If the ea want open  a new buy position i want that before it verify that some of the all other open buy position haven't the same or + o - the same open price level respect the actual ask; Hope to...
[Deleted]
  Syntax Question  (1)
Hello all,  I am just getting into programming for mq4, I apologize if this question has been asked already (as I am sure it has many times) however I cannot find a solution on the forums.  I am trying to compare the ask price with another price and the condition never returns true even though it...
There seems to be a lot of conjecture as to whether it isbetter to trade short time frames or longer time frames. In fact it is often said that unless you can trade thelonger time frames then you shouldn’t even contemplate trading the short timeframes.   Now, I am not sure I entirely agree with...
Hi, if anyone can help me with trying to set range bars so they have a standard tick amount ie, each has 12, 10, 15 ticks  etc, per bar i would be most grateful have managed to work out the rest but am really stuck on this? Would be gratefull for any advice hear?
Hi all   Ok I know some will laugh, but I need help with an ultra simple indicator. If anyone who understands MT4 code has a spare ten minutes (or maybe this indicator laying around) - any chance of helping me?   I need to plot a simple one line/point (whatever) indicator below my chart which plots...
Hi, I run my EA on my home pc and login to my account by my Investor-Password: so no trades were possible! Is it correct that isTradeAllowed() still returns true (instead of false), and only if I set one of the two options "Allow live trading" to false it returns false? Thanks in advance, Gooly
I do not want to configure my Ea's with the standard input Box. the screen is to small and does does not allow for if statements. I looked at InputResizer by Mary Jane and it is very nicely done but it is not quite what I am looking for. I can and do use =MessageBox  but it only allows...
I personally had never used StringConcatenate because it would have made my code less readable and probably wouldn't have save much time anyway. https://docs.mql4.com/strings/stringconcatenate "The StringConcatenate() works faster and more memory-saving than when strings are concatenated using...
[Deleted]
  EA working  (4)
Hi, i have seen an ea is reloaded when we change the symbol chart, but it seem to continue to work normally for me, even if the window is on a symbol without the EA. Can you confirm and explain please how it works exactly. Thanks
[Deleted]
Hi all, Please share if you know How add two chart panel in Android meta Trade 4 on Samsung smart phone. Thanks Manoj