This one is odd.Take the following:MqlDateTime tl;Now, I should be able to type "tl." (without the "") and see what the options are (maybe a better word would be "intellisense"). After the update of Windows 10 today, it has disappeared.
In the code below, the error comes up on ChartOpen. Now, despite the error; the chart still opens. After going through a few things, I actually found out the problem. MT4 using too much memory. I made the following
Not talking pips here.But which formula is more accurate:double TotalProfit=OrderProfit();ordouble TotalProfit=OrderProfit()+OrderSwap()+OrderCommission();In other words, does OrderProfit() automatically include OrderSwap() and OrderCommission()
Now, the code I'm going to post works flawlessly in MT4 and the platform is set to x86 in visual studio. But in MT5 (x64) and x64 set as the platform in Visual Studio, I get "Can not find <function name> inside <dll name>.dll".EA
Good news is I'm trying to do this in only 1 way. C# managed program to MQL4.Now, when the DLL code is this:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using
My spelling sucks today! :PDo you like to have indicators in the same window with your candlesticks/bars? Or do like to have them in a separate windows to avoid "clutter"? I'm writing a family of indicators and am stuck on this
Take a look at the attached picture. See how the lines go the next candle? How can I get rid of that angle line? Note: this is a Pivot Point indicator. So, I just want sets of straight lines without the "slides" in between
No problem with code or anything. Just wondering here before I set off on an adventure (that will probably end in a horrific crash. :) )Is there any hard and fast limitations on how many global variables that can be set?
Kind of taking a survey here. I've been reading around various area's on lot calculation. I'm wondering, how do you calculate lots? Here are some examples from a thread I posted on another forum:// a) Found this in a spreadsheet somewhere
Put this on chart. No matter how far apart the 2 prices are, it ALWAYS draws a flat trend line. Why?#property strict #include <ChartObjects\ChartObjectsLines.mqh> CChartObjectTrendByAngle myAngle; #include <Files\FileTxt.mqh>
Note: If this post is duplicated, sorry. I'm pc crashed while I was doing it.Isn't an object of this type supposed to support text in it? My code draws the box just fine. But no text shows up inside. I'm pretty sure I'm