MQL4 and MetaTrader 4 - page 36

Hello everyone, I've been struggling with the error for some time now, and I can't seem to make it work. I'd appreciate if someone can help. This is my code: void Writer( string body, string filename, bool ShouldBeEmptied){ int handle; while ( true ){ if (ShouldBeEmptied){
Hello, I would like to secure one of my ea in .ex4 so that when I share it the people who would like to use it would have to identify themselves. And I would like to make it impossible to decompile it in mq4. Is this possible and what are the solutions
Hi, So I'd like to get the value of Only Shorts , Only Longs, Both on my script. This will help me a lot to take decisions on my EA. I've tried the SYMBOL_TRADE_MODE but it says it's FULL_MODE not the current mode. Does anyone would like to help me? Thanks in advance! MQL4
I'm new to mql4 language. I want to get the first price close of the current day. For example, tomorrow at 00:10 of 9 november i would like to have the price of EURUSD to store inside a variable, that i need to make other calculation
When I add a horizontal line from the drawing tools menu, I can drag that line. When I add a horizontal line from an EA, I can't drag it. How are they different? Why can I drag one but not the other
Hello, One of my MT4 account is running EA and the account is hosted by MQL5 VPS. I would like to create a signal on MQL5 but the credentials (broker server + account# + investor password) doesn't seem to work. I have this message " Authorization failed. Please check trading account data. " Do you
Hello All, I have an EA for market. It works fine in my back testing AND in my Live account. But for some reason I can NOT get it to verify in the MQL5 testing. I am using pending orders and only trading once a day. I have attached the errors I'm getting. So it seems to work on GBPUSD but has issues
Hi . I have just start to learn the MQL4 language . and I need some help. thanks'. it any one can help me to right correctly a code for MT4 . the issue is the time candle . so . I am trying to right a code . to A candle at specific time like 10:15 and ask to add an horizontal line at the highest
[Deleted]
Hello, im new here at MQL4 Forum. I have a big Problem and i dont know how i can fix it. I habe my own Addons for MT4. I have a website, from where i sell these Addons. After a customer buy a product he gets a license-key via email. I made, that i can see the license-details via an specially URL
Hi exist example or tutorial for create and interact with .Dll , but extremely easy ? like simple Hello world? thanks
Hello, I have written code to output a custom value using the Strategy Tester in MQL4. The following is only part of the code which failed (calculating R2), it seems to go already wrong with calculating Y (total profit). It correctly calculates the number of trades (so correctly excludes all
Hi community, my boss trades with Metatrade 4 and he asked me if i can create an smartphone app with FLutterflow (low code app builder) that consumes the data from the Metatrade API. Is that possible? how? thanks so much
My account stopped trading after 23rd Oct and I just found this issue. I had just contacted with my broker and my broker said there's all good and let me ask to MQL5. From my VPS side, everything looks good
Hello geniuses I have a button on my chart The button is to get permission from the user, which is basically stop and start. I designed the button and also used the OnChartEvent() function. So, at next step, if the user clicks anywhere on the chart, I want to give the information of that part In
Hey guys, On MetaEditor (MT4), when I do "Start debugging on real data (F5)", it will always pull up the EURUSD (H1) chart. But now it's on weekend and debugging is not working. I added break points to a few lines but couldn't observe the expressions of certain variables due to no tick data coming
Hi Everyone, Im trying to make a simple EA, working on bollinger band. After after several attempts, I alaways have this error message : "Tester: exchange rate cannot be calculated"; "Tester: margin exchange rate cannot be calculated" But when I use it on forex, it seems to work without error. Can i
the more I 4 platform for trading the more I see it needs some of the tools of trading view. the community that uses mt4 or mt5 must make a petition to upgrade the Api or core source code to be for user friendly. like it is with trading view platform majority of time trading view used as a charting
You have trades on several different pairs. One pair has a series that you want to close at a specific net profit (or loss) point. This seems to be quite a primary need: is there an MT4 EA that does this? Thanks
I have downloaded this free Squeeze Momentum Indicator MT4 indicator from https://forex-station.com . It is an adaptation from PineScript to MQL4. My problem is that I don't know how to use the iCustom() function to obtain the "histogram height" and the "squeeze status", when coding an expert
I use iCustom to call an indicator in my EA, when testing it is two slow(more than 20 minutes). I use the Heiken Ashi indicator. Anyone know why it is so slow? When I use an indicator which I create myself, it is very slow too when testing. Thanks.
Hi all.    I'm using next code lines to attempt change bid line color but it doesn't change color. although ask line is working fine.   Can you help me. Thank you  ChartSetInteger(NULL, CHART_SHOW_ASK_LINE, True);ChartSetInteger(NULL, CHART_SHOW_BID_LINE, True); ChartSetInteger(NULL,...
Hi everyone, I am new to trading and would like to understand how to import live data from MT4 to Excel (Excel 2013). I have looked through other threads posted on here previously that advise on this and still cannot seem to make it work. Thus far I have tried to simply import a bid price to excel,...
Hi, my graph draws a series of vertical lines following specific indicators. If i want to check the position of the last i have found this function datetime  ObjectGetTimeByValue(   long     chart_id,      // chart ID   string   object_name,   // object name   double   value,         // price...
Could you please help me implement HEDGE in my code? I can't do it at all... I don't mind opening the code, I ask for help from more experienced people, I make the code available... I've already searched in mql5 but nothing that fits my code... please... Auto-translation applied by moderator void
Hello, I'm using renko maker confirm indicator and I'm trying to make an EA. The basic rule is BUY when color of indicator = Lime and SELL when color of indicator = red I want to check the color of renkomaker_confirm indicator with iCustom but I don't know which buffer number to use. I don't want
Hi Dears, I want to upload an EA on mql5 but this EA needs Kernel32.dll to run and mql5 don't allow EA dll necessary uploading. How can I delete this dll from my EA code? This part of code that use this dll is below code: #import "kernel32.dll" int CreateFileW( string Filename, int AccessMode, int
  file movement  (2)
Hello geniuses I have used a file to store information for different pair, which reads them from the file when needed. Writing and reading from the file is done correctly. Now I use two metatraders for several currency pairs. But because the storage location of each of them is separate, they cannot
I have this project in which I need to execute two trades instantly among two different brokers. I use the native MQL4 function such as FileOpen and FileWrite to communicate the orders between brokers. What I had an issue with is that some orders will not write to the file if it was previously
Hi, I created a simple robot which takes a position 1 hour and 5 minutes before the ftse open (ie 6.55am) based on if its above (buy) the 8ema or below (sell) for the gbpjpy pair. for some reason today the robot took a sell position when it should have been a buy. I then tested it again using the
Hi, I hope I've come to the right place! Please bear with me, I'm a complete newbie. I currently have two accounts connected to my app, one of which I would like to remove. Just from the app itself so I'm no longer able to use it to login to that one specific account, I am very much not seeking to