| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Calculating High and Low for a Session Spanning 2 Days I've seen numerous pivot studies in the archives but they all suffer the same issue that I don't know how to resolve. I'm hoping someone can help me. The day high, low and session close are used in the calculation, and it works fine for ES or YM, as their open and close are in the same day. But I'd like to calculate 24hr pivots based on the session open and close ie. Oil, from yesterday @ 18:00 to today @ 17:15. HighD, LowD and CloseD work on a midnite to midnite basis where as I believe it should be based on the true trading sessions. I use multicharts which is effectively tradestation code, but I have no idea how to handle the overlap of previous day with part of today. I've looked for sample code that tackles the issue indirectly but no luck. Any help would be much appreciated. The code I'm using now is: http://www.traderslaboratory.com/for...ation-488.html And I input the data manually but its tedious after a long day. Otherwise, I like the way this works, though I'd love to have historical plots as well, in a perfect world. Sincerely, T | ||
| |
|
| | #2 | ||
![]() | Re: Calculating High and Low for a Session Spanning 2 Days That thread should get you started in the right direction. | ||
| |
|
![]() |
| Tags |
| pivot |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calculating Value Area | Soultrader | Market Profile | 35 | 09-19-2011 05:04 AM |
| Calculating the Fibonnaci Levels of a Candle | daedalus | Coding Forum | 3 | 06-24-2009 05:22 PM |
| Overnight Session: Looking at globex high & low | Soultrader | Technical Analysis | 15 | 12-25-2008 08:08 PM |
| Calculating Intraday Turning Points | jpflores | Technical Analysis | 22 | 09-04-2008 09:50 AM |
| Calculating daily pivots for spot | Dr Who | Forex Trading Laboratory | 17 | 01-26-2007 08:46 AM |