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 ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"You have an excellent product !!!!!!" - Comment from Arely
"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
"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"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 like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"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
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
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: Sat September 23, 2017 2:15 AM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003