Read the article Strategy Tester: Modes of Modeling during Testing
On mode Open Price only always Open==Low==High==Close==Bid . Think yourself ...
On mode Open Price only always Open==Low==High==Close==Bid . Think yourself ...
I had read the article before i asked. So there's not any simple way to use the tester with the original prices, isnt there?
***
How can I refer to the datas of the last but one bar? I tired this formula:
The result is just zeroes:
2007.02.13 22:32:32 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:0.0000 H:0.0000 L:0.0000 C:0.0000
What's the wrong?
I found it out. The correct formula contains +1 instead of -1 at the arrays[].
***
How can I refer to the datas of the last but one bar? I tired this formula:
if (Hour() == 17 && Minute() == 55 ) Alert("The time is 17:55 -" + " O:" + Open[-1] + " H:" + High[-1] + " L:" + Low[-1] + " C:" + Close[-1] ) ;
The result is just zeroes:
2007.02.13 22:32:32 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:0.0000 H:0.0000 L:0.0000 C:0.0000
What's the wrong?
I found it out. The correct formula contains +1 instead of -1 at the arrays[].
Relative:
I had read the article before i asked. So there's not any simple way to use the tester with the original prices, isnt there?
***
How can I refer to the datas of the last but one bar? I tired this formula:
The result is just zeroes:
2007.02.13 22:32:32 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:0.0000 H:0.0000 L:0.0000 C:0.0000
What's the wrong?
I found it out. The correct formula contains +1 instead of -1 at the arrays[].
I had read the article before i asked. So there's not any simple way to use the tester with the original prices, isnt there?
***
How can I refer to the datas of the last but one bar? I tired this formula:
if (Hour() == 17 && Minute() == 55 ) Alert("The time is 17:55 -" + " O:" + Open[-1] + " H:" + High[-1] + " L:" + Low[-1] + " C:" + Close[-1] ) ;
The result is just zeroes:
2007.02.13 22:32:32 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:0.0000 H:0.0000 L:0.0000 C:0.0000
What's the wrong?
I found it out. The correct formula contains +1 instead of -1 at the arrays[].

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm working on Back Testing of my EA. I realised that the tester doesn't work the way I expected. I describe:
I am back-testing an EA on EURUSD, M1, day of 2007.01.02
I use a code to get information about the datas of the bar at the time of 17 hours 55 minutes.
I have tired all of the three Model of testing, resulted diffrent results.
1. Every tick - Journal messages result:
2007.02.13 17:06:05 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3284 C:1.3285
2007.02.13 17:06:05 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3284 C:1.3284
2007.02.13 17:06:05 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3285 C:1.3286
2007.02.13 17:06:05 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3285 C:1.3285
2007.02.13 17:06:05 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3286 C:1.3286
2007.02.13 17:06:05 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3288 C:1.3288
2. Control poins - Journal messages result:
2007.02.13 17:08:59 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3284 C:1.3285
2007.02.13 17:08:59 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3284 C:1.3287
2007.02.13 17:08:59 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3284 C:1.3288
2007.02.13 17:08:59 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3284 C:1.3284
2007.02.13 17:08:59 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3286 C:1.3286
2007.02.13 17:08:59 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3287 C:1.3287
2007.02.13 17:08:59 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3288 C:1.3288
3. Open prices only - Journal messages result:
2007.02.13 17:09:39 2007.01.02 17:55 AXORYN EURUSD,M1: Alert: The time is 17:55 - O:1.3288 H:1.3288 L:1.3288 C:1.3288
According to the source database, the prices at the time of 17:55 are: Open: 1.3288 High: 1.3288 Low: 1.3284 Close: 1.3285
I would like to use the Back Test with only one bar on one minute. (Because of the 1 minutes database.) I would like to use the real datas of the source database.
Could somebody explain please why are these diffrents? And why doesn't be another Model of Back Testing?
Please help me to find the way to use the testing with the original datas of one bar.
Thank You.
Relative