Forum

List<Type> in MQL5

I have a background in C#, and wondering how I can get a list of type T in MQL5. For example, if I have the below class: class Person { public : Person(); ~ Person(); private : }; In C#, I could easily get a list by using : List < Person > myList = new List < Person > (); How can I achieve this

Can you access log files if your EA is hosted on a VPS

I have an EA that logs information (errors, trade data etc.) to log files in the form of .txt. If I move this to a VPS, do I still have access to these files? I can't see anything obvious saying this here: https://www.mql5.com/en/vps If I can, can someone point me to some documentation on how to do

Finding the time of the beginning of the week/ month

Hey guys, I just need some help with the logic to this problem I seem to be having, and perhaps it is because I am thinking of this in the incorrect manner? So, for finding the time of the beginning of the week from any given day within that week, I have simply used: int day_of_week= DayOfWeek ();

Indicator to calculate spread between pairs

Hey Guys, I seem to be pulling my hair out on this one. All I would like to do is have an indicator in a new window measuring the spread between two pairs by drawing a line with it's price? Could anyone help with this? Any suggestions are welcome. Thanks Dean

EA to match manual orders

Hey guys, So I have been struggling with this code, and not sure why. All I simply want is my EA to match whatever orders I place. Below is the function I have been using, however, it doesn't seem to match all the orders I place. Not sure if there is a more accurate way for this? int ThisBarTrade= 0

How to find the time when previous day high and low were made

Hey guys, I need some help please. I am trying to look for the time when the previous day high and low was formed. Below are my equations; they do give the correct prices, however they do not return the correct integers of the candles that formed the high/ low. Please help! high=iHighest( NULL , 0

Keeping track of profit per pair traded

Hey guys, Is there any way to keep track of the profit that the same EA has made per pair while trading? Thanks

Fibonacci Expansion

Hey guys, Was wondering if any body has the source code for the Fibonacci expansion tool? I would greatly appreciate it. Thanks, Dean

FED Rate Decision

Hey guys, As we all may know there is the Fed rate decision tomorrow. Any thoughts? Cheers, Dean

Script to draw rectangles (Help please!)

Hey guys, Just need some help please. I would like to draw rectangles on the M5 chart. Each rectangle will represent M15. I basically want to show the previous days worth of M15 on M5. When I drop the script on the chart it only draws the attached picture , with the Highs and Lows incorrect? Below