MQL4 and MetaTrader 4 - page 62

  is possible do that in MT4 ?  (12   1 2)
Hi guys is possible click over screenn in chart ( but also not over candel) and return me open high low close and data time ? anyone have some example script or similar?? thanks
Hello, How would I save the order open price for all open orders and save it into an array which updates every time I add another order? My code is below. double OrderOpenPriceBuyArray[ 10 ]; datetime LastTimeBuy; //LastBuyOrderTime ( int j = 0 ; j < OrdersTotal (); j++) { if ( OrderSelect (j
I have a MetaQuotes Demo account. Every monday my mt4 tells me "invalid account". I already opened two different accounts because of that but every monday the same issue. Does anyone have an idea what the issue could be? Thanks. Ulrich
Hi, I'd like to open a discussion about multiple timeframe so I created this sample code and it suppose to read data from two different timeframes and act depends on the results that given to it but it doesn't work any idea why ? Thank You
I have problem from MQL4 I would like to get the price of the currency pair to directly, but the price to get depends on the currency pair to be introduced. How can I get the direct price? double USDJPY[]; ArraySetAsSeries (USDJPY, false ); int rates_usdjpy = iBars ( "USDJPY" , PERIOD_CURRENT );
Case: mt4 1382 win 10 Problem: mw clock freeze untill i move mouse upon window with mt4 terminal, looks like this case lasts from build 1340. There were propositions to delete terminal.ini file with mt4 client restart. Doesn`t work
Hello, new to MQL4 EA's and new to MT4. Questions: Do MT4 EAs need OnInit() or OnStart()? Do I put indicators inside the EA or reference indicators within the EA? How can I reference indicators within my EA? Scenario: I am trying to have an EA that trades based on the conditions of 2 indicators
For 1 lot in EURUSD a broker is calculating 1 USD profit or loss and another broker is calculating 10 USD on 1 pip (10 points) change. Can i get this difference using tick value
  Code from chatgbt correction  (18   1 2)
Hi, Just got this code from chatgbt. it uses rsi overbought and oversold levels with engulfing candles. i also asked it to us 200ema to determine the type of trades it can open. Unforutunately, the are over 19 errors. Can you guys please help to eliminate the errors. ... Improperly formatted code
Hello, I have create button by OBJ_BUTTON. I want to prevent user click on button in some case. Is there any way for enable/disable button click on MQL4? Thank in advance
hi friends. I have wrote an expert . when I test it buy order was okay . buy EA set sell order takeprofit with input stoploss instead of input takeprofit and it sets stoploss with input input takeprofit instead of input stoploss !!! what I did wrong
I have multiple MT4 terminals on my PC. When I attempt to download an item from the market, it only goes to the terminal that was last installed. I tried installing products within the terminal itself, but sometimes the products I am looking for do not show up when I do a key word search for them
  MQL4 CCI  (7)
Hello. I am using the custom indicator CCI in my programming. However, the program does not behave accordingly to the CCI on the chart. I am wondering - anyone know the ENUM_APPLIED_PRICE in the custom indicator CCI ? Regards, Håkon
How can I close automatically an order which is profitable
Hello, I have made my first EA, working with codes in forum but there is one small issue - it is not automatically closing trades and i do not know why. Can someone please explain to me, why it is opening trades correctly, but not ever closing trades? I thought i was using magic number the right
How Can I fix this?? Try couple different way but still have error. Please help. Thanks Error: 'iFractals' - wrong parameters count PEAK BREAK EA.mq4 30 33 'iFractals' - wrong parameters count PEAK BREAK EA.mq4 31 33 'iFractals' - wrong parameters count PEAK BREAK EA.mq4 32 33 'iFractals' - wrong
  Close and Reverse orders  (36   1 2 3 4)
Sometimes there is a need to reverse the trade that u open. The attached script will close all open orders that already running and will open a new orders with equal lots size. The scrip will close and reverse only the orders that the symbol() is equal to the one that the script is attached to
Which Scripts will be the least busy EA
while (!IsTradeAllowed()) Sleep ( 500 );
After convert fractal indicator into EA, the order didnt trigger at all. I want it trigger buy when candle close above last fractal high, sell when candle close below last fractal low. here is the coding, where did i done wrong??? please help coding
Hello, I can no longer set alerts on my mt4. I was able to ever since I started using it. It stopped working recently, so I assumed that it was because I have alerts that were not deleted because I usually set them on "dont auto delete". I tried deleting hem on all my charts but I cant find them on
Hi, I've written a function that I'm setting up to slowly reduce a profit target on a basket of trades. I have a variable set up input string ExitStrategyAsian = "00:00-1;08:00-0.9,08:30-0.8,09:00-0.75,09:30-0.65,10:00-0.50,10:30-0.40"; The theory is that every 30 minutes ( or whatever interval I
To my knowledge MT4 runs on a single-thread. Is this assumption correct with respect to the strategy tester, that it does not start another combination of parameters until the current one is finished running
10 days back i registered for metaquote VPS service . yesterday i saw vps icon is disappreared from navigator window. then i loged on here on mql5 profile and i am not seeing vps server details here and my signal services. however my EA on VPS is runing properly but i want to sync my new parameters
The question is same as the title... Had to have my SSD changed and now my bought indicators don't work - what can be done to resolve this issue? Any assistance in this matter would be appreciated. Thanks, Charles
Hello members i am facing a problem that i had subscribed for metaquote VPS service few days back but today when i was planing to sync my new setting with vps i noticed there is no VPS icon in mt4. then i logged on here mql5 web account. i cannot see any payment history of purchasing vps service and
Hi, I have linked mt4 with my iPhone app and I am getting notfications. Unfortunately, when a trade is executed I get only the notification and no sound. Any idea how I could turn on sound? Thanks
I am trying to draw bollinger band line from within Expert advisor using ObjCreate() function with OBJ_TREND type of object but it draws line that goes beyond two coordinated (Time1,PRice1) and (Time2, Price2). I would like to be line drawn only from first to second coordinate but line extend
I am used to Tradingview where dragging the mouse moves the chart horizontally, and the mouse wheel scrolls in/out. I am considering using MT4 for strategy automation but I can't get over this little hiccup. To make matters worse, the mousewheel is even inverted. Why is there no option in the
i dont know why i have just a datetime but not time gmt some one can give help plz //+------------------------------------------------------------------+ //| webrequest.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //|