Discussions
»
Product and Service Development
»
MetaStock
»
How to find the half day's Highest Highs and the Lowest Lows on 1-min chart with indicator
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
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
MetaStock
»
How to find the half day's Highest Highs and the Lowest Lows on 1-min chart with indicator
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.