MQL4 and MetaTrader 4 - page 85

When a chart ID is passed as a parameter with long type from Function 1 to Function 2, and the chart ID is used to call a ChartSymbol in Function 2, will the ChartSymbol be different from the ID's ChartSymbol in Function 1
  pips calculate  (2)
Hi everyone I expect profit for order in dollars(account deposit currency) for example 30 dollars profit for an order with specified lot size. Im looking for a method or any formula for convert my order profit to pips My exact formula for calculate my profit is: ((equity-balance) * 100)/ balance
It just downloaded an update closed itself and installed it without any prompts Or did i just notice it and it always has been
HI, is there a possibility to have two expert advisors on one chart on MT4? Thank you
Hi guys! We know that same instrument (particularly indices) can have different names based on different brokers (or platforms). I even tried using ChartSymbol() on different brokers and I realized that the same name on the market watch is still being output by the EA and not a broker/platform
I have a very simple trading strategy that I have back tested manually & it looks very profitable. Now I need a bot to be able to back test on ALL assets & to do live trading. Can anyone help me with this
hi everybody I need to get the index of the bar when the mouse hovers over that bar. I am using MT4 Does anyone have help? Thanks
Hi guys, I have the below code for pending orders. I want it to place a buy stop X points above the highest point in the last few candles, and X amount below the lowest point in the last few candles. The orders aren't being sent at all, and I get OrderSend() 130; not sure why..? Please help....
Hi all I need a code in mql4 to put stop loss on the breakout of moving average 100 I mean when the price break the moving average up or down the stop loss will be after 20 pip of the breakout
This might seam like a strange question but one of the prop firms out there doesn't allow the use of EA's (I know crazy), is there a way to hide that you're using an EA (not a HFT EA or arbitrage, this is a normal EA more for risk management)? If I make the magic number 0 and add no comments. Would
I am working on an EA in MT4, trying to take advantage of some multi-timeframe features. In summary, my current EA runs on a PERIOD_D1 tf and I want to check the current time on PERIOD_D1 tf to manage housekeeping functionality. To isolate the problem I made the following toy EA. This is all that is
[Deleted]
Hey, is there a way to get a notification via email or push to mobile devices if the MetaTrader client running on a server goes offline (no connection bottom right corner)? This would avoid offline times and missing action form the trading signal. Thx!
Hello, by login into MetaTrader via Start Up configuration file and running script, how is it possible to receive the error Invalid Account by the code? Best Regards, Dmitry
Hello everyone! Sorry for the spelling mistakes, I'm not good enough in English :D. I need a Metatrader 4 indicator that connects the minimum and maximum values ​​with a line in a given period in chronological order. Example: This is an M1 chart, on which the minimum and maximum values ​​of the M5
Hi, I know how to export historical trades from AccountHistory in MT4. But how do I export type=balance (rollover, funds) from Account History in MT4? Thanks
Hi everyone, I want to use supertrend in expert advisor, but I can't understand how should I implement it. I've downloaded supertrend indicator from earnforex, and then I use iCustom but I didn't understand how it work. when I use indicator for a chart, it works perfectly but I can't get the
  VPS  (2)
Kindly assist. The VPS seems not to be working. The EA on the VPS has been loaded but the EA doesn't take trades from there
Hi friends, I am requesting that one of you brilliant programmers add an alert and push notifications to my arrow indictor. <deleted> Thank you! SA Patton <email was deleted by moderator>
I want to develop an EA that takes buy and sell stop orders on inside bar when an Asian low/high or previous day high/low has been taken. The EA will then look for inside bar and place buy and sell stop orders on it. Users can decide to use only the Asian high/low or the previous day high/low. I
Hi all,   This is my first post and I did search for the answer extensively over the last week.   The problem is, my EA when attached to a chart will execute a buy/sell order almost immediately, because its buy/sell condition has been met. However, this could be halway through or at the end of the...
Hi, I can't receive any alert notifications sent to my iPhone Xs Max. I'm able to receive them on my computer on MT4...not via email (which is a whole other topic) I'm using MT4 on my Mac installed from AxiTrader. I'm getting this same error message when I press the "Test" button and check my
This is crazy.. I'm posting this to prevent someone else wasting several days pulling hairs like i have. Chronological situation: I need to store extra information when placing order via OrderSend syntax. I have the requirement to store 2 extra info, range of open price & range of TP, ie: TP1 & TP2
Hi Folks, I have a string which I am saving to a file. Problem is, that the string has 4 CR in it, according to notepad++, which I want to replace and take out the line breaks. CR = Carriage Return ( \r , 0x0D in hexadecimal, 13 in decimal) — moves the cursor to the beginning of the line without
Hi pals, Hope you are having a nice day When I want restart VPS, I always Remove EA from chart, restart the VPS and attach the EA again to the chart. However this time I forgot to remove(and reattach) and my data from last run which I always recover with OnInit(), corrupted :( For now, I have 2
I am consistently getting the above error message. When I do not include the '{' I get multitudes of error messages saying if expressions not allowed on a global scope Is there any solution to this
  MT4 ON M2 CHIP  (1)
Any way to install mt4 on MacBook m2 since I keep failing to operate it, or will there be an upgrade on mt4?>thanks
Suddenly I was caught by this puzzling behavior of MT4, say Use Date: from 2017.06.13 to 2017.06.14, supposed to be the span of 1 day. On M15 timeframe, it should be (of 1 day) = 4bars/hour x 24 hours = 96 bars. Yet the backtest report says "bars in test" is 1097 bars! Can anyone explain this
Hello, I would like to know if there is a way to ensure that on my four mt4 platforms linked to the same account, where I have loaded a dozen EAs on each platform, when a certain profit is reached on the account, thus averaging the profit and loss between the four platforms, all positions on all
Hello Im working on EA for MT4 and i cant figure out how to make the EA to wait before last open position is closed (finished) before looking for a signal to make a new one.Sorry for the question but Im new to Mql programing so any help will be appreciated.Regards
  Objects Destroy function  (13   1 2)
Hello! So I have this Dialog Box with other objects on it. #include <Controls\Dialog.mqh> #include <Controls\Button.mqh> CAppDialog MyDialog; CButton MyButton; int AppDialogTop= 30 ,AppDialogLeft= 50 ,AppDialogWidth= 390 ,AppDialogHeight= 680 ; // Dialog Box int MyButtonLeft= 10 ,MyButtonTop= 10