Historical Index Constituents Help needed

I am stuck and I hope someone may be able to help me out. I am a newby (just a couple of months) and have been able to write some simple code. I wish to filter by index constituent and I am using Norgate Premium Data. In this case ASX 300 or All Ordinaries.
My first question is, is this actually possible because from what I can gather Norgate has changed the updater and this functionality may have changed recently. The sample code I have found does not work.

#include_once "Formulas\Norgate Data\Norgate Data Functions.afl"
No such directory appears on my hard drive so I have to think something has changed or is unavailable.

r = RSI (14);
Overbought = Cross (r,80);

// to specify ASX 300 historical//
WatchlistCheck = NorgateIndexConstituentTimeSeries(S&P/ASX 300)

Filter = Overbought AND Filter = WatchlistCheck;

This part of the code that gives an error as well highlighting 300 with Error 31 Syntax error unexpected NUM expecting ) or :

I would be very appreciative if someone could set me straight with some information as to whether this functionality is possible and if so how would I go about wring the correct formula

Hi Stuart,

The sample code you found for backtesting on historical index constituents only works with our new data service called Norgate Data. It does not work with our Premium Data systems.

You can find out more information about the new Norgate Data service here:
https://norgatedata.com/