Hi Eugene,
Your information on " Viewing the same Indicators over multipal Time Frames" is realy good. I was able to make it work before the market closed for New Years. It's really enough different form the originial question That I'm putting it hear in a new thread to make it easier for others to find.
Thanks
Tobey
Summary
From Eugene
A 50-day moving average is not necessarily equal to a 10-week moving average. What about a trading halt? Market holiday? There could be less days in 10 weeks than 50. Any series from the higher time frame should have a stair step look, that's the way it is.
Here's the code to display a ten day moving average on intraday data
CODE:
Please log in to see this code.
From Eugene
Anyway, here's one more code snippet to help you:
CODE:
Please log in to see this code.
From Tobey
This code is a big help! By filling in my indicator in each time frame it created a single chart/strategy that allowed me to see the same indicator correctly on Daily and Interday data.
I also added two more if staements at the end for weekly and monthly charts
CODE:
Please log in to see this code.
The result is one chart that shows the consistant indicators as you switch from a monthly all the way to intraday charts. Eugene thank you!!
Hi Eugene
Here's my next question about adding a strategy to this chart.
I seem to that I would want to code in the strategy more than once. For example, If I wanted to see it on a Daily chart I would have a daily version of the strategy code in under the daily section of the code. And if I wanted to see it on a 15 min chart, I would have a 15 min version coded in the 15 min section of the code.
Is this the way you would do it? If so I'll have a pretty code heavy chart/strategy. It could take it's time to run at the end of day. And it could even run ok on a small watch list. But during the day on a big list of tickers it would have a tough time running.
So on an intraday bases would you create a screen that just screened for the buy side of the strategy to find possible new buy canidates?
Thanks again for the help
Tobey