Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"DTN feed was the only feed that consistently matched Bloomberg feed for BID/ASK data verification work these past years......DTN feed is a must for my supply & demand based trading using Cumulative Delta" - Comment from Public Forum Post
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"And by the way, have to say this. I love the IQFeed software. It's rock solid and it has a really nice API." - Comment from Thomas via RT Chat
"I "bracket trade" all major news releases and I have not found one lag or glitch with DTN.IQ feed. I am very comfortable with their feed under all typical news conditions (Fed releases, employment numbers, etc)." - Comment from Public Forum
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"Everything is working great with the API. I love it." - Comment from Calvin
Home  Search  Register  Login  Blogs Recent Posts

Information on Various DTN Products:
DTN IQFeed | DTN ProphetX | DTN Ag | NxCore
Follow DTN_IQFeed on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Product Support »ProphetX Support »How to have a ProphetX price 'bubble' remain open/display data for a long time...SOLVED
Author Topic: How to have a ProphetX price 'bubble' remain open/display data for a long time...SOLVED (2 messages, Page 1 of 1)

AMA
-DTN Evangelist-
Posts: 179
Joined: Aug 1, 2007


Posted: Jul 17, 2012 01:45 PM          Msg. 1 of 2
On a typical ProphetX chart, moving the cursor over/near a price bar will pop up a window that displays date & price info stuff. However, after 10 seconds, the window fades away, requiring one to jiggle the cursor to redisplay the bubble. This has bugged me for some time now, as I'd like a way to park the cursor over a value and have the bubble remain displayed until I move the cursor away.

Finally figured out a way to accomplish this

* Use a Windows macro to jiggle the cursor slightly after I have it positioned over/near a price bar.

* To accomplish this, I used the autohotkey macro language from autohotkey.com
Very sophisticated programming language for the Windows environment.

* One could presumably use a macro language of choice, but here's the basic statements I used in autohotkey:

; ------------------------------------------------------------------------
MouseGetPos, xpos, ypos ; Get mouse/cursor location.

Loop
{
MouseMove, xpos , ypos + 2
Sleep 5000 ; 5 secs...for now.
MouseMove, xpos , ypos
Sleep 5000
}

#j::Pause
#e::ExitApp
ExitApp ; bye bye
; ------------------------------------------------------------------------

Nothing too fancy here, just stash the cursor location into xpos & ypos, then run a loop moving the cursor UP two pixels, wait a few secs, then move it back down two pixels. Rinse & repeat...

The '#j' and '#e' statements setup hotkeys that allow me to pause it or exit by depressing either the Win+j or Win+e keys.

So, until I get this more automated, I position the cursor over a ProphetX price bar, then crank up this macro and it jiggles the cursor every five seconds until I either pause it or terminate the macro.

You could spiff this up a bit, such as storing the original cursor location, checking to see if the cursor has moved a bunch, then exit the macro, etc., but it'll be a while until I have time to enhance this. In the meantime, the basics here work OK.

Sumpin' to think about if you want a price bubble to display(or any other bubbles that fade away in time) for a longer time in ProphetX.

AMA
-DTN Evangelist-
Posts: 179
Joined: Aug 1, 2007


Posted: Jul 17, 2012 09:13 PM          Msg. 2 of 2
OK - had a few minutes, coded up the following, which seems to work fairly well.
In my hotkeys macro, I added the following two lines:

; Jiggle mouse macro; for ProphetX chart price bubbles.
#j::Run JiggleCursor.ahk

What this does is allow me to position the cursor wherever I want, then press the Win+j keys and it'll crank up the macro. The cursor will then move up -slightly- , wait 5 seconds, then move back down for 5 secs. Loops this way until I move the cursor away a bit, at which time the macro terminates. Very handy...works for me, so I'm probably done enhancing this little baby, but feel free to bootleg the code and modify as you wish.

I'm not much of an autohotkey coder, as I find the language very cumbersome and I don't have the time nor desire to become a guru in this stuff. I have, however, invested enough time to learn how to do what I need to do and I'm OK with that.

Now the macro...shove this code into a flat file with filetype '.ahk', setup a hotkey as listed above in a separate hotkeys macro and go to town
Unfortunately, this board has a really crappy editor, so all of the indenting and spacing is lost, along with some readability, but you can reformat it a bit on your own. Note: the ';' semi-colon begins a comment in this language.



; Recommended setup stuff from the autohotkey.com folks...
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Mouse, screen ; need this for multi-monitor setups.

; This code jiggles the cursor every few secs, to keep a ProphetX price bubble active
; past the default of 10 secs. Move cursor only up/down to stay near the price bar.
; Two pixels is small and barely visible; change if you wish...
; Exits if you move the cursor away from the starting location, as measured by xpos on X-axis.
; To use, position cursor, then call this code via a pre-existing hotkey definition...

MouseGetPos, xpos, ypos

Loop
{
MouseMove, xpos, ypos + 2 ; jiggle it...
Sleep 5000 ; 5 secs...for now.
MouseGetPos, newxpos, newxypos
IF (newxpos <> xpos) {
EXITapp
}

MouseMove, xpos, ypos ; un-jiggle it...
Sleep 5000
MouseGetPos, newxpos, newxypos
IF (newxpos <> xpos) {
EXITapp
}
}

#e::EXITApp ; Don't -have- to have this line in here, but it doesn't hurt, either :)
EXITapp ; bye bye
 

 

Time: Tue January 16, 2018 9:13 PM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003