MQL4 and MetaTrader 4 - page 51

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. | //|
  How to Edit EA  (3)
How to Edit EA test on EURUSD,H1 2020.04.01 00:00:00 cannot open file 'MQL4\indicators\AiBand4EA.ex4' [2] there are no trading operations
Close all positions at profit target in pips MQ4
  My EA not taking trades  (17   1 2)
Hi, I have tried to create an EA but it doesn't take trades. When I put it in the strategy tester I get the following error: 2023.06.16 10:47:50.092 EURUSD,M1: 466454 tick events (13844 bars, 466554 bar states) processed in 0:00:01.266 (total time 0:00:01.313) 2023.06.16 10:47:50.092 2023.06.16
  Too high value  (2)
Is it possible to use for calculating or checking value bigger as EMPTY_VALUE ? For example: if (accountNumber==AccountNumber()) Alert ( "Good Account" ); where accountNumber bigger as EMPTY_VALUE
hi this code is not closing orders, could you help me to figure out why? void OnTick () { string signal= "" ; int PeriodMA = iMA ( _Symbol , PERIOD_H1 , 9 , 0 , MODE_SMA , PRICE_CLOSE , 0 ); int SlowMA = iMA ( _Symbol , PERIOD_H1 , 12 , 0 , MODE_EMA , PRICE_CLOSE , 0 ); int FastMA = iMA ( _Symbol
I can no longer download anything from the store, and I no longer see anything in the terminal
I want to select the latest placed order (open or pending) from trade mode but I don't want to use loop or magic number to minimize running time. Does this line of code help? Assume no order was closed or modified. OrderSelect ( ( OrdersTotal () - 1 ), SELECT_BY_POS, MODE_TRADES);
I have a very beefy machine for back testing purposes, and I can only open 32 instances of MetaTrade4 on it even though I have resources for it to handle many more. How can I open more than 32 Mt4 Terminals at once?
Hey guys, I need help on coding an order should only be opened between the start of the hour and 30 minutes into the hour. If it closes within 30 minutes due to take profit or stop loss it should not open another order until the beginning of the next hour and end of 30 minutes. And so on. Anyone out