MQL4 and MetaTrader 4 - page 189

Hello everyone, I can't collect history data in my pc even though I have the perfect conditions to download it, all I knew that changed was the account size tweak, I changed it to Micro instead from standard lot. And I noticed that it was probably the problem because the History Center's database
Is there any ea that can close open position when small ema cross below big ema? I been searching but i cannot find. The closest one that i can get is inside this thread https://www.mql5.com/en/forum/181274 . It closes open position when one ma cross another one ma. 
Hi, I have an indicator on the chart. I want to be able to press a key on the chart, and this will simulate a restart of the indicator like it is drop on the chart for the first time. Meaning: I press a key on the chart (for ex: 'q'). this will call the DeInit function, and then the OnInit, and then
Hello everyone, I hope you are doing well this morning. You have helped me a lot before, I really appreciate this community :) So! I have a little problem with my Trailing Stop Loss extern int TraillingStart = 15 ; extern int TraillingStep = 2 ; extern int StopLoss = 100 ; extern int TakeProfit =
Hello! I have a problem with MT4. In market watch tab the prices are all 0, even if the on the charts everything sims normal. Please see picture. Anyone encountered anything like that? Thanks
Hi,I am developing an Expert advisor for Meta trader 4. my code compiles without error or warning in metaeditor, but anyway the run button is disabled son I can't test it.do you know why this could be? thanks for your help
  Helweg/Stendahl value charts ...  (377   1 2 3 4 5 ... 37 38)
Helweg / Stendahl value charts (from "Dynamic trading indicators" book) I guess this one was not made for metatrader yet since it was not possible to draw histograms with one end not being zero. With metatrader 5 that is possible, so here it is (it is metatrader 5 version only since some of the
-
I have seen this issue mentioned here and there, especially by 7bit, but I was never able to get around this problem: The strategy tester does not properly decrement the reference count of the loaded library during deinit(). Because of this, the DLL file stays loaded in the system, and crashes when...
With my code below I can identify Bar 6 on the image above. How do I calculate that Bar 5 4 3 2 1 is still inside bar 7 ? for ( int i= 0 ; i<limit; i++) { dCurrent=High[i]; PrevH=High[i+ 1 ]; CurrH=High[i]; PrevL=Low[i+ 1 ]; CurrL=Low[i]; if
Hey guys! i am from tradestation and i am wondering if there is a syntax for intrabarordergeneration, witch allowes me to make an order as my criteria is reached and not at the open of the next bar. Thank you! 600
Hello good day, have been trying to to code my Ea to wok on specific days of the month but i know am not doing some things right, did some research but below is what i arrive to and its not working fine it only works for the first date i specify here is what i did, i create an extern string so i can
I looked all over the MQL4 manual and still can't find the right way to just grab these 2 chart values, as shown in the attached image. The values are highlighted in a red circle in the image. As you can see, we need the value of the bottom and top "little-squares-predrawn-by-mt4" chart values...
Hi, I am a robot developer , I have a scalping robot that open multiple trades at the same pair. At that moment price fluctuation and movement very fast. Let say I need to open 6 orders. I am using a for loop to open the 6 trades. Usually the order near the end 5 or 6th order will be 1 to 2 seconds
Hello ! I've looked around and could not find a way to get the file of an EA or indicator just after preprocessor has run and just before compilation. What I'm trying to get is actually the one file with all the include merged inside but not the .ex4 version, still get the .mq4 code readable. Do you
Hi there. I am trying to obtain in a variable the maximum value of entry to the market of all the open positions. I've tried it with a for loop, going around it several times, but nothing. I can't get it to work. Could anyone help me? I pass you the code that was finally left ... Thank you all
I need help to correct this code, it is keep alerting continuously when margin < 200 , but I want only once .!!! void marginlevelwarning() { double freemargin = MathRound(AccountInfoDouble( ACCOUNT_MARGIN_LEVEL )); if (freemargin < 200) { Alert("Margin Level Low : ", freemargin,"
The indicator still works with older builds. No info is in the indicator window
I'm still learning how to code an EA but I face a challenge while doing it. Here's what I'm trying to achieve... I want the code to open a trade only if there is no open trade during that specific candle. I do not mind having a new trade opened on every candle (multiple trades running at the same
Guys, I'm hitting myself to try to extract the data from the string below. [{"type":"success","message":""},{"id":"14058","symbol":" EURUSD ","tp":"1.2271","sl":"1.2217","direction":"buy","risk":"2"},{"id":"14059","symbol":"EURUSD","tp":"1.2260","sl":"1.2190","direction":" buy ","risk":"2"}] Note
way the ea robots not trading on my mt4 platform
  Metatrader 4/5 never opens  (11   1 2)
Hi, I have a problem I never encountered before using either MT4/5. It started like 2 weeks ago, after I got an update tab for my MT5 (the usual one you get, which closes your app and restarts it again updated) - I had tons of them before. But, after this update, my MT5 never opens again. I click it
[Deleted]
  Disk space C full  (15   1 2)
Hello, I am backtesting quit a lot and since this evening I noticed I wasn't able to make another backtest, due to a full harddisk I also recieve a MT4 journal message: TestGenerator: write file error. As I only use this computer for forex related stuff I didn't put junk on it,.. Actually the only...
Very new to mql4 and programming in general. I currently have several boolean variables declared in this fashion: bool ShtRev = High[0] >= HiZone && MidPoint < Low[1]; bool ShtSzeCatLrg = ShtZone / (RangeHi-RangeLo) <= SizeCatLrgMax && ShtZone / (RangeHi-RangeLo) >= SizeCatMdMax; bool LngSzeCatLrg =
Hello dear MQL members, I have downloaded 3 MT4 demo indicators from the market using MT4. When I try to backtest them in the strategy tester, MT4 freezes. My computer has high spec... Can someone enlighten us into why this is happening and if there is a solution to this issue
[Deleted]
Hi Is it possible to automatically change the Candle Size when i zoom out or zoom in? When i zoom out for example, the candles are getting into each other, which looks like a mess (third Picture) I am using Heiken Ashi Candles, mq4 File is attached. I think i need to write something like: If zoom 2x...
Hi friends I successfully created my first EA. With an initial deposit of $1000 it creates a profit of $780 each month (using a spread of 0.1 pips). It has an average of 300 trades (round trip) per month. I am however not sure if it will work in a real life scenario. Do brokers (eg IC Markets)
Currently, the EA will open a buy position on certain conditions, or will open a sell position on certain conditions. I have no experience with MQL scripting, and wanted to know what would I need to change in the script, to simply have it do the opposite (instead of opening a buy position it'll
I tried to get trading session by following codes but something wrong ,I not get correct trade session. example ,current is london session in my local but not get that value in codes can someone fix this issue .I need help I want to close trade in asian time and open trade london and us time #import
There is an issue in the following method of the CAppDialog class: //+------------------------------------------------------------------+ //| Create unique prefix for object names | //+------------------------------------------------------------------+ string
I am learning to compose indicators. I changed the official RSI a little. Most I do is changed the final step of RSI formula. For practice, the idea is to calculate the (net profit in pips) / [total rise pips + abs(total fall pips)], windows = 20, time frame is M1 or M5 The main loop is shown below