MQL4 and MetaTrader 4 - page 247

Hello MQL5 community I hope this is an issue someone can help me with. A new build of MT4 is upon us. However, I have been having some FATAL issues with my custom indicators. The nature of the issue is as follows: Dragging a custom indicator onto an MT4 chart freezes the program. No error message
[Deleted]
Hello...am quite new to coding...please could anyone here help me add push notifications to this indicator below.it is a divergence indicator.only alerts are enabled....perhaps more experienced hands here can help with that issue..been failing serially at it
Is there a way to calculate how much time is left from current time to a specific time? Like if I have time string "09:00" and current time is 20:40, how to calculate difference between those times? That's my code for New York time: TimeToStr( TimeLocal () + ((- 4 - Timezone + dstDelta) * 3600 )
[Deleted]
Hi, Is there easier way to copy trend lines or fibs from one chart to another without doing the 'save template' function in MT4. For example I have 2 charts, one 15 min and the other 4 hour. I draw some trend, horizontals, fibs lines etc... on the H4 but I want my H4 analysis (some or all) to be...
#property indicator_chart_window #property indicator_buffers 2 extern string Start = "5:17" ; extern double Timer = 2.0 ; extern int Hystory = 2000 ; double Buf_U[], Buf_D[]; string S;
I am little confused about market sessions. I am working on market session indicator and when I googled when markets opening, for example New York, I found that it opens 09:30. But on Forex Factory website, it seems that NY opens at 08:00 and even I looked in some of MT4 indicators and their NY
So I have created a cap hedge EA (mq4). I ran it on backtest and it worked perfect the first time than I made some extra changes for limit loss, max lot etc... Then I got some well performing parameters(using optimisation) and decided to put it live on small account with microlots. I was backtesting
Hi guys, Can I somehow set scale in main chart window? (like in properties > Common > scale fix). All I found is WindowPriceMax/Min, but how to SET this value? Lets say I need to set chart scale to 1000pips - say the current price is 1.365 so min = 1.36 and max = 1.37 (...and of course dynamically...
how can i now an object is visible or not visible? ( 1 ) is this code is true? ObjectGetInteger(0,"NAME",OBJPROP_TIMEFRAMES,OBJ_PERIOD_H1);
I wander if there is a way to get a full name of any Symbol like it's shown on picture
  Cpu Threads  (1)
Hi guys I have pc that have 4 threads does it means that I can run only 4 expert advisor at some time
How do i activate my account? I'm using MT4 please help
Hello everyone, I want to back test manually my strategy thanks to the Strategy center. However, I won't be able to back test everything in one day. Is it possible to save the progress and resume the back testing later (the next day or week)? Thanks
Hi guys, As you may know, Volume[i] indicates "tick volume" rather than "trade volume". So we can access only to how many times the price changes. Does anyone know how to access to "Trade Volume" of each candle? Is there any way that does the trick? For past and live candles. Any advice is
[Deleted]
Hello guys. I am not sure if anything like this exists but here is what i am looking for. I need an indicator that would print out for me the exact times of SMA crossings. So I can use it to back test a lot of data. It pretty much has to say something like: 12:27 am 01/24/12 06:25 am 01/24/12 and so
Hi guys, I don't seem to be comfortable with the warning " Possible loss of data due to type conversion". See the code below: int PriceLeftShift = GlobalVariableGet ( StringConcatenate ( "LineVert " , Symbol (), " " , ChartPeriod ())); I understand that global variables return values of type double
Hello I have a little problem. I am trying to make an indicator which will show Bid/Ask price but it seems that for some symbols, they are just too long. That's my code: DoubleToStr(MarketInfo( Symbol (), MODE_ASK), Digits ); And same happens to iOpen/iHigh/iLow/iClose they are inaccurate too
Hi everyone, I'd like to get the high/ low of 3 candles (last bar of previous days and the first two bars of the current day) for a given timeframe I'm getting a bit stuck with a piece of mql4 code. I tried to do it this way: datetime now = Time[ 0 ], bod = now - now % ( 24 * 60 * 60 );
Hello everyone, So I am running into a problem when developing an EA and I needed some suggestion on how to deal with this problem. My problem is that I need to develop an EA for customer that uses an indicator with a lot of parameters, they are almost 100+. Now I know that I can use iCustom()
hi guys i have a questions i have indicator at end of this indicator i divide two double and after i multiplay for constant 100 why return 100 ????????? if i print a single double return number little like 0.000232335 or 9.88888 but when i divide return always 1 how is possible that
#include <CustomFunctions010.mqh> int MN = 73 ; int shortmaPeriod = 8 ; int longmaPeriod = 200 ; double maxRiskPerTrade = 0.01 ; double lots = OrderLots(); int orderid; int slippage = 10 ; static double longcurrentprice = Close[ 0 ] + ( Point * 40 ); static double shortcurrentprice = Close[ 0 ] - (
Time zone fib no longer can be cloned by dragging original object while pressing Ctrl. Please Fix. Noticed in builds 1310 and 1311
Hi I am trying to have indicator draw a box on chart with X pipsize . Where X is dependent on ATR value for that timeframe for that symbol. I used the following lines .But they do not produce any result. Am I using the ATR multiplier (*100)correctly ? Should there be another number as multiplier for
Hello, I want to make an indicator which will give me an information about 4 Quarters High/Low prices. I have 52 Week range indicator but I'm struggling with 4 Quarter range. I tried iHighest, iBars, iBarshift but I still can't get the info I need. I know I must missing something. All I want is to
Hi guys and gals! How can we open multiple  orders of the same pair simultaneously in the mt4. It seems we need an ea or a robot... is this true? if so would you know of a good one? Rsvp at your earliest convenience
Installed MT4 under Windows Server 2019, API returns 401 error when I try to login to MQL5 community. Looks like a bug
I have been trying to connect my demo account through my broker. I have tried three brokers, & none of them allow me to log in on MT4 with my info! I can on my mobile & web terminal just fine but the I can't get this thing to do this on my desktop version! I checked to make sure I had the updated
Can anybody advise how to RETAIN the color width settings that you select & SAVE in the MT4 platform template? When I change these color widths in an indicator in the MT4 chart & save the new template, on re-opening that chart or moving to a new chart & selecting the saved template the color widths
Hello the EA works very well on all pairs but in US30 it gives me ordersend error 131 : invalide trade volume and order130 invalide stops here is the code #property copyright "Copyright 2020" #property version "1.00" #property strict input string A1= "========== EA SETTINGS ==========" ;
hey folks ..im tryna create arrows to my closed orders history using this code void draw_history(){ for ( int i= 0 ; i<OrdersHistoryTotal(); i++) { if ( OrderSelect (i,SELECT_BY_POS,MODE_HISTORY)== true ) { if (OrderSymbol()== Symbol ()) { if (OrderProfit()< 0 ) { ObjectCreate