First of all, thanks for @BobSvan2 for his very detailed explanation. He is really doing his BEST to improve Seetu and develop a cloud based algorithmic trading infrastructure.
Here are the Answers for your Questions:
Allow me to describe the overall Seetu status at first.
- We started it as a backtesting machine using just end-of-day (OHLC) US stocks data.
- You write your code and click on “Run Backtest”.
- Seetu must read data from some repository and run your code.
- End-of-day data are “manageable”. We can download them after market close and store them in the database.
- Then, we can just read the data and use them all day long.
- It is fast and works well - unless someone wants really many symbols.
Well, time advanced and more and more traders want to trade intraday. One minute data are in demand.
What does it mean for Seetu when you click on “Run Backtest” (or Scan or Explore)?
- It means it must incrementally acquire new one minute data from markets, store them in the database, read one minute data for the time range defined in strategy and run the strategy.
- We developed that and it works. You can use intraday bars from one minute to one hour.
What we need now (and what does not work yet) is “time frame switching”.
See “Time Frame functions” (the last group of functions on the bottom) here:
https://www.amibroker.com/guide/a_catfunref.html
We need those functions now, but they are not yet implemented. (Well, I even did not expect we will need them ever, so they are not even included in our help…)
Now, back to your problem. Suppose we have “Time Frame functions” for a moment.
1. I would typically use the strategy on a "daily" interval and within the function to change to intra-day for processing. I'm not too sure how to approach this with Seetu..?
This is right the opposite. You need to start with minutes and switch to daily. How it works in Seetu:
There is a SetOption(“Periodicity”, …) command there. It is a part of the global setup which tells Seetu what data to read and what to do on the beginning.
- If the periodicity is daily (weekly,…) it just reads end-of-day OHLC data from the database.
- If the periodicity is intraday, Seetu must update one minute repository at first and read data from that repository.
What it means: There is no way how to go from daily OHLC data to minute OHLC data. One needs to start with one minute data which are convertible to the daily data.
That conversion must be done using “Time Frame functions”. Here is a description how it will be implemented (more or less) in Seetu http://www.amibroker.com/guide/h_timeframe.html
Summary:
- SetOption(“Periodicity”, …) is a global setup and must be used just once.
- You need to start with minute data which are convertible to daily data using some of time frame commands (not yet implemented).
2. How would you determine the start and last bar for each intra-day segment?
Maybe this helps you: https://www.collective2.com/seetudoc/id_intraday_code_example_01.html
3. Is there a way to just store a indicator outside of a strategy so it can be used within multiple trading strategies?
No.
I hope this helps.
Lorant