MQL4 and MetaTrader 4 - page 35

  Distance arrows / candles  (11   1 2)
Hello everyone. I need help to solve a problem on the distance of the arrows from the candles. I have these two codes: int OnCalculate(const int rates_total,                const int prev_calculated,                const datetime& time[],                const double& open[],                const...
I'm having trouble adjusting the candle distance in this code. The arrows are too far from the candles, below is my code, if anyone can help, I appreciate it. //+------------------------------------------------------------------+ //| Italo 3.mq4 |
if ( rateChange > VelocityTrigger * Point && avgSpread <= maxSpread && totalBuyStop < 1 ) { ticket = OrderSend ( Symbol (), OP_BUYSTOP, lotSize(), Ask + ( totalBuyStop + 1.0 ) * ( Point * Offset ), Slippage, totalBuyStop-( 15 +StopLoss)* Point ,TakeProfit,TradeComment, MagicNumber
Hello, can someone, please help me to convert this divergence indicator to new MQL4 language, so I can make it to EA with eabuilder. I am new to programing in mql4 and I have made several indicators and EA's, but with this one I didn't succeeded... //---- #property indicator_separate_window
Hey dear Dev friend, I’m trying to create an MQL4 EA that can communicate with a web site I had to go through the MQL4 documentation and the only way to communicate with the outside environment is through the file functions Or should try to import a dll? I’m looking for idea, how to set this up
EA should verify all three things and how to write its code if (AccountName()!= "Shabaz Shah" && AccountNumber()!= 1234534 && AccountCompany()!= "Bank" )
How do I add a Stoploss and TakeProfit level? ticket = OrderSend ( Symbol (), OP_BUYSTOP, lotSize(), Ask + ( totalBuyStop + 1.0 ) * ( Point * Offset ), Slippage, 0 , 0 ,TradeComment, MagicNumber, 0 ); ticket = OrderSend ( Symbol (), OP_SELLSTOP, lotSize(), Bid - ( totalSellStop + 1.0 ) * ( Point
I am just learning MQL4 and trying to implement as many thing to learn many concept. So i am just playing by building an expert advisor that if a trade fail print it candle id on the journal terminal please i will be glad if anyone can help
[Deleted]
Is there any way to clear the alerts generated using Alert() function, besides restarting the platform? Can anyone help?
I am new to the MQL4 forum and I have found an interesting indicator in one of the articles that I would like to experiment with. I have downloaded this indicator and compiled it successfully, but it does not want to load onto my MT4 live system. I try to drag and drop it as I do with the other...
Hi all, I wrote the code below to support my EA. Essentially, I’m trying to add the cumulative profit until the target is reached, and then I reset the counter to zero. When the Cumulative profit is negative, I would then increase my lot size. So this would be similar to a Martingale strategy. So
  financing fee  (2)
Hi Does anyone know how to calculate in EA the financing fees charged by the broker? I wrote this code to calculate daily profit (see below). It works fine. Except it does not include the broker's daily financing fee. That's because the broker will list the fee under the Profit heading as a loss
  MT4 to Telegram  (18   1 2)
Can anyone code or have any idea how to send trade details from MT4 to a Telegram channel. This is the sort of thing I am talking about. Thanks.
Hello Everyone I would like to ask how I can get a script for MT4 with the following parameters: Open multiple pending positions at the same price(to customize price), Open multiple positions at the market order at the same price(to customize price), Close all positions in one click, Stop loss with
Hello everyone! I made an indicator as a request for MT5 that works fine. And now I want to have it also on MT4. So I did it, and it works well too. When plotted on the chart or when parameters are changed, the indi "refreshes" very well. BUT, sometimes, when the timeframe period is changed (works
  MT4 Can't Login  (1)
I have all my info. Changed my password and tried everything but I can't get into my account. It just says "No Connection" in the right corner. No pop ups or anything it feels like it doesn't register that I am loggin in or something like that
Am starting to experiment with EAs and custom indicators and would like to know if there is a fast way to 'comment-out' (//) in one go code that is selected in MetaEditor. Figure there must be, but have been unable to find the solution so far. Thanks in advance for any help.
Hi, I have 32 MT4 on one dedicated VM, it collects tick data from different brokers. CPU and memory load is <10%. During news release such as NFP, tick data is lost, it simply is not recorded, and all terminals suffer horrible lags. Does anyone has an idea why this is happening
Good day, I have entered my MetaQuotes ID on the notifications tab, under options on my MT4 Desktop. Still not getting alerts sent to my phone. Please assist: Thank you
Hi guys   As I started Meta Trader 4 this morning, I'm suddenly not able to select periods and tools for a chart. These buttons are all greyed out.   This picture explains what I mean:     I also noticed that I have no connection to the broker server. Maybe this has something to do with it?   Does...
Hello all,  I'd like to know which is the exact formula (used by brokers) to calculate preventively the monetary value of a SL or a TP.  I'll explain better: if I set a pending order or I send an order to the market and I put mouse over my SL or TP level, the platform says me how much (in deposit...
i am coding a expert advisor that get the candlestick a sell trade was taken on and then use that to get the candlestick before that sell candlestick and then place a buy trade and use it as stop loss but the ea open many orders which is not my problem the issue is that it uses the sell candlestick
Hi guys, Im new in Forex Trading and MT4, recently I have subscribed a Signal provider channel and also MT5 VPS service. Just a few questions keeps bothering me after that, so would like to ask for ur helps, Thanks in advance!! Question 1: How do I know whether my MT4 is copying signals from the
Hello I am trying to get on the MT4 web terminal and when I try to launch the site it is not working. Is there any new updates? This is the site I was launching. https://metatraderweb.app/trade
Hi everyone! I'm trying to create an indicator that identifies some price zones that interest me. I was able to create it perfectly and the logic works, the only problem is that I would like to eliminate the price zones that are invalidated (ie exceeded) but it is proving very difficult for me. I've
  insert colour  (6)
i draw two moving averages in the chart, say 100 and 200 for example, can i insert/put a colour between them, to look just like an ichimokou cloud? many tks in advance your prompt reply
So I am trying to implement a class (whose incomplete code can be seen below). In its implementation, I want to use a static pointer to help with static operations. However, I don't know what would be the best way to delete that pointer's memory upon de-initialization (I know I can implicitly delete
Hello! I am getting this error when I close the EA . ("Acces Violation Read to 0x0001F5D0") It is only coming when I use iMAOnArray funtion. double EMA_H( double &array[]){ return ( iMAOnArray(array, 0 ,InpMAPeriod, 0 , MODE_EMA , 1 )); } Any ideas? Thanks
I've tried to do so in Metatrader under the MetaQuotes-Demo server, but there is no option on "account type" so I can't move forward in the opening account process. Thank you
Hi all , I have a question about optimization passes in MT4 and how it works , I am a bit confused . . . I am running my optimization EA and I am noticing that it is only showing a select amount of my optimization result combinations within MT4 , does anyone know why this is ? This is what it looks