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)




"You have an excellent product !!!!!!" - Comment from Arely
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"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
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
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: Wed November 22, 2017 11:36 PM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003