MQL4 and MetaTrader 4 - page 285

Hello Masters, I just started to learn MT4 Promgram and am doing some practice on my own. And I have an Array out of range issue that I couldnt figure out. Can you guys help me to point out where and why it's wrong? Goal: Draw Up arrow when EMA8 crosses EMA20 from below (golden cross) when price is
i have a custom indicator that works fine with recent candle but when i goes in the past in the chat(like over 2000 candle) it start working wrong but as soon i open input setting and closed it it works fine with past (but i go more in the past candle it have again this trouble) the indicator using
Hello ! I have been using an EA on my demo account in MT4 last week and everything was working just fine. Friday before the market closed, I removed the EA from the chart and closed MT4. Today (2020.7.6) when trying to attach it to the chart again I got this alert : « Your copy for testing to
hi guy i have in my terminal \MQL4\Files\dataCOT\Finance\forexsymbol.csv file csv i try to load with this script but return me error in path not exist a file o_O how is possible ? int start() { string terminal_data_path= TerminalInfoString ( TERMINAL_DATA_PATH ); string
Hello All, Does anyone know of any good Coding Resources to Practice and learn from? Quizzes/Tests would be great as well. Resources i am currently using include: Book: Expert Advisor Programming for Meta Trader 4 by Andrew R. Young. Udemy.com Instructors Mohsen Hassan & Kirill Eremenko Youtube
I am looking for an EA that can be used in conjunction with the MT4 Multiterminal. It is to add a SL and TP, in pips, as the trade is opened on the master and receiver accounts
Hi guys, I build a simple EA that open a position according to EMA crossover. But when I backtest it I found an odd open position above the candle like on the image. This kind open position happened more than once and I don't know why it behave like that. Here's my EMA crossover code. int
Hi! I've created an EA that will close the open order if there's a changing in parabolic SAR indicator. For this EA to work I want to check the Indicator for every new candle since the change of the PSAR is in every new candle. Here's the code for every new candle function: datetime newCandleTime =
Kindly provide us with a link to get and install metatrader 4 on windows 10 thanks
Hi, First of all I will tell you that Im new with Meta trader 4. I have worked with a software called Autostock Before (automatic trading). With that said, hope someone here can help me. I have tried some experts on my demoaccount, first in backtest and then to a chart. This has worked fine. I
Hi All, I am working on creating a class that will be used when called upon. I'm basically trying to make sure that system always uses the server time when trading on certain days. However, i have come across an issue where i can not see the mistake, if any done. Any ideas/help would be much
  Tendential planimetry method  (157   1 2 3 4 5 ... 15 16)
Greetings to the speculators ! :) Have any of the high road romantics heard of the above method ? If not, the pictures have been posted on this forum, in a thread dedicated to all sorts of funky niceties. The pictures are really quite aesthetically pleasing. If you want to know more, there's a
hi every one i have a code that shows some massage box and also send email i wonder how i can make auto alignment in the mql4 like one phrase just showing in one line another one showing in next line
I am trying to create those zones people use when they look at a chart and pick some good lines where price seems to react as decision points for price action strategies. I can do it intuitively on a chart as well, but am having trouble defining this problem clearly and translating it to good code
Hello, i would like to know the high and low Price of a bar at a specific time, i use iHigh() to obtain the high Bid price, but how can i obtain the Ask price with iLow() ? Thanks
Hi guys anyone , have example of memory mapped file ?? thnakz at all
Hello Can anyone see what is wrong with this code. It is an MTF indicator for MT4. It shows for most timeframes correctly but for example so H4 and daily no lines are shown. When compiling, there is a warning that "not all control paths return a value" Line 62 column 4. I can not program so I do not
- Is there any difference between MQL4 reference and MQL4 book? - and if there is any, what should I study first? + thanks in advance
Hi all, I am creating an EA, but with some issues. I am following the MACD example advisor, but it will only allow one trade in a time, despite the EA is on multiple chart windows. What if I want to make a new trade in a new chart window? For example I create a new chart with EURUSD and run the EA
Hi! I am using this Multi Time Frame Moving Average , but instead of straight lines as it should it paints squigly lines where I have to refresh the chart to get them to paint as they are supposed to do. Could someone please look into the code and see if you can spot what is wrong? I am using
hi everyone i have a custom indicator that have a button that works with chart event function for delete or create some object tables the custom indicator also have a massageboxw (include <WinUser32.mqh>) but as soon as i put the button code in the event function the massageboxw doesn't work right
I am trying to create some simple radiobuttons and below is my code to create either a single radiobutton using CRadioButton class and comparing to a single creation using CRadioGroup class. #include <Controls\RadioButton.mqh> #include <Controls\RadioGroup.mqh> #include <Controls\Dialog.mqh>
I have an EA that may open and close several trades during a Trading session . If the Equity increases by $150, then I want to close any open orders and stop/exit the EA from any further Trading. Thank you
Hello Fellow Traders, It's have been a week since i started learning how to program MQL4  And i Have A problem , The EA I am working on opens a lot of orders and i want all these orders to be closed at the touch of the ma let's say i have opened 7 buy orders above 21 MA and i want to close them if...
Greetings, I've recently started learning MQL, and I have stumbled upon this issue. I'm looping the total num of bars and trying to assign a value to an array. The problem is that the array seems to remain empty even though I assign a value to it. Here's an example
Whenever I modify a running order the platform pops up a confirmation screen where I need to click on YES before the order really changes. When I scalp this is very time consuming and stand in my way to be able to get in and out of the market quickly. Is there an option where I can deactivate this
When compiling this code i get an error in line 96 (the last line of code) saying that "lotSize" is not declared. I dont understand as i have declared this variable just above. Also, i get no error message in the similar code i use above to enter long positions.. Can someone see what im doing wrong
[Deleted]
I've gone through lots of threads about this and also the MQL4 documentation but couldn't find the answer... I've seen options of toggling the main Allow Trading button, removing the EA through a script or closing trades if Magic Nr or comment of an EA is known. But what would perfectly fit my needs
hello guys, I have created a panel with several controls and labels on (code not shown but working) - for aesthetic reasons I wanted to add some separator lines at various places and I am trying to do this with a rectanglelabel purely for ease of being able to use x,y coord placement. The 'Add'
I can't not login on MT4, MT5, web on Windown server 2008, pls help