Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I like the chart comment for backtesting. it helps allot to see exactly what your EA is doing espically with multiple open positions. The ability to see the % growth would be great...
You may well want to keep the value as a global variable, as it then would survive EA invocations, as long as the MT4 program i running. In either case, you need two variables: one for the value, and another to tell whether the value has been assigned today or not.
You could use the following code snippet would make the assignment once with the first tick of the selected StartHour: