Thank you for letting me know Nicolas.
It should now be fixed, FYI.
I am sorry it has taken me so long to verify this fix, but I am afraid to say that the results are unchanged:
IntradayBarIndex only returns a value if the screener begins in an intraday time frame (although I have only tested it for 2 minutes)
If the screener begins in a Daily timeframe, but is changed to an intraday timeframe using the function – timeframe(2 minutes), then IntradayBarIndex returns zero.
If you are testing the “intradaybarindex” right below the TIMEFRAME(daily) instruction, it is normal that it returns 0, there is only 1 intraday bar on a daily timeframe.
No, I am using it in the 2 minute section and results are exactly as before.
Sample code:
timeframe(2 minutes)
LookbackBars = IntradayBarIndex
Filter = 1
Screener [Filter](LookbackBars)
Results attached.
It works correctly (see attached picture). Are you sure you launch the screener on a shares list you have intraday data subscription? (not only end-of-day).
Yes I am trading intraday with IG in Australia.
I have attached screen shots of the results using your code.
The important point is that the “Selection of Period” is Daily and that the use of the function “timeframe” is having no affect. This is an issue when using code that mixes time frames – the same scenario as reported at the start of this thread.
I have also attached a result set when the “Selection of Period” is 5 Minutes, which includes some items with a returned value.
I tried different combination and you are right, the code is using the higher timeframe used intradaybarindex, not the one included below the TIMEFRAME instruction. I made a new report for this. Please be patient 🙂