How to backtest a strategy specific for intraday?

Hi,

So suppose I have a strategy

buy = crossover(close, ema(close, 30))

sell = crossover(ema(close, 30), close)

How do I backtest it for intraday on all the historical data available ?

Also can you please tell me all the global data variables available in pi backtest window?
Like can I access current time ? or ATP value?

You can only back test any strategy for intraday if you have Intraday data for atleast 10days of atleast 30 different companies. I have Angel Odin [dont know abt pi] so will go to “custom condition builder” and paste your formula. Then open the chart and right click to add condition. It will show arrow on every point where condition of your formula meets. Thus you can scroll back and check how much profit it has given in the past.

Do you still ise angel ODIN for backtesting…I see this thread is 05 years old…Is backtesting beneficial…