I want put together a study using think script that will look back 30 days and post the 2:00 pm high and the closing high for each day.
For example at the top left of the screen in vertical fashion vice the usual horizontal fashion.
Would look like this at top left of screen
25 Jan 6010 6020 +5
26 Jan 6012 6010 -2
27 Jan 6060 6035 -25
28 Jan 6019 6019 0
29 Jan 6037 6047 +10
30 Jan 6067 6097 +37
This would print for current date back 30 days then calculate the difference and place it in a 3rd column with proper sign - or +
It would start with current day on top and continue day by day till it competes back 30 days from start.
It would work on what ever symbol you were using at the time
Could anyone help me set this thing up please....
Will not need these headers posted to the screen but it may clarify what I am trying to do
Date 2M 4M Diff
25 Jan 6010 6020 +5
I really want this data to print to a text file rather than on the desktop but
right now that is more than i want to chew... Once this works i may try to
add capability to print to text.
So bottom line to make sure its clear, I want to collect the closing of the 2:00 pm candle
and the 4:00 pm candle and log then as shown.
Thanks for any suggestions or help.
Thank you so much for offering help with this..
1. The error in diff for the one item is a typo. it was manually typed on screen.
2. I think it would be sufficient to use Day and maybe a one hour for candles as I only
need the closing value of the 1400 and 1600 candle.
3. Just the days of live trading would be all that is needed
So no need for any number of days just the days of trading live for each month.
So if the number of trading days is 20 or 30 it matters not.. just active days.
4. one hour candles should work as that would be reading back no more than 24 candles
as it should only need to read one month so my guess it would be best to have only a
month on page so it will only read the month on the screen. and would only print maybe
20 24 lines on the screen since each month will be different as long as it prints the
1400 and 1600 for each trading day of the month. And it only needs to run once.. not a loop
That would just be wasteful. Once I learn more about what I am doing i would like to dump into a text file on the hard drive and it could then be looked at anytime after it ran..
Thanks
James
For example at the top left of the screen in vertical fashion vice the usual horizontal fashion.
Would look like this at top left of screen
25 Jan 6010 6020 +5
26 Jan 6012 6010 -2
27 Jan 6060 6035 -25
28 Jan 6019 6019 0
29 Jan 6037 6047 +10
30 Jan 6067 6097 +37
This would print for current date back 30 days then calculate the difference and place it in a 3rd column with proper sign - or +
It would start with current day on top and continue day by day till it competes back 30 days from start.
It would work on what ever symbol you were using at the time
Could anyone help me set this thing up please....
Will not need these headers posted to the screen but it may clarify what I am trying to do
Date 2M 4M Diff
25 Jan 6010 6020 +5
I really want this data to print to a text file rather than on the desktop but
right now that is more than i want to chew... Once this works i may try to
add capability to print to text.
So bottom line to make sure its clear, I want to collect the closing of the 2:00 pm candle
and the 4:00 pm candle and log then as shown.
Thanks for any suggestions or help.
Thank you so much for offering help with this..
1. The error in diff for the one item is a typo. it was manually typed on screen.
2. I think it would be sufficient to use Day and maybe a one hour for candles as I only
need the closing value of the 1400 and 1600 candle.
3. Just the days of live trading would be all that is needed
So no need for any number of days just the days of trading live for each month.
So if the number of trading days is 20 or 30 it matters not.. just active days.
4. one hour candles should work as that would be reading back no more than 24 candles
as it should only need to read one month so my guess it would be best to have only a
month on page so it will only read the month on the screen. and would only print maybe
20 24 lines on the screen since each month will be different as long as it prints the
1400 and 1600 for each trading day of the month. And it only needs to run once.. not a loop
That would just be wasteful. Once I learn more about what I am doing i would like to dump into a text file on the hard drive and it could then be looked at anytime after it ran..
Thanks
James