MQL4 and MetaTrader 4 - page 251

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
hi guys i want draw e EXponetial EMA , but not want use a class inside of mql4 (ima or imaonarray ) therefore i build my class but not draw nothing o_O thanks at all //+------------------------------------------------------------------+ //|
Hello, I have a indicator named "arrow.ex4". I have only managed to do this: #resource "\\Indicators\\arrow.ex4" void OnTick () { double value= iCustom ( _Symbol , _Period , "::Indicators\\arrow.ex4" , 1 , 1 ); } but how can I detect the arrows it draws? When I backtest the EA after I
Which one I Should use, new functions are shorter to type but will it works on metatrader4 older versions? This short terms are on all mathematical functions now is it update? will supporting older function names cancel
hi How can Separate Type of Currency in Mql4 code. for example i want to separate CFD from Forex or CFD from Future ?> what command or function in mql4give us information about Type of symbol. thank you
  log discrepancy  (1)
Hi guys , i exhausted all my debugging skills to try to wrap my mind around this issue but i could not solve it, i found discrepancy in the log so i cant really trust it, for example if im looping from 200 to 1 , the log only show wen counter is 100 and goes on to 1 why is that is there something i
I have calculated what should be SL, position size: https://www.babypips.com/tools/position-size-calculator So it is about 0.79 so 0.79 lots. But for me hit SL after 6.9 pips and loses few times more than it should - 175.48 Why is that