Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
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 am programming an EA which accesses data from previous bars, makes calculations and based on that determines the signal.
It operates on D1 only. It firstly determines the max shift from the current day (one which tester is set up to start) to the last day in the database. In my case it is 06.08.2012 for one of instruments. This is in order to make a loop through all history from the max shift day to shift 1 (yesterday) and do the necessary calculations for creating a signal... When I run tester for Monthly (chosen from the dropmenu in tester next to instrument) candles it has access to all data of D1 from shift 0 to max shift (on 06.08.2012). However when I choose Weekly or Daily it has not - shift to 06.08.2012 returns shift (from IBarShift func) as -1. I have selected unlimited amount of bars in chart settings... This bothers me and make me doubt in the testing process. Any reason why Monthly works and shorter ones do not apparently?