Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 11-11-2009, 01:50 PM   #1

Join Date: Dec 2008
Location: Toronto
Posts: 4
Ignore this user

Thanks: 3
Thanked 0 Times in 0 Posts



Calculating High and Low for a Session Spanning 2 Days

Another pivot study post.... i know, but please hear me out.

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
snoop is offline  
Reply With Quote
Old 11-11-2009, 02:43 PM   #2

Join Date: Oct 2006
Location: na
Posts: 307
Ignore this user

Thanks: 33
Thanked 88 Times in 58 Posts



Re: Calculating High and Low for a Session Spanning 2 Days

http://www.traderslaboratory.com/for...uage-5616.html


That thread should get you started in the right direction.
trader273 is offline  
Reply With Quote

Reply

Tags
pivot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Value Area Soultrader Market Profile 35 09-19-2011 06:04 AM
Calculating the Fibonnaci Levels of a Candle daedalus Coding Forum 3 06-24-2009 06:22 PM
Overnight Session: Looking at globex high & low Soultrader Technical Analysis 15 12-25-2008 09:08 PM
Calculating Intraday Turning Points jpflores Technical Analysis 22 09-04-2008 10:50 AM
Calculating daily pivots for spot Dr Who Forex Trading Laboratory 17 01-26-2007 09:46 AM

All times are GMT -4. The time now is 05:16 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.