Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2011.02.24 08:06
Programmatic modification of Tester "From:" and "To:" fields with user32.dll

Programmatic modification of Tester "From:" and "To:" fields with user32.dll - script for MetaTrader 4

| English Español Português 日本語 Deutsch

Views:
3344
Rating:
votes: 2
SetDate.mq4 (6.47 KB)view
\MQL4\Include\
WinUser32.mqh (62.68 KB)view

For this script to run properly you must have the strategy tester window open.

I made this for the purpose of creating a distributed automated optimization package.
I was unsatisfied with the available automated optimization code because it necessitates modification of expert advisor code.

This was created and tested on Windows 7 64 bit. It is possible that the #define statements need to be changed to point to the proper IDs for your operating system.

I was unable to directly send a string to the date field because its control, SysDateTimePick32, is difficult to interface with MQL4.

Instead I used a somewhat round-about method of parsing the control's text and sending UP, DOWN, LEFT, and RIGHT keystrokes to adjust the date.

I posted this script because I found it very time consuming to find the necessary information to achieve this (especially for a Windows API newbie like myself). Hopefully this will help others.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Adding password protection to your Indicator / Expert Advisor Adding password protection to your Indicator / Expert Advisor

Here I propose a simple password verification scheme which uses MT4's built-in security engine providing DES/ECB encryption and does not require code re-compilation for each new customer.

Tipu Renko Live Tipu Renko Live

Tipu Renko Live is a modified version of Renko Charts that can be plotted on a normal time frame.