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
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
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
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
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
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
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
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
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
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
Hi all is it possible to change the arrows for the orders/stop loss and take profits ? I know there's the index/arrow options but I can't seem to find anything within the ordersend or ordermodify parameters. I'm only finding the color, not the type
hi all does the return function go up just one level or all the way to the very top root (ontick) for ex if you have 5 nested loops/ifs, if the 5th one hits a return, will it go back to the ontick or just to the 4th level loop? tnks
hi all i'm trying to code the following condition (as below) I want to place an arrow the first time stoch crosses upwards the 50value, after sma20 crosses above sma50 What i've managed to code so far is showing up only when it happens all together
Hi all I'm trying to use dynamic arrays for the first time but I can't seem to place data in them. I've tried the simplest of approach to see what i'm doing wrong. Basically in the below example I'm trying to fill in the array with 5 numbers that are