logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
wil  
#1 Posted : Saturday, January 24, 2009 11:02:42 AM(UTC)
wil

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/5/2005(UTC)
Posts: 14

Say a 1-min chart is loaded with 30 days' stock data. How to find the highest high and the lowest low in the morning session and afternoon session of each trading day with the indicator?

Thanks

wabbit  
#2 Posted : Wednesday, February 4, 2009 10:10:37 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Hi wil,

You'd have to program a few definitions of when the "morning" session starts and end, and the "afternoon" session too. From there, you'd have to decide whether you want the function to display the information as time elapses during each session (i.e. in real time) using the HighestSince() and LowestSince() functions, or you could do it retrospectively by nesting the Highest/LowestSince in a ValueWhen() function.

There are many ways to achieve these sorts of results in MS. To get the best results from this community forum, have a crack at writing the code yourself, then if you get stuck, post your best attempt here with an explanation of what the cide is supposed to be doing and a description of how the code is not achieveing the results (a picture speaks a thousand words, so add one if you can)

Hope this helps.

wabbit [:D]

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.