MQL4 and MetaTrader 4 - page 74

hi MetaTrader hangs in the time frame below 15 minutes please fix this indicatore and set alerts sound for arrows. thanks
It is called Bar Direction. My idea is that if the current bar has C higher than Midpoint, it will be equal to 1 and vice versa. But if that bar is a perfect Doji (C = O and C = Midpoint), it will be equal to Direction of the Previous Bar. That's when the problem arose and I don't know how to solve
Hello everyone , if I share my ex4 file with an account number protection and using the MQL5 Cloud Protector in Metaeditor to provide additional protection , do you think someone can still break the account number protection even if I use the MQL5 Cloud Protector? I understand that you don't
  Grid system help  (6)
Hello coders I need help in correcting the code below. I want a situation whereby after the buy order has been activated the grid will open buy orders after every increase of 50 pips and when s ell order has been activated the grid will open trades after a decrease of 50 pips. I've tried
Hi. first thanks for all, and excuse for my English, I do better than I can :D I develop my own EA and I want to put some bmp images to chart. I don't have any problem to create an bmpObject and load bmp file from MQL4/Files folder, but this only work on realtime mode, if I try on test mode , the
Hi, When hovering over an object you usually see a default tooltip. With vertical lines, for example, it is 3 rows: 1, the object's name, 2, the object's description, 3, the price at which your mouse pointer is intersecting that line. You can change this with something like: ObjectSetString(0...
  ATR % projection  (1)
Hello, I'm looking for an ATR projection indicator that can plot a series of small horizontal lines (bands) for that days period / price action which is a projection of the days trading range at say 50%, 75% and 100% of the range Does such an indicator exist in the publoc domain ? I have a screen...
Hi, I'm struggling in converting this old indicator to a newer version that uses OnCalculate() instead of onstart(). In the version with OnCalculate() the indicator stops giving any type of indication. I have read the documentation but there's something I'm missing about how to use the
Hi All, i had an error in my simple engulfing EA which i tried almost a week still cant found the error. This EA is when the IF condition is hit then execute the BUY OrderSend() without set the stop loss price because i want to avoid the candlestick shadow hit on my stoploss price while still
I am using MQL4's iRSI to code an EA that covers a short when RSI is below 50. The problem is that the cover is triggered before RSI ever reaches 50; the terminal reports that RSI is at 0, while the graph reports RSI at ~60. Extract of the code: double currentRSI=iRSI(NULL,0,14,PRICE_CLOSE,0); //...
I try to disable chart scrolling and scaling by the ChartSetInteger function with the property CHART_KEYBOARD_CONTROL (in MT4). Disabling scrolling is successful in this way, but unfortunately scaling cannot be disabled in this way. Every time you press "+" or "-" on the numeric keypad, the chart
Ok so any time I open mt4 the app defaults to eurusd and 5m timeframe and any time I change the colours it does not save and just reverts back, also order history is not showing in the correct order! What is going on? I've never had issues like this until today, I've used mt4 for years. Is anyone
[Deleted]
  MT4 mobile  (2)
Where can I download older version? I don't like the new one
Hello! I am trying to understand the function ICustom(). The definition I have from MQL4 is that this function ICustom() calculates the specified custom indicator and returns its value. Among the parameters, there is a type string parameter "name" indicating the path/name of the custom indicator
I have tested simple code below and i got Array Out of Range Error. #property strict void OnTick () { Test(); } void Test() { double a[ 500 ]; Print (a[ 10 ]); ArraySetAsSeries (a, true ); double ma = iMAOnArray(a, 0 , 10 , 0 , MODE_EMA , 1 ); } but when i add one variable in
Hi, recently made a EA with MQL5 iam now recoding it for mql4. Function returns a simple JWT token. I have updated the "WebRequest for listed url" with the url on both. Any ideas? Thanks. CJAVal Login(CJAVal &dataobj) { CJAVal json; string url= "http://127.0.0.1:5000/loginExtension" ; char
  Send Error 131  (1)
I was getting a send error 138 while I was testing my EA. Got the info as to what it was and how to fix it, and did. Now I'm running my EA Live on a VPS and now I'm getting a Send Error 131. Can someone tell me what it means and how to fix it
[Deleted]
Hello everyone, I'm recreating a MACD (I know there's dedicated function, just wanted to calcualte by myself) and when I calculate the signal line it makes my platform freeze for a bit, everytime I change signal line period I get a 10sec lag of the platofm. Someone can help point out why that
Hi all, I'm new with MQL4 and I have this indicator which I should embed inside an EA. I know I could use the iCustom function but for several reasons I have to embed the code right inside an EA function. Could you give me some suggestions to avoid modifying whole indicator code? Also some simple
  OnTimer()  (6)
Hello! If I place a Market order on OnTimer(), Market is open But there is no tick coming in that moment , order will still be sent? Let’s say I want an order to be send if TimeLocal() >=some_datetime. Last tick was received 15 seconds before some_datetime. This order will be sent? I want to use
Theres only 2 errors and i cant seem to fix it, ';' - unexpected end of program (line 80) '{' - unbalanced parentheses (line 31) double entry_price = NormalizeDouble(price, MarketInfo(Symbol(), MODE_DIGITS)); double sl_price = NormalizeDouble(price + StopLoss * MarketInfo(Symbol()
  Error code 130  (3)
I'm trading BTCUSDT which has a minimum stop loss of 50 pips. My stop loss is roughly $5 away (0.02%) for every trade. Only about 10% of the trades actually go through, and every time it throws an error I print the price, SL and TP. All the calculations are correct and exactly the same when it goes
Hello, I faced a strange error. I'm using ontime function based EAs and recently some EAs stopped with message "cannot set timer (xxx)". As you know, ontimer function requires 'EventSetTimer(xxx) to run the function repeatively. Have you guys ever met this kinds of error? Thank you for your feedback...
Good Evening, I've a problem with my customized indicator. That is, when I go to emulate it on multiple crosses and let it work for hours without closing the windows, this indicator continues to vary from cross to cross. which should remain the same because it has to calculate the same series. What
hello all ,, can u help me to modify my code ?... i wanna build strategy like this https://telegra.ph/file/fbdc32ed144011a1c8c0a.jpg with Fxgen and the model is like this https://telegra.ph/file/10ac5ab589d8a46a05554.jpg as u can see the model is not simple ... if the order reach Buyorder5 and
Hi there, I'd be very grateful if any programmer out there could have a look at my code? It compiles with zero errors but when I install it in MT4 Strategy Tester it generates zero trades... What have a missed out? Its just a simple MA crossover strategy using the RSI and Stochastic indicators as
Mt4 on my Samsung stopped displaying charts. No error message just a static image of three candles in monochrome appear. Screenshot attached. No indication that a chart is even trying to display. Everything else in the app works fine. App was updated, same result. Same if symbol is changed. Any
  Error Msg 138  (3)
When running my EA on MT4 Demo account, it seems to only trade in one direction when backtesting. In the journal it shows the Buys and Sells, but the Sells show an error 138. What does this mean and how do I fix it
[Deleted]
The documentation for print (https://docs.mql4.com/common/print) says: "It enters a message in the Expert Advisor log." Where can I find this log?