MQL4 and MetaTrader 4 - page 25

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
[Deleted]
I thought this might be helpful. I found the original somewhere on the net and expanded on it. It should be noted that many of these commands should not be used because the MQL4 language provides better, cleaner, alternatives. Occasionally though, you find you need to accomplish a particular task
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
the below code checks the conditions and double TP and SL or Returns to initial TP and SL. but when i run it, i get something like example, 1$,-1$,-2$,-2$,1$ but the way it should be is, 1$,-1$,-2$,-4$,-1$ So basically it suppose to be doubling when it hits stop loss , unless the other condition are
  Advanced Cycle Analysis  (133   1 2 3 4 5 ... 13 14)
Hi guys, there is meanwhile a growing community for advanced cycle analysis of financial time series that I decided to open a new thread to bundle these discussions a bit. Next to the wellknown thread Fast Fourier Transform - Cycle Extraction we have meanwhile also a lot of Goertzel Browser...
Hello. I attached my custom indicator to a naked chart and save the template as "tester.tpl". Then I run strategy tester and select the indicator again. So in visual mode I see 2 of this indicator. These 2 indicators works different! After many checks, I found that the one is attached by template
please for help Ea dosnt follow rules specified for order open, its not opening trades in regard to correct site of SMMAValue? and dosnt fillter trades by engulfing pattern candle as its stated here: if(IsBearishEngulfing() && MFITrend==-1 && Close[1]<SMMAValue) ? I dont have a better idea how to
How to code such that, When I press the "right shift key", the current chart will perform "a shift from the right chart border" ? Thanks! I have tried to code in the following, but it doesn't work: if (id== CHARTEVENT_KEYDOWN ) { if (lparam==' 16 ') { ChartSetInteger (
Hi everyone In the expert that I want to write, I need to measure the strength of each currency based on a series of parameters and then determine the strongest and weakest currency. For example, I will create the variable dollar, euro, franc, etc., and then declare the largest one based on the
  coding  (17   1 2)
Hi i try to make from one indicator to work as an AI all is well til this 2 things i need some help first erorr is, ')' - unexpected end of program secand erorr is, '{' - unbalanced parentheses
Here is the parameters: the buy signal is: in the 30mins timeframe, ma50 should be below price, ma100 should be below ma50, the macd signal crosses above or has crossed above the base line + in the 1hr timeframe, the macd signal line crosses or has crossed above the macd base line. This is the buy
I understand that the previous syntax was this double iMA ( string symbol, int timeframe, int period, int ma_shift, int ma_method, int applied_price, int shift) and assuming i want values like this: double maValue = iMA ( NULL
hello I have a nuisance. trading session is in NY timeframe 5m dashboard on mt4 shows irrelevant times lower section ex: 2023.11.03 14.25 when in reality i see different time on my pc i know i can change it in trading view but how can i change in mT4 when i put in crosshairs to see pips number
Hello i have six pairs with budget of $299 lot size 0.01 is it possible to open 18 orders but manually close them? if i open 3 order per pair? not using a size positioner yet
Understand that all these predefined variables from MQL4 are missing in MQL5 - Ask, Bars, Bid, Close, Digits, High, Low, Open, Point, Time, Volume . What are they represented as in MQL5 now? Thanks
I've found this be a simple way to calculate pips without concern of digit variations between JPY and other pairs. Also, the spreads are taken into consideration for a more accurate view of how many pips you've actually earned. numberOfPips = OrderProfit() / LotSizes();
hello guys i need your help i am recently learning mql4 coding and maybe my problem is easy for you. I appreciate you for helping me i want to write a trailing stop EA based on risk reward ratio for each order.(orders stop loss are not the same pips) i know i can store order information like stop