Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

snoop

Calculating High and Low for a Session Spanning 2 Days

Recommended Posts

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/forums/f46/soultraders-pivots-tradestation-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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.