Ok, so i thought that when your EA places a trade, it is shown on the chart with an opening and closing arrow as long as you specify a color on the ordersend or ordermodify commands (which I did). instead, it shows the opening arrow and two hashes
I'm using some rather memory-hungry methods in my EA since it necessitates the use of very large multidimensional arrays. The 32-bit memory address limitations are forcing me to use a much shorter history than i would like, and i'd really like to
Does anyone know if the backtester handles the Time array properly? i.e., if i run a backtest starting July 1st, will calls to Time[0] in the EA return July 1st, or whatever time it is now
When you set TP and SL, say for a buy order , should it be Bid +/- TP/SL, Ask +/-, or Bid-SL Ask+TP? I know this seems very basic and to some of you it may seem obvious, but i'm not really a trader
Ok, so after developing what i think might be a somewhat useful EA and getting acceptable backtest results, I'm ready for forward testing with a demo account. There is only one problem, the EA is not trading at all, even when conditions are met where
This should be an easy question: Does the OrdersTotal() function return the number of open orders for whatever chart the EA is loaded on, or does it return the total amount for the account? I.E., If I have the same EA loaded on say 4 different
Say I've coded a custom indicator or EA with an infinite loop, loaded it onto a chart, and closed MT4. Every time i start MT4 afterwards, it'll load the faulty code and freeze up. Other than recompiling and commenting out the faulty loop, is there
I'm curious on your take of what you would consider the best indicator combo (especially those that can be used _OnArray ). I've already read somewhere that you should use indicators that measure different things, like trend persistence, momentum
Is there an mql4 command to parallelize execution of for loops (or do while , or anything else for that matter)? Say i have a 6 core machine and I want to run 1 million histories in each core, and then combine the statistics afterwards. How do I go
I'm running into a very weird phenomenon. I have an indicator that redraws on every new bar, so i'm re-initializing the indicator buffers everytime the loop is triggered in start() . When i do this: ArrayInitialize (indicatorBuffer, NULL );
I'm trying to initialize a global array double set[2][8][2][8][100000]; but I get the following compiling error: '100000' - too large dimension What gives? I thought i read somewhere that mql4 allows for up to eight dimensions in arrays
Hello, This is my first post. I have been reading these forums for a while in order to gain some insight on mql4 programming. My earlier programming experience was in C++ and VBA (if you want to call that a programming language). I'm glad that mql is