Download MetaTrader 5
To add comments, please log in or register
Use searching on MQL5.community. It is easy!
Dirk Muehlich
11
Dirk Muehlich 2015.03.08 19:08 

Hello,

i want to predict/backtest Patterns. The Pattern are the last 1-5 Candles in the Chart. I want to have this price data in my backtest, but i dont get these data with iBarShift(date), because i just can get the data of the past in the backtest which have been tested.

How i can get them automatically(except the Date) without typing in Open/Close etc?

best regards

whroeder1
13597
whroeder1 2015.03.09 16:43  
  1. Your post is unintelligible. Don't speak Engrish.
  2. You can't get them automatically, you must learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Dirk Muehlich
11
Dirk Muehlich 2015.03.09 18:11  

I have for example a chart of 2014. I want to backtest the last candle of 2014 in 2014. It doesnt work with BarShift(extern datetime), because the pattern is in the Future(iClose(Symbol(),0,-100) while the backtest is running. I cant pay someone for something that he cant do.

Your Answer confirms my thoughts that it doesnt work because of MT4.

whroeder1
13597
whroeder1 2015.03.09 18:17  
So move the tester forward
/
To add comments, please log in or register