void EnterOppositeTrade() { tradeNumber= 1 ; string cmt = ( string )tradeNumber+ " " ; //Print("Entering Opposite Trade",cmt); // Comment from CHART double SL= Bid+(StopLoss*pips); //double Stoploss= NormalizeDouble(Sl,Digits); double price =Bid; double Pt=
Hi all, Any body know about this indi? I need the mq4 version. Thanks, anton
I have an EA running on more than a dozen pairs. Every time I edit the code, I have to manually switch to each chart and manually reload the EA because the new code won't go into effect automatically. A real pain. That also applies to templates. Even if I reload a template after the code has been
//+------------------------------------------------------------------+ //| ema 50 200 ATR.mq4 | //| Copyright 2021, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+
I have been trying to add a custom BB_PRC-1 indicator in my Ea, it gets displayed but the values of the lines are empty. Indicator works fine, and displays correct values in data window. But when i try to get values with iCustom i get 0 or EMPTY values for both lines... can you help me? My code is
I'm very new to coding, and would really appreciate an answer. I'm learning how to send orders to the platform. When I run the code below on my FXCM demo account, it works perfectly. When I run it on my IG demo account, I get a 130 error. I've tried changing the TP and SL many times and it doesn't
Hello, my charts on mt4 will not move. It stays on the current date and previous dates. Is anyone able to assist? I have had this problem since I downloaded the app and opened the demo acct. I try everyday and still nothing
Does anyone understand and can explain about the lag or delay when copying orders .. I did copy trading using EA .. when EA gets an order from the master account there will be a 3-15 minute delay ..but when the master account closes each order it will be followed or copied without delay.. is there a
Dear Friends, I need an indicator to show me the profit or loss of each position of a pair on it's own chart. For example, when I have 5 buy positions on EURUSD, I want to know the total profit/loss of these 5 positions to be shown on EURUSD chart in $$$. Could anyone help me to find it here?...
Hello, I actually encounter a problem with the iHigh and iLow functions. I would like to get the higher and lower prices of a predefined period. Here you can see the code I made : The problem is that returned prices have sometimes too much digits (underlined in red on the picture below), but I don't
Hi i am keep getting zero divide error on my EA with Trix indicator. can you help me? Indicator is attached below and this is my EA: //+------------------------------------------------------------------+ //| test.mq4 | //|
I haven't posted in the forum for several years so I hoping you also take posts related to MQL4 I'm having several issues with Global Variables of the Terminal, but I will confine this post to just one of the issues. The issue: For some reason, when I query the value of the Global Variable entitled
Hello, I want to use following indicator on EA to open buy/sell orders.. https://www.mql5.com/en/code/7116 I tried it using Icustom function stated on this indicator comments but it doesn't work. Could you please help?? Thank you in advance
Hello Traders ! Everyday I use MT4's bulit-in price alert system to mark levels of my interest. Is there a quicker way to create alert than right click on chart -> trading > alert ? As far as I now there is no way to create a shortcut via platform (correct me if I'm wrong). So maybe some script
Could anyone help me turning this supertrend line into a separate window to be shown as a histogram? Like this Flattrend indicator : Attached is Supertrend Indicator
Hello everybody, thank you very much for any support you would kindly give me. I am a newbi in programming and I am trying to make this few lines work... It is very simple stuff: when I press the "u" button, it opens a buy order, when I press the "n" button, a sell order is triggered. Then, it
Hello, I am trying to Close an open trade once RSI signal is at Threshold. My trade triggers fine when RSI is above 80, but i am trying to close it when it reaches 20. How do i do this? I feel like I am over thinking this
I have some idea to code ea. but i did not know how read and save news in news tab in meta trader 4 terminal. can anyone guide me, how do it?I am studying about the impact of news in market trend. and have to construct database of news and market chart for studying it.
Hope everyone is doing well. I have bought an external hdd and I am planning to move my mt4 to external disk only, I move alot and I want to keep all the MetaTrader 4 stuff on external disk, I currently run around 5 accounts, demo and live accounts. I have tried the portable mode but it cannot save
I can see my orders being made in the Account History but they do not show up in the Trade tab. I'm totally new at this, trying to figure out what's wrong. Googled around and doesn't seem like a normal issue, thinking I'm not clicking something right. Any thoughts? Thanks
Hi everybody, I'm trying to write an indicator that should place a grid starting from a line at given price. It works, kind of. Actually the grid is generated correctly but I want it to be redrawn when the Level_0 line (an horizontal selectable line) is moved. I've used some of my knowledge and some
I wonder if anyone can tell me how to code an alert (audio and message) so that it keeps repeating until I dismiss it or stop it. I have no idea and have been all over the internet with no results. Please help if you can. Thanks Fred
I have tried both MT4 "Ichimoku Kinko Hyo " indicator and custom "Ichimoku" indicator in an EA, keep getting 0 (zero) as a return for the Chikou Span value.... All the other 4 values return correct chart data MT4 Ichimoku Kinko Hyo double IChLast = iIchimoku(NULL,0,9,26,52,MODE_CHIKOUSPAN,BarShift);
Hello everybody. I heard there is a way to cancel all open trades in mt4. This is because Ive run out of funds with many trades still open. I dont want to deposit any more as these are large trades and will eat my money. Is there aaaaaaan indicator or something to multi close all trades in MT4
Hello, I am writing a custom indicator (MQL4). Initially, I had: #property indicator_buffers 10 I want to re-size it to 8 (don't need the last two). My code does not refer to the last two buffers in any way (i.e. no bubber declaration, no SetIndexBuffer, etc.) When changing to: #property
I made a MT4 EA, it has been working on back tests and as well as on live accounts. But whenever I try to submit my EA to the market, it always shows error "No trading operations". I'm not sure what the reason could be if it works normally on live accounts. I hope someone could help me, I could send
Hello, I need contact to MQL4 developers. The iCustom in MQL4 is missing the possibility to define parameters dynamically, as it is possible in MQL5. This lack of dynamic parameters should be supported. It is critical. I want to contact the developers of MQL4 and ask them to make it possible. Can
Hello It's about memory management. I have been programming MQL4 for 5 years but not done this sort of thing before - recursive calls to an indicator that is likely using plenty of resources each call. I have a my own built indicator that functions to run a back test on a set of parameters. It dumps
hey buddies! I was working on a Custom indicator and the indicator itself is working pretty fine. But when i Call iCustom function, the output values are different from the values shown in the Data Window. Should i have to put the extern Inputs inside the code as i am selecting Them
Hello Traders! I was wondering - is there a script that will work similar to MT4's TP but instead closing entire position will close only a part ? For example at X price - close 0.04 lots out of 0.10 = 0.06 still open. At the moment I'm using EA call OneClick Trader which has this option built-in

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.