please help me with handy code to open position and open another one after 10pips.thanks see what i have tried but no success with the code please help if ( ma1 > Ask + ( 10 * Point )&& CurrentTime != Time[ 1 ]) { Opn_B= true ; }
I'm getting trades as in the picture through out the backing testing of a simple candlestick pattern . I only get this error when I run backtesting on 30min or less. I'm using on every tick. Is it bad data somehow? It seems buggy. Has anyone had a similar issue
I can't seem to find info on how to set up alerts using the android tablet app. all of the info I can find either covers just the mobile app or the desktop app. Can someone clue me into how to set up alerts using my tablet
Hello, I am a bit lost with the error "Error create canvas=4025" I even don't know what a "canvas" is. Does some had the failure as well? I have no idea where to start looking for a solution in my code as the failure occures random. Thanks in advance
[Deleted]
Right, really beginning to lose my patience here, why do I keep getting the error 4200 - object already exists on the " MovingText " chart label when the chart label doesn't actually exist in the first place? The text object does not already exist, hence why I'm placing it on the chart
How do I clear these red notifications for these two tabs in the terminal? I can't seem to "find" the unclear ones in the market & the article tab I refreshed & now it's over 1K
Hi Traders, I need your expert help once again, I am trying to put together a simple code to change the timeframes, below is what I did, is working fine but I am getting the message "Do you really want to stop script?" every time I run it, it is a bit annoying. Any advise on how I can get rid of
Hi! Im new in meta Editor, I tried to make a custom Indicator that shows the commulative sum, in my case the commulative sum of mcs[]; here is my code: //+------------------------------------------------------------------+ //| Volume Momentum Cummulative.mq4 | //|
Good morning, is there any mql4 function that restarts any of thesel, or similar: Terminal, or the connection of the terminal with the server, or the data of open orders? I have a problem regarding orders, some pending orders are activated but the terminal does not update the order, and there is an
Hi guys i have coded EA trade management. It automatically set my trailing stops when it reach a certain percent on gain. To activate it i need to manually open a trade, after manually opening a trade i run the EA so it can adjust my trailing stops. It works perfectly on one pair. The problem comes
Hi, I've been trying to figure out why I'm getting a OrderSend #130 error. I'm familiar with the error and have resolved similar errors in the past however I'm unable to debug this one. I could use a 2nd pair of eyes to review the code to figure out what the issue is. Below is a summary of the code
Hello, I am trying to use this indicator in a EA that I am currently building I got the indicator here : https://www.bullforyou.com/Sourcecode/Indicators/153735942715023.html My problem here is that this divergencesType always return 2147483647.0 divergencesType = iCustom ( NULL , 0
Hi, I'm trying to get ticket number after sending an order int ticket= OrderSend ( Symbol (),OP_BUY,volume,Ask, 3 ,stoploss,takeprofit,"My order", 0 , 0 , clrGreen ); if (ticket< 0 ) { Print (" OrderSend failed with error #", GetLastError ()); } else { Print (
I will try to start this thread differently from the unspoken custom here. First I'll tell you the purpose, then the idea, and then I'd love to hear your opinions. The reason is simple - I haven't learned how to make money on the Ring yet and I need some brainstorming. So. OBJECTIVE: I, ("naive
Cananybody help me, please? I tried to changechart template and then create a graphical object (horizontal line) in the chart byMQL4. For example: ChartApplyTemplate(0,”template_name.tpl”); ObjectCreate(0,obj_name,obj_type,0,obj_time,obj_price); The Template haschanged successfully, but the...
It's been for months that I manually need to adjust the width value of the Heiken Ashi indicator, every time MetaTrader 4 starts...3 times for 3 graphs. This is necessary because if you zoom the graph while using this indicator you need to change the width of the bars of this indicator in it's...
Hi, I created this price ticker as I wanted to use the Market Watch prices and to reduce the quote to one less decimal place but still see the fractional element. It works great but the only snag is the colour doesn't change. What have a i missed? Thanks in advance. #property...
Hi guys! I'm a newbie to coding. Just getting started. This is the second program I now code. Here is my current issue with the below coding: 1/ Why does the system give me the high of the candle from 1970.01.01 and this twice (see print statements in terminal) ? 2/ Why my high_price_array[] seems
Hi guys i want to learn how to code objects on mql4. I want to createe buttons and panel on mt4. Like buy sell button, textbox where i can input lotsize that i want to use, inserting horizontal line and and returning and displaying the horizontal price on my panel etc. In short i want to learn
Hello! I'm completely new in metatrader4, I just registered my demo yesterday. As I added Rsi, it appaers together with the chart, and I can't minimize it. Can you help me please? https://imgur.com/a/HU3YO1O
To who it may concern, I am encountering problem while trying to sign in through my FXCC Demo Account, just receiving "Invalid Account" message. Kindly assist me in this respect, thanks. Best Regards, Parham Saba
Hey guys, having a tough time sorting this one out, been at it a couple days now lol.. No matter which way i right the if statement i always end up with a zero divide , the error messages always seem to point back to the initial calculation itself (buyriskreward or sellriskreward). I guess i should
How to save a high and low dynamically in order to recognize the trading range? Thanks. Giuseppe
x if (OrderCloseTime() < Time[ 0 ]) if the open order hits the take profit i want to the next 1 hour to trade again
Hi, i am strugglling to get run such mq4 code in mql5. Can someone help me? The code i use in mql4 is this. void OpenOrdersResults() { //------------------------------------------------------ SumOrders= 0 ; BuyOrders= 0 ; SellOrders= 0 ; TypeLastOrder=- 1 ; ProfitBuyOrders= 0 ;
I have an indicator that draws a line with a logic that starts from [n] bars back and changes the value bit by bit until it reaches the right end of the chart. (as per my last post https://www.mql5.com/en/forum/382876 ) it works marvelously and I am moving to backtest albeit with a problem. Since
Hi,
I want to work with the charts in metatrader 4 not only as linear charts, but also as logarithmic.
Is this possible?
Is there any tool or add on which makes a logarithmic chart with metatrader? Or can I write a Charttool by my own?
Thank you!
Hi ... I will purchase MT4 indicator, but it's not install my Mt4 platform
I want to Start with Real Login? Which website or which company website will support MetaTrader4.
(1)
Hello Everyone. Can anyone tell me how to start with real login? I want to start with my real login? i have an account in iforex.com will my account will work in MetaTrader4. if not then which website will work and how it will work? Please answer me as soon as possible. Thanks COmmunity in advance
I am trying to write an indicator that calculates some cumulative change over time. Let's say it starts from the bar with index [50] with an initial value and depending on the bars on the way the value will become different when it reaches the right end of the chart. It will be drawn like a line

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.