I have a question regarding the ArrayMaximum / Minimum functions . The documentation is not clear as to whether or not the arrays are read from right to left or left to right. For instance, say i want to record the maximum of elements 6,7,8 in the
I'm interested in parallelizing parts of my EA in the GPU using the new C++ AMP programming model <amp.h> Is there an <amp.mqh> library somewhere, or do i have to do this via external DLL
I thought I solved this a while ago, but while troubleshooting my code I thought it might be a good idea to validate all my assumptions, and iMAOnArray is one function for which the documentation is outright confusing. Say i have built an array
I have the following code that executes at certain times when i want to exit all open long positions (and another one for short positions) void CloseLongs() { for ( int pos = OrdersTotal () - 1 ; pos >= 0 ; pos--) if ( OrderSelect (pos
I'm testing an EA on an Alpari UK demo account and I'm seeing some very strange behaviour. Some times a market entry is triggered, which i can confirm via a print statement just prior to OrderSend(), but the order does not go through for some reason;
Consider the following: if ( t2> 0 && (t2>t1 || t2>t3) ) l= 5 ; I have seen this statement return true when t2<0. It seems to me this should be impossible, unless MT4 is disregarding the parenthesis altoghether. This really shakes
I have an EA that produces an array of future prices. I'd like to be able to plot these on the chart to ensure the EA is working properly. Is there any way to do this, similar to loading the array into an indicator buffer -type object, or do i have
I just finished backtesting my Monte Carlo based EA, and the results are encouraging enough to start forward testing. I've put this up on a blog and I'm broadcasting the forward test live. Granted, it may be days or weeks before any trading, but
Ok, so I think I'm close to coming up with a somewhat profitable EA. The thing is, no matter how good your EA is, there will always be losses. No one knows the future, and the best you can do is make an educated guess and hope your forex gambling
I'm seeing some very odd behaviour while doing a backtest. There is a large disconnect between my Balance and Equity values. There was a trade to buy 35.1 lots of EURUSD at 1.37321 and the trade later exited at 1.37412, for a profit of 9.1 pips *
can i define a C++ Struct in MQL4? i typed in "struct" to see if it gets highlighted like int, double, etc, but it doesn't seem to exist. Is there anything equivalent
I think it's time to enhance my EA with a fundamental backdrop in order to put the technicals in a proper context. I'm thinking about starting out with GDP, Central Bank Interest Rate and maybe inflation. The problem is that while there are some good
Is there any function which returns the overall average win amount, average loss amount, and winning/losing trade fraction? I'm thinking about implementing a kelly subroutine to handle position sizing and would like to make it fully automatic (to be
This other post about twitter posting from an EA gave me an idea on how to remotely monitor my EA's performance while I'm at work without clogging up my inbox. Instead of littering my EA with various calls to send email or post to web on every branch
Ok, so i'm now in the "sensitivity study" phase of my development, and i thought i'd use the "optimiser" in the backtest to help me out. Basically i'm checking for optimum operational modes of my EAs, (e.g. multiple orders vs
Ok, so I've developed some EAs which perform statistical categorizations of market behaviours and then produces monte carlo predictions that drive trading decisions based on the calculated statistical data. It should work on any currency pair , since
So i moved my installed MT4 folder from Program Files (x86) to C:\MT4, opened 4 new demo accounts, and this is what i see. Is there something else that needs to be transferred or a registry value that needs to be updated? I'm on Vista home premium