MQL4 and MetaTrader 4 - page 62

Hi, I'm trying to pass some values from EA to a custom indicator and vice versa. So It's a two way communication. I'm using MQL4. I do it by creating chart objects in the EA, which contain the value I want to pass to the indicator. I encode the value in the object description . When I call iCustom
Hello! I have a problem with the market watch window in my MT4 platform and I cannot put the window back to its left-side place where it is used to be. I do not know what I did exactly and put it in the way that you can see in the screenshot, but my problem is that I am not able to put it back to
pls is my code correct.. { double profit= 0.0 ; datetime from= 0 , to= 0 ; double start_balance= AccountInfoDouble ( ACCOUNT_BALANCE ); double end_balance= AccountInfoDouble ( ACCOUNT_BALANCE ); datetime last_order_time= 0 ; int trades=OrdersHistoryTotal(); for ( int i= 0 ; i<trades;
Hi, When in the history center I can only download previous 6 months data. I presume as far back as my broker allows ( [broker name removed by moderator] ) When can I download tick date from then upload to MT4 via CSV? Thanks
[Deleted]
Hello Folks, I'm quite new to coding, do however manage to write some stuff which works as expected. I need clarification on one thing at this point. When and how to use { } I guess I use way too many brackets, which seems not to hurt anything. But I would like to know if there is a reson to use...
Can someone modify this ea? Just want changes in orders. I want when any hedge trade active, previous trade will be close. you can see it in pic.. Thanks Suhas
My EA log keeps reporting this error when when it tries to access files on my computer. I have: Double-checked the file path to ensure it is correct. Ensured that the MT4 terminal is running with administrator privileges. Checked if the file is being accessed by another program or process. Created a
1. code: ObjectCreate("text_object0", OBJ_TEXT, 2,0,0,0); when it was executed, it is complainde that "unknown subwindow number 2 for ObjectCreate function". I don';t know how to resolve this problem, and why it is; according to my memory, the max number of subwindows is 8. 2. code:...
Hey guys Maybe some of you can help me. I installed MT4 on a new notebook and when I try to open a new demo account the "Account type" field and the "next" field are both greyed out Any idea how I can fix that? I tried to re-install and change mail/phone number already but nothing seems to work
Hi, I want to use dll files to get lot size from One Click Trading My Progress, I got the handle of that edit box using below code: #import "user32.dll" int FindWindowW( string className, string windowName); int FindWindowExW( int hwndParent, int hwndChildAfter, string className, string
Hello, So I am trying to test a strategy for BTC in my mt4. I have downloaded all the tick date to get a 99%modeling quality. And the EA is working as intended. The only problem is that the spread is not being taken into account. The spread for BTCUSD is 17$ or 1700 points in my broker. Even If I
I have written a custom indicator code, and it will attach a to the MT4 chart successfully and error-free but nothing will appear. It is supposed to show me some up and down arrows. Here is the code #property indicator_chart_window // Input parameters extern int period = 20; extern double deviation
[Deleted]
Dear MQL4 community, thanks for all the support from everyone out there. I need some help on how to add in some comments into my OrderSend() orders which expired without any trades. I know how to add in comments for those EA orders which successfully trade, but for some of my orders which passed...
[Deleted]
hi, is there any possibility to control the orders from an actual running EA ? e.g. the EA generates a BUY order with specific attributes, and i want to design another EA which denies the order from this other system ... is that possible ? or e.g. that there is a controlling instance which...
hi friends I have a problem writing my expert advisor in mql4. The expert that I wrote contains three buffers of external indicators and I want it to wait whenever buffers one and three exceed zero until only the second buffer exceeds zero in the next candlesticks, and if it is positive, it waits
Hi all, I’m testing this function to close an order partially, unfortunately it returns this error "OrderClose error 138" and I can not quite understand the reason. Thanks to anyone who wants to help #property copyright "" #property link "" #property version "1.00" #property strict
Hi everyone, I'm trying to find a way to turn On/Off my Fibo indicator but I can't find a way to do it properly. Also when I remove the indicator from chart all the objects they remained there. For the On/Off button I've tried to add: extern bool FibRatio = true ; and modify the int start section
Hello everyone, How can I use the iMAOnArray() Built in the function of MT4 in Multiple timeframes? which used to get Movingaverages over all timefrmse. thanks in advance
Hi, i have one multiple horizontal line indicator which able to plot 10 or more horizontal line in the chart.my problem with this indicator is i can't choose the color thickness level. The creator fixed permanently to 2nd level thickness which make me uncomfortable in the MT4 chart.Please help to...
hello friends how is download metatrader build 1371 someone can share with me link thank
Hi folks, Is there anything already existing, and even better if free, that I can use to schedule autotrading in the MT4 app on Windows laptop? I find that the bot I have running always has a loss most Mondays so I'd like it to automatically schedule autotrading to switch off on a Friday evening and
Hello, since last update of metatrader 4, last friday 21th, I get this message and my EA isn't trading any operation. In the setting menu all trading options are allowed, I mean, everything was working properly until the last update, and I don't understand what I should do. Please I need some help,...
Hello, Is there a way to change the color of trendline plotted for closed positions. Mine is Blue on black background for Long positions. I can barely see it. And dark Red for Short positions. I want these lines to be Yellow so I can easily see them. And if possible, change the width to 3
Please help me with this Hope someone can give me a clear and helpful answer Here is the code I wrote to check if the price is between open price and take profit, then sell half of the position and move the stoploss to breakeven. It works good, when reaching to the half profit point, it will close
[Deleted]
Hello, Could someone please change the level settings permantaly on normalized volume to 80 instead of 100? I've tried changing it myself, but whenever I switch to another chart, it reverts back to the 100 parameter automatically. Thanks
  MTF Trend-Magic  (13   1 2)
I tried to convert the trend-magic indicator to a MTF indicator but it does not work correcty. I know a little about coding EA's but nothing about coding Indicators so I need a little help. Here is the code below: #property indicator_chart_window #property indicator_buffers 2 #property
hi guys i have tried for hours and still couldn't find the problem on this code im new to coding so i don't know exactly what to look for i saw another page dedicated to this that said to check if the brackets were all good, i cheked and they seem good how can i fix it? int OnInit () { return (
Does MT4 platform have a built in feature to show the daily time period vertical lines on all charts time periods ? IE - 5min chart showing market open/close times when I scroll backward or forward on the chart ? I can't find this feature if it does exist, but figured I would ask before making
Hi guys, MT4: iBars iADX using two timeframes does not work on Strategy Tester . Why ? I am testing an Expert on M5, but it makes calls to the H1 timeframe. Thanks
[Deleted]
Hi. Can someone participate in mql4 market if banned in mql5? This important to me as i had submitted some products to help market in testing the upcoming market and i have a lot in store for forex traders. Raptor has ban me for 10 years in mql5 and now what will happen. I cant even access my...