Rank: Member
Groups: Registered, Registered Users Joined: 2/3/2007(UTC) Posts: 13
|
Hello forumers,
I know from the book <formula premier> that, DayofMonth() and Month() are the functions to get the date of an element in the array of EOD daily charting.
However, there seems no counterpart such as Hour() or Minute() for intra-day date... These functions are import to me, as I want to use BarsSince( Hour()>=XX, Minute()>= YY) to select part of the array of the intraday data, upon which, my indicator will run the caculation.
Can anyone give a hint?
======
Question 2. We have BarsSince(), but we don't have BarsUntil()... is there someway to implement BarsUntil() somehow? -- expect by MDK.
Question 3. I read some post in MDK forum, and I am still unclear whether I should purchase it. My purpose is to implement a plugin, that, when I click the mouse on a certain bar, the variables of that bar (O,H,L,C,Date,Time.. basically those shown in the "data window") could be recorded. These variables than could be feeded into user defined indicators... By using MDK, is this mouse event related function possible? I read some post, it seems the UI package offers nothing related to the mouse event...
Thank you!
|
|
|
|
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)
|
ifiaas,
Q1. There are intraday time functions: Hour() Minute() Tick()
Q2. How will MS know how many bars there are until an event. A bar is only created if there is trade action on that equity, so if there are no trades there will be no bars. To explain this a little more clearly, some intraday traders say they want a system to trigger an alert 5 minutes before the end of close, but MS only sees bars of information, so if on a slow day there are no trades in the last five minutes, as far as MS is concerned the market will close silently and the intraday trader will be left holding their positions!
Attempting to predict the number of bars to a non-time-based event requires a crystal ball.
It might be possible to use the MDK to create an add-in that will trigger an alert at a particular time, but this alert might only be made possible if the user is sitting at the computer pressing the refesh button (I believe this is for RT charts too, but I have not tested the theory)
Q3. You cannot use mouse-driven events in MS.
wabbit [:D]
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 2/3/2007(UTC) Posts: 13
|
Thank you, wabbit.
The answer is very clear and helpful :)
ifiaas
|
|
|
|
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.