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)




"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"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
"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
"I just wanted to let u know that your data feed/service is by far the best!!! Your unfiltered tick data is excellent for reading order flow and none of your competitors delivers this quality of data!" - Comment from Peter via Email
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
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: Wed November 21, 2018 12:47 PM CFBB v1.2.0 0 ms.
© AderSoftware 2002-2003