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

Reply
Old 11-11-2009, 12: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, 01:43 PM   #2

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

Thanks: 33
Thanked 89 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
Display Modes Help Others By Rating This Thread
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

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