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)




"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
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"You are either overstaffed or people just don't have problems with your feed because customer support always answers the phone quickly." - Comment from Jay via Email
"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
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"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
"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
"I've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
Home  Search  Register  Login  Blogs Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
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 May 22, 2018 9:02 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003