i'm going through the help doc and am noticing some functions have a similar counterpart with little to no additional parameters to them. for example Bars vs iBars, the former has just an extra start stop time. If I don't need to use the start/stop time, will both functions always give the same
hi, i always read that double has fractional capability, so i have tried a simple 5/3 problem, but i'm getting 1.0 int x = 5 ; int y = 3 ; double answer; answer = (x/y); Print (answer); any help on how can i get the actual 1.6? thanks in advance
hi guys, i'm going through the help doc of mql5 and am reading about enum here https://www.mql5.com/en/docs/basis/types/integer/enumeration however there's no examples of how they're used. all I got is that one can create a list which will be assigned values from 0 with increments of 1s but thats
Hi guys, as per topic i'm total noob on mql5. Couple of years back started mql4 but dropped it so instead of continuing i decided to give mql5 a try. I'm trying out some basic commands and came across the __DATETIME__ so I tried printing it via the below command Print ( "DateTime is " , __DATETIME__
hi all i always thought that if you trade the same exact lot size together with the same exact stop loss in points, you should always lose the same amount of money, so i've done the simplest EA where it opens an order at market price on every new candle, fix lot of 0.1, stop loss of 50pips, no
hi all, i've just learned that this zigzag indicator exists and i'm tempted to try and create a code and use it's values. However I'm not sure what codes are related to it. By this I mean I've searching the help but found only 3 articles that include the word zigzag, 1 is how to draw it, and the
hi all I'm writing some code to calcualate lot size and then i'm using normalize to keep up to 2 decimals. It's working fine except for the value 7 as shown below. it happens in any time frame and any currency pair. I've seen normalisedouble failing a couple of other times with other calculated
hi, i have a variable in the ontick which is based on a moving average so it keeps on changing (and thats good) I know I can't use it in a function since its not global, but if I declare it globally the value will be fixed to that when it was first loaded. for now i'm reclaring the varible both in
hi all, i'm reading about optimizing a strategy and im seeing a lot charts, graphs, 3d visuals to show the optimization results . Are these done with a 3rd party software or maybe upload the report online? where can i read more about how to create these as I can't seem to find any option in MT to do
hi all i'm building some random EA's and i'm noticing that many of them performed better when spread was set to higher, for example 1spread vs 15. why is this so? shouldn't 1spread give the highest possible outcome if all the rest is left the same? (EA wasn't edited, i've just changed the option