MQL4 and MetaTrader 4 - page 18

I try to create a code which will work on all instrument to calculate the right lotsize based on 1 percent risk, but my current code show me only a right lotsize for forex currencys, when i put the indicator on bitcoin chart i get to big lotsize, can you help to make a working code which will
  CumulativeDelta  (2)
Hello! Any idea how to calculate cumulative delta in mql4? There are some indicators saying that they are delta indicators , but as per definition , delta calculation involves volume_ask and volum_bid which is not available in mt4
Hi guys, I have an indicator that duplicates horizontal lines across multiple charts on different timeframes. The code to place and move the lines works fine but the code that deletes the lines does not work. #property strict #property indicator_chart_window #include <stdlib.mqh> #include
In the following function the ibandsonarray always returns 0. I have verified the array is filled with the correct values, but I always get 0 for the upper and lower bands. I searched this forum, google, and youtube for several hours, and found some people who had this problem, but they either
I just bought an EA for the MT4 platform. But when I click "Install" it doesn't work. I can't install my EA. Can you please help me
<Deleted> //----------------------------------- // Open Order pending by other pending orders //----------------------------------- int start () { ngày giờ tĩnh t; if (t == Thời gian [ 0 ]) return ( 0 ); double MyPoint = Point ; if ( Digits == 3 || Digits == 5 ) MyPoint = Point *
Hello, I am using an EA attached to 4 currency pairs in one MT4 client. I frequently encounter an error " Trade context busy ." My question is, is this error due to my computer hardware resource issue (RAM/CPU), Metatrader 4 application-related issue, or Forex broker server-side issue? If this is a
[Deleted]
Hello my entry prices are different in live trading from EA backtesting results, what might be the reason and how can I fix it? The spread used is the same as the time traded, but I get different results in entry hence affecting the results, how can I fix this. The EA is supposed to be opening
Hello there, I'm converting the working MT5 version of my EA to MT4, but I get an array out of range error not matter what I try. It's my first time working in MQL4 and I have tried many things but I can't solve the issue so hopefully someone can spot it and advice because I'm running out of idea
Hello, even though it worked fine yesterday, today I'm experiencing a "connect failed [No connection]" error and I cannot search for any other brokers at all. I don't understand what's happening?????? I've been using this server for 10 months now. It has always been normal. I run 30 terminals
Hello everyone, I have a problem with a simple math "double/double" in my system. I've been trying to find an answer but haven't come up with a topic that's exactly what I'm looking for My code here. I can print value x1,x2,x3,x4,x5,x6 , but x7 doesn't work. Someone can give me the answer, please
  wrong return  (1)
in my code sometimes the function returns wrong number or does not return
hi any one know how to get the chart of opposite tickers in metatrader ? instead of EURUSD to show USDEUR instead of USDJPY to show JPYUSD and so on (i need it to be real time updated as the original tickers) any one can help
  Dope.mq4 EA  (2)
Good day all. I wonder if anyone knows this code and where does it originate from. Perhaps another EA and this one was renamed? There is not much written about this EA on the web, and back testing shows great results but in real time trading it does not update the "Level" line properly. Does anyone
Hi; There are apparently 3 choices to calculate current price. Which one is preferred and why? SymbolInfoDouble(Symbol(), SYMBOL_BID); or MarketInfo(Symbol(), MODE_BID); or SymbolInfoTick(Symbol(), MODE_BID); Appreciate an explanation. Thanks
I was attempting to download some broker's mt4setup.exe and the connection kept timing out.  I tried from two different computers in two different countries. After about 15 minutes, I got it to download in the Thailand location.   But New York I am still getting "Timed out".
classes and structures is confusing for me would you please refer some tutorial video contents to me
Hello, everyone! I subscribed earlier today to a signal in MT4. Because of some glitch, I had to restart the computer. I closed all instances of Metatrader, restarted the computer and opened them back. Soon after that I realized that everything related to the signal I subscribed to just disappeared
Hello, I am creating a code, which trail all the order to same price at ones with magic number. Let say, there are 20 Open Order with Magic number 100, i want to trail all the order at same time at same price. To do this, i am trying like this double gPips = Point ; void SequenceTrailing( int
Explanation from the developer : Program works by tracking a chart in external program and sending a signal through txt document . Expert in meta trader reads said file from common terminal folder and saves its content in a string variable . That part of the
I cant login to my account on both MT4 and MT5 market on one of my VPS
Hello, Im getting these errors on all of my purchases. Im unable to install. I tried differnt accounts, brokers, and computers. Any ideas? Thank you!! 2024.03.10 10:31:49.701 MQL4 Market: failed to get of info purchase [403] 2024.03.10 21:40:30.032 MQL4 Market: failed parsing info about purchasing a
Hi my broker still on mql4 and it doesn't have a math function for Normal Distribution (like the norm.dist function in excel). Does anyone have the code for this function or know where can get copy it for mql4? Thanks
Even with maximum zoom in, MT4 still displays days in the bottom axle on a daily chart. (see image). How can I get this to show hours instead? Thanks
Hello, I am dev app to read the Journal tab on MT4 by reading the log, which is going pretty well. However, there is one issue I don't understand why, in the case of Order take-profit or stop-loss, it is not written to the log immediately. It requires other actions first or restarting MT4 for it to
Hello Support and all, I've found problem of no any alert sounds from MT4 after update as build 1408. I've confirmed all setting for sounds are Enable (Option-->Events-->Enable for all). I've confirmed MT4 teminal for 2 brokers with 1408 update have the same problem, while MT4 teminal for other 2
Hello I am currently new to MQL4 and I need help understanding how to send data together with the post command using webrequest:  https://docs.mql4.com/common/webrequest  How do I attach a json string as raw data using web request since data is an array of characters.  I tried creating a simple json...
I see EA's that have a nice rectangle as the information text background, works nicely for them. However, I can't do that with MQL4 scripting. It just doesn't work, I have tried everything that I thought of, googled around as well. My rectangle always comes white, no matter what color I give it
Hello, I need to know How dose the EA calculate the TP price by using Martingale strategy for each trade... If can some one share the formula with us in Exel sheet to use it .. Thank you for ur time
hello, i have migrate all the EA but i don`t see the expert tap. on vps. i see only (details,journals)