I’m trying to fine tune my turtles trade. and since it has no indicators it it very easy to adjust to other time frames. I wanted to change it from 1 Day TF to 1 min TF. and counting the days with a simple BARINDEX-TRADEINDEX(1) to count 24 days it works flawless. So adjusting it to 1 min TF I need multiply the counter with 1440 as there is 1440 minutes in one day. so for 24 days it’s 34560 bar indexes.. but it counts wrong?. so looking into this. the sundays are missing from the 1minTF.
It the same platform with the same Indices settings-
It should not be the problem. DAX is open from sunday 21:00 gmt to friday 21:00 gmt- 24 hours tradable. Tradeindex and barindex should take care of this. But all sundays is missing in the 1 min chart in the back test, but is present in 1day chart
I see there are empty spaces in the chart on the 1 min TF, so when barindex don’t see any bars I guess it don’t count it. But if the whole sunday is mission, I guess it could mean that the demo instrument was closed on that day for what ever reason. Question is- are there also mission bars in live instruments.
For the documentation sake and if anybody have similar problem- it could be solved like this. Still a small problem when a whole day is missing, but I guess it’s just in demo and would not happen in live
1
2
3
4
5
6
7
8
//=================================counting days in market on a 1 min TF=====
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue