View Single Post
  #13 (permalink)  
Old 02-17-2009, 05:45 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Yes this is a big challenge.

Getting the cursor location on the screen is not the problem. The problem is how to translate this location to time and price is the problem.


Quote:
Originally Posted by pips4life View Post
Hi CG,

You love a challenge, and I appreciate all the great posts you've shared.

The difficulty I'm having is not simply to detect whether a hotkey (or mouse click) was pressed, but where was the cursor at the moment it was pressed, in terms of price and time ? I see no clue in your code (nor anywhere else) that solves this problem.

I want to write a script that places objects in the current window at whatever price & time the cursor is at when the script executes. I don't want to use drag-and-drop of the script onto the chart (because if I did, the solution would be easy, which is "WindowPriceOnDropped" and WindowTimeOnDropped".

The process of locating the script on the Navigator list and drag-and-dropping it is tedious, compared to just pushing a function key on my keyboard. (The Logitech G11 keyboard has 18 programmable G keys, and 3 sets each, so I can have 54 functions). The most obvious first application is rapid Elliott Wave labelling by just pointing with the cursor and pressing a function key. I have plenty of other applications in mind if this "price & time when executed" problem can be solved, so this would really be very useful.

Thanks in advance,
Pips4life
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote