Quote:
Originally Posted by codersguru
Hi Flolks,
I really don't know what the issue!!
My code can handle any hotkey and of course you can set any type of code when the hot key is pressed.
Download the attached indicator and click (ctrl+0) and see.
Regards,
CG
|
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