Forum

Forward Testing in MT4

I was thinking if there was a way to code forward tests in MT4 into OnTester() function . It's a pain having to do it manually while optimizing. Does anyone have any idea if this could be done

k-means clustering in mql4

I'm working on a 1D k-means clustering code. I have defined 25 Cluster Means and I need to go through the available data and assign each value to the closest Mean. How can I do that without having to create 25 different arrays to which I should assign the data

S/R Script Returning different result than expected

I've been trying to write a part of a Support and Resistance script, where a Horizontal Line is drawn where price has previously stalled, meaning that we've had either many closes at that price, or highs, or lows, or bars that have ranged across those levels. Then the script merges levels that are

iClose - Undeclared Identifier

I've been getting the Undeclared Identifier error on iClose , iOpen, iHigh and iLow, and I have no idea how to fix this. for example in this: int HighestCloseBarBefore = iHighest(NULL,PERIOD_H4,MODE_CLOSE,RoomCandles,(a+1)); int HighestCloseBarAfter =