MQL4 and MetaTrader 4 - page 50

Any one has hidden divergence alert indicator with MACD ? Thank you
Hello! I’m stuck with figuring out what’s wrong with the code I’m writing and hope somebody over here will be able to help me out. I’ll try to keep it as short as possible. I’m coding an EA and within it, I have an array that collects crossovers between two MA’s . This code should update the array
  help with code  (3)
//+------------------------------------------------------------------+ //| ema-pips-mt4.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com |
[Deleted]
Hello Every one. Please how do I write the code that will determine if an account is real or demo.
Hi,  Please, could you help me ? void OnTick() { Comment(IsDemo()); That returns "False" with my demo account
Good afternoon everyone, I am trying to calculate the net profit/net loss of an expert advisor for the current week. For some reason, this function always returns 0 during backtesting. double GetWeekProfits(){   int type, netprofit = 0;   datetime starttime = iTime(Symbol(), PERIOD_W1, 0);   for(int...
Hello, I'm a beginner and would like to know how to code a 0 line in the middle of the indicator graph with the possibility of modifying its width, color..., can you help me? Thank you very much for your answers
Hi, I don't know how i have my Terminal window on MT4 floating and detached from the others. I can't find how to put it back. I'm on macOs Sierra Thanks
Hello friends, please I need help with the Graalun indicator. It is giving error of array out of range error. Below is the indicator code. Thanks. string gral_name= " " ; string s_symbol,s_id,s_gral; double ExtBuffer0[]; double ExtBuffer1[]; double ExtBuffer2[]; double ExtBuffer3[]; //double
hello please a person remove zero divide error from this free EA thanks... 2023.11.20 12:31:24.653 M-Sniper EA XAUUSD,M30: zero divide in 'M-Sniper EA.mq4' (291,84)
2023.10.27 01:30 is the oldest date i can get when im trying to get older data, i get error: TestGenerator: no history data ' EURUSD5 ' from 2023.01.01 to 2023.10.26 is it normal or just my broker is blocking something? because when i look from chart view i can go back a decade or even more. i
Please could someone be so kind as to attach mobile push notifications to this MT4 indicator? ... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit "
Hi, In my code, i am trying to close order when Profit is less then 5 USD, it works well on many pairs but XAUUSD. I couldnt solve the problem, when i try to get error code, i noticed that it is error 4107, any idea why is it happening ? Only for XAUUSD. Thanks for help. for(int i = 0; i <
Having a huge problem and I've searched and tried every fix. My MQL4 tester wont load the full chart for testing. My main trade chart goes back to about 2002 but when I run a test it starts at 2023. I tried increasing max bars. I tried going to the history folder and deleting the charts. I tried
  Indicator Modification  (240   1 2 3 4 5 ... 23 24)
Hello all, Can anyone add notification into this indicator.Thank you very much. Fazlie. zigzag_pointer_alert.mq4
Hi friends, I need to know how to get angle of a moving average. after I get the angles, then I want to calculate tangent of the angle and compare the value with a specific number. I want to implement  these method with mql4 to predict an up-trend. just give me a tip how to get the angle of an...
Hello, I have written an Expert Advisor in MQL4. I run this EA on two symbols simultaneously. When a position is closed on one symbol, positions on other symbols are also closed. What solution is there for this problem? I should mention that I have used different magic numbers for each symbol
I see that metatrader is now keeping track of purchased EAs, but now the EAs that I have written are not working. I keep getting an error 4112, which is " 4112 . ERR_TRADE_EXPERT_DISABLED_BY_SERVER. Automated trading by Expert Advisors/Scripts disabled by trade server." How do I get around this
Hello experts i have a question about _Point and Point i seen both are use in same place such as in below example Point is used at the End of Stop-Loss. but both colors different. ticket= OrderSend ( Symbol (),OP_SELL,lot,Bid, 3 ,Bid+StopLoss* _Point , 0 , "Fxtradewar@gmail.com" ,MagicNumber, 0
if (ProfitToday() <= MaxLoss) { Print ( "Exceeded. ProfitToday is: " + ProfitToday() + " MaxLoss " + MaxLoss);} The Print log says: Exceeded. ProfitToday is: -1.14 MaxLoss -10 I am confused. I thought -1.14 was > -10. But the condition is <= and it's triggering. I changed the condition to > and
Dear all! I just want access multiples account mt4 to get the History Order and Account Info without use the MT4/5 Termial. How it work when i've .srv file. Thank all
Hello! I have this code but I get errors and 9 warnings in order to select and order to modify must be verified. a little help? Auto-translation applied by moderator ... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover
I coded an indicator and realized that I'm not getting the same results from both methods used for calculating the RSI can any one give me a hint why they are different? how to fix it? I searched the whole forum and found not a single clue
Hello together, Could you please tell me how to include a *.mq4 file into a *.mqh (not EA) file. Or is it possible to include a *.mqh file (not EA) and *.mq4 file into an EA, whereat the included *.mqh file (not EA) would need input from the included *.mq4 file. Thank you in advance and have a nice
Hello Guys Just wondering i have backtested 2 strategies on the second screenshot representing the 2nd backtest strategy there is a long green bar which is supposed to represent what exactly? drawdown? What are the values
Does anyone know if there is a prorealtime cycle indicator coded for MT4? Thanks
Hello everyone, i am having a problem with history data on M1 timeframe (every tick) i need last 3 years of M1 candles data for NAS100 index or US TECH 100 index but when i try to download the data from the Tools>History Center it is only giving me data for past few days or maybe 1 to 2 months only
hi, i am new to mql4 i am trying to build a EA i the problem is close position function is not working i tried everything can anyione help me . i tried to add it with ordersend function i used this expreation Bid + Tp * _Point but it gave me problem that it closes order way befor or sometine
90.58 ms speed so far how can i lower the latency and improve it
Hello I need your assistance in debugging the following code to implement the logic below, I've tried many times but I am stuck. Your help will be appreciated: logic is open with buy and sell pair as per input.. when tp hit then reverse with opposite trade when loss then hedge at desired pips