MQL4 and MetaTrader 4 - page 28

I need to develop an EA that will process several charts visible in the MT4 screen, like EURUSD-H1, USDCAD-D1, etc. I can switch to each of these charts with such code as: void Charts() {long curr,prev=ChartFirst();int i=0; while(i<100) {Print(i,ChartSymbol(prev)," ID
Thank you for using MetaTrader 4 mobile terminals for iPhone and Android. Probably you have appreciated all its exciting features or perhaps noticed some errors. However, we hope that you enjoy all its advantages. And now we appeal to you. We want to know your feedback and encourage you to vote for...
it is easy to develop one ea to be used only in one chart. But how can we use this ea for several charts? It is possible to transition to other charts programmatically and process the things on these charts. But then how to prohibit other copies of this EA in other charts in order to avoid any
Hi, I don't know how to formulate this better than this. I've been searching to change this indicator for me and one of my requirements was to calculate 2 values of the same indicator and a few people told me it is not possible or that i need a 3rd indicator .I'm just going to attach a picture
[Deleted]
Hi guys, I have array, 100 elements and I need shift all elements left, index 99 bye bye :-) from index 98 to index 99, 97->98, 2->3 .... index 0 = zero What is the fastes solution for it? Exist any special mql function? Or basic solution ...: int count=ArraySize(array);for(int i=count-2; i>1; i--)...
Hi, I'm a beginner in mql4 programming and would appreciate if anyone could provide the solution to the following error I'm getting please. I'm trying to add a custom MA to RSI and I'm getting the following error when compiling: iFantailvma3mOnArray - function not defined. I tried to merge the two
There are many different ways to calculate the lot size in MT4 platform. But most of the examples on the web are neither meaningful nor useful in a robust indicator/expert code. Following is the code I used in my indicators/experts to calculate the lot/volume size properly. Main advantage is this...
[Deleted]
  strategy test  (8)
can I test 10 parity at the same time with 1 ea on metatrader stratejy test
The indicator below draws 5 horizontal lines (the number of pips between them defined by the user) both below and above the price level at a specific time. Help me add more horizontal lines, which should be user-defined. #property copyright "Mystic" #property link "Mystic" #property
In Windows11 (in Parallels) running the installer for MetaTrader4, instead installs MetaTrader5 When running MetaTrader5, in the Navigator, if I go to the "Data Folder" and copy in custom Indicators, those indicators don't appear in the Navigator. Regardless if whether I refresh to file tree or
Hi guys i have a big long script , in practical this script create a edit box in chart i insert a price inside at this edit box and after i press button it should send a sell limit but return me error invalid price 1.05414460 for OrderSend function , Obviously the price when i push button is 1.05333
I have noticed that mt4 could experience an issue where trade comments set in the OrderSend function from an EA, doesnt appear on pending orders. Works with market orders but not on pending orders so if you are using the comments as an identifier for certain group of trades you run into problems
Sir / Madam , I don't use this Tick data suite or Tickstory Lite version because It is downloaded history data from Dukascopy . I downloaded from Tick data suite or Tickstory Lite version but I used this OCTAFX Broker & I checked this Strategy Tester if It has 40 Stop Level & 20 Spread . Next I
[Deleted]
1-When I was doing strategy testing at my brokerage firm, I could do it for up to 6 months. But for a few days I can only do it for 1 month, it does not allow more. I wonder why 2-metatrader 4 tick data does not exist. How do I expose the tick data section? last question "Can we open 2 mt4 accounts
Hi all, I'm getting this warning message, it's to do with this line: OrderModify(OrderTicket(), OrderOpenPrice(), OrderStopLoss(), 0 , OrderExpiration()); My EA is working fine, however, and the function returns a value of True. Should I ignore the message? Or can I resolve it somehow
How can i add two indicators together in MT4 together, like adding moving average to RSI
Team I download version 4 but when I installed I saw it is version 5, is there any way to instal ver 4
  One click trading  (14   1 2)
Hey everyone, im new here and i just have a quick question i hope someone can help me out with. When I was using the meta trader 4 demo i had access to one click trading and now i cant seem to get it to pop up.. Am i doing something wrong or is it an extra purchase
I have develop a EA, there are error code 130 ERR_INVALID_STOPS, I have log the ordersend symbol : XAUUSD.r lotsize : 0.67 order : OP_SELLSTOP opening price : 1863.00 slippage : 24 stoploss : 1869.00 takeprofit : 1855.00 bid : 1863.08 stopLevel : 0.00 I also consider the stoplevel, in this case
Hello, I have many Format Function in Code, there are sometimes this error ERR_FORMAT_TOO_MANY_FORMATTERS Does PrintFormat or StringFormat have a limit? Nested StringFormat have limitation
Hello, how to detect programmatically the installed metatrader location path, I would like to create a installation for EA or indicator. Do I need to check the registry? What ist the location for metatrader 4 or 5
Hello, I would like to be able to set up a system either via a web interface or a Telegram bot to enable or disable autotrading on one of my mt4 accounts, without having to go to mt4. How can I do this? Has anyone already set up something like this? For the moment I'd just like to be able to enable
I am trying to place to orders one after the other in my EA script. When I try to trade it live, the first one goes through, but the second never does. It comes back with this error saying order failed off quotes. Is there a way to fix this? I am trying to open up two orders with different take
Hi guys i test a fractal in MT4 i notice it have a delay , after 2 bar it calculate a fractal and sign , bu in jforex platform the frectal is calculate when the bar 0 switch and become bar one , how is possible do that ? exist another mode for calculate a fractal ? thanks
Dear all, when my MT4 backtest profit reaches 1.5 million, it automatically stops and I cannot backtest subsequent data. Can this problem be solved through settings? Or is it an unresolvable system limitation issue? Does anyone have relevant experience that can help me? Thanks a lot
Hello everyone, I need help how to return value of button into a number on mql4: When press [1]B (green button), the mode will change from 0 to 1. here is the code: //+------------------------------------------------------------------+ //|
Hello, I have set an indicator into my MT4, each time that the indicator was printed on the chart I used to get and alert window but it just stoped working. I double check that the indicator has enabled the alerts. Under Terminal > Experts I can see the alert but the window with the sound does not
Hello All, I am running a same EA on two different MT4 accounts, same broker. However, sometimes during the day, the orders are not opened at the same on two accounts. One account opened more orders than other account. Please help me how to fix it, I set Slippage is equal to 5. Thanks TT
Hi i have this code //+------------------------------------------------------------------+ //| 6pip.mq4 | //| Copyright 2023, MetaQuotes Ltd. | //| https://www.mql5.com
Hi i have mod this fractal indicator i add the RSI i notice when i insert this condition if (bFound && i > 0 && i < Bars - 1 ) { the indicator not work o_O why ? anyone have some idea?? thanks at all my entry script //+------------------------------------------------------------------+ //|