Codes

Sliders for MetaTrader 4

Uses up to 4 visual "sliders" in the chart window to quickly and easily adjust values of any technical indicator in a separate window. Based on MetaTrader 4 chart objects, not DLLs

Articles

The Random Sandbox for MetaTrader 4

The article includes an interactive "sandbox" as an Excel file which simulates randomized Expert Advisor backtest data. Readers can use this to help explore and more deeply understand the EA performance metrics offered by default with MetaTrader. The text of the article is designed to guide the user

Forum

Does ObjectGetShiftByValue() work with vertical lines?

Is there any way to get ObjectGetShiftByValue() to work with vertical lines , or am I wasting my time trying? I just keep getting the return value of -1, and the error code 4205 (ERR_OBJECT_COORDINATES_ERROR, Object coordinates error). I'm guessing that is because ObjectGetShiftByValue() requires a

Is it still possible to publish articles in the MT4 space?

I wrote an article and submitted it for publishing on this MT4 site over six months ago. Since that time is has just sat there with the "ready for publishing" sign, but no messages or responses from admin. I think that it is the admin which is responsible for finally publishing it, and there is

Is it possible to change the stoplevel?

Is it possible to edit the stoplevel of any symbol to your own chosen value? There are plenty of articles discussing how to alter the spread values, but I can not find an answer for how to alter the stoplevel values. I am assuming that the answer is "no", but it is still worth asking. (I know that

Indicator Sliders

After submitting this indicator to the mql4 codebase 3 months ago, it is still "under proof reading by moderator", with no comments or responses from them yet. I'm just going to post the indicator here so that people can actually get some use out of it. (It seems a waste to have it sitting around

ERR_TOO_MANY_REQUESTS (Error: 141). Too many requests per what?

Too many requests per what? Does anyone know anything more specific about error 141 than the rather tautological information here: https://docs.mql4.com/trading/errors ? ERR_TOO_MANY_REQUESTS 141 Too many requests. The frequency of requesting must be reduced, the program logic must be changed. I am

Problem with backtest premature completion

The backtests I am running over long periods are apparently not running to the full period specified in the strategy tester input. I can not think of any reason why this might be occuring. I have tried everything I know. Does anyone know what might be the cause? I am running backtests on EURUSD M5

Some double values invisible during cycle?

I am having a problem where double values are seemingly being ignored during the execution of a cycle. I have tried many ways to fix it, but I just can't see a solution. Can anybody else see what is wrong here? Am I going crazy?!? This is a simplified version of a piece of the code. (It has been cut

Problem with indicator loading and removing during backtests

I am backtesting on two terminals simultaneously. I updated the EA on one terminal, and then copied it to the other and re-compiled it there as well. Both terminals are loaded with the relevant indicators. Both terminals have identical history data. When I run the two EA's side by side, with

MinLot and LotStep problem during backtest: SOLVED

This is an answer, rather than a question. I searched for an anwser for my question and all I found were threads started by other people asking the same question, with no complete answer. I think I solved the problem I was having - so here is the answer for the next person. (I hope I am correct). I

Skipping useless optimization passes. Possible?

Is there a way to skip any given pass of an optimization before that pass is completed? For example, if the relative drawdown % of a pass is too high at any point in that pass, then it is a waste of time to continue to the end of that pass, and it is better to skip straight to the next pass. I have