one mouse click = multiple programs' actions - Tech Support | futures io social day trading
futures io futures trading


one mouse click = multiple programs' actions
Updated: Views / Replies:511 / 8
Created: by SARdynamite Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

one mouse click = multiple programs' actions

  #1 (permalink)
Elite Member
Belgium
 
Futures Experience: Advanced
Platform: SaxoTrader
Broker/Data: SaxoBank
Favorite Futures: ESTX
 
Posts: 290 since Dec 2009
Thanks: 242 given, 109 received

one mouse click = multiple programs' actions

Under Windows 10 here,

What I would like to achieve, put it simply, by one single mouse click, it would trigger buy/sell market button cliks on different trading platformss (3-4 of them), paneled side by side. Ideally at the same time, with the least delay...

Can you think of the best trick to realise such task ?

thanks a lot


Last edited by SARdynamite; October 23rd, 2015 at 07:39 AM.
Reply With Quote
 
  #2 (permalink)
Elite Member
SE Asia / Canada
 
Futures Experience: Intermediate
Platform: FXCM's Trading Station
Broker/Data: Darwinex, FXCM, Tradingview
Favorite Futures: Forex and CFD's
 
Posts: 114 since Jun 2010
Thanks: 26 given, 105 received

Hi,

Maybe try to keybind buy/sell actions with your different platforms with independent macro keys on gaming mouse/keyboard type ?

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


cheers,

Totantaz

Reply With Quote
The following user says Thank You to DobermanTrading for this post:
 
  #3 (permalink)
Elite Member
Belgium
 
Futures Experience: Advanced
Platform: SaxoTrader
Broker/Data: SaxoBank
Favorite Futures: ESTX
 
Posts: 290 since Dec 2009
Thanks: 242 given, 109 received


With bindings, will there not be a windows focus problem ?

My main platform has PS4/XBOX controller and keyboard trading enabled, NT8 has keyboard too, however two other platform I use support only mouse click, hence I would need to focus on simulated simultaneous mouse clicks really

Maybe someone has wrote scripts with AutoHotkey or else, I am not sure

Reply With Quote
 
  #4 (permalink)
Elite Member
SE Asia / Canada
 
Futures Experience: Intermediate
Platform: FXCM's Trading Station
Broker/Data: Darwinex, FXCM, Tradingview
Favorite Futures: Forex and CFD's
 
Posts: 114 since Jun 2010
Thanks: 26 given, 105 received

hmmm... Does your other platforms support mouse-3 and mouse-4 type buttons ?

i would be scared of using left and right clicks by error hehe

Reply With Quote
 
  #5 (permalink)
Elite Member
Belgium
 
Futures Experience: Advanced
Platform: SaxoTrader
Broker/Data: SaxoBank
Favorite Futures: ESTX
 
Posts: 290 since Dec 2009
Thanks: 242 given, 109 received

Neh ! It is just for the needs of an experiment, will pay attention

Reply With Quote
 
  #6 (permalink)
Flying In A Blue Dream
Jefferson City, Missouri
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: NinjaTrader Brokerage
Favorite Futures: CL ES
 
SatchFan's Avatar
 
Posts: 223 since Mar 2010
Thanks: 327 given, 200 received

I would try using AutoHotKey.

Reply With Quote
 
  #7 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,339 since Dec 2012
Thanks: 11,282 given, 7,092 received


SARdynamite View Post
Under Windows 10 here,

What I would like to achieve, put it simply, by one single mouse click, it would trigger buy/sell market button cliks on different trading platformss (3-4 of them), paneled side by side. Ideally at the same time, with the least delay...

Can you think of the best trick to realise such task ?

thanks a lot

Low level .Net routines and variables allow most things, I use this a lot under NT7/Windows7, I can't see why it would be a problem under later versions of either. Using separate thread(s) is also best to get decent timings and avoid any main NT thread clash or holdup. Google will find you anything that you need if you are happy to do it in C#.

e.g. a simple utility using the Windows 'mouse_event' function and the Cursor variable that I use:

 
Code
		[DllImport("user32.dll")]
		static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData, UIntPtr dwExtraInfo);   
		
		private void ClickPoint(Point pt)
		{
			ClickPoint(pt, 75);
		}
			
		private void ClickPoint(Point pt, int delay)
		{
			if (showClicks) Print("ClickPoint " + pt + "  " + delay);
			
			if (falseClicks) return;

			// set cursor on coords, and press mouse
			
			Cursor.Position = pt;
			Thread.Sleep(25);
						
			mouse_event(0x00000002, 0, 0, 0, UIntPtr.Zero); /// left mouse button down
			mouse_event(0x00000004, 0, 0, 0, UIntPtr.Zero); /// left mouse button up

			if (delay != 0) Thread.Sleep(delay);
		}
Note that points are in screen pixels in a global space across all monitors relative to topleft on the main monitor, +ve and -ve in both directions. 'showClicks' and 'falseClicks' are just diagnostic booleans.

Plenty of ways to handle focus issues either with system routines or calling the click routine on another area of the window(s).

Cheers

Travel Well
Reply With Quote
The following 3 users say Thank You to ratfink for this post:
 
  #8 (permalink)
Elite Member
Belgium
 
Futures Experience: Advanced
Platform: SaxoTrader
Broker/Data: SaxoBank
Favorite Futures: ESTX
 
Posts: 290 since Dec 2009
Thanks: 242 given, 109 received

Interesting. Thanks


SatchFan View Post
I would try using AutoHotKey.

Here is something with AutoIt

 
Code
HotKeySet("{ESC}", "_exit")
HotKeySet("{F10}", "_secondMouse")
$mouse = MouseGetPos()
$dll = DllOpen("user32.dll")
$toggle = 0
#include <Misc.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>
$MiceX2 = GUICreate("MiceX2", 184, 92, 192, 124)
$xDistanceInput = GUICtrlCreateInput("200", 128, 0, 49, 21)
$xInfoLabel = GUICtrlCreateLabel("X Distance from Mouse", 8, 4, 114, 17)
$yInfoLabel = GUICtrlCreateLabel("Y Distance from Mouse", 8, 28, 114, 17)
$yDistanceInput = GUICtrlCreateInput("0", 128, 24, 49, 21)
$hotkeyInfo1 = GUICtrlCreateLabel("Start = F10", 16, 48, 83, 17)
$hotkeyInfo1 = GUICtrlCreateLabel("Stop = F9", 16, 64, 83, 17)
$hotkeyInfo2 = GUICtrlCreateLabel("Exit = ESC", 16, 78, 54, 17)
GUISetState(@SW_SHOW)
Opt("GUIOnEventMode", 1) ; Change to OnEvent mode
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
_load()
While 1
    Sleep(100)
WEnd

Func _secondMouse()
    While 1
        Sleep(25)
        $mouse = MouseGetPos()
        ToolTip("^", $mouse[0] + GUICtrlRead($xDistanceInput) - 10, $mouse[1] + GUICtrlRead($yDistanceInput))
        If _IsPressed("01", $dll) Then _mouseClick()
        If _IsPressed("1B", $dll) Then
            _save()
            Exit
        EndIf
        If _IsPressed("78", $dll) Then
            ToolTip("")
            ExitLoop
        EndIf
    WEnd
EndFunc   ;==>_secondMouse



Func _mouseClick()
    ToolTip("")
    MouseUp("left")
    MouseMove($mouse[0] + GUICtrlRead($xDistanceInput), $mouse[1] + GUICtrlRead($yDistanceInput), 0)
    MouseDown("left")
    Sleep(50)
    MouseUp("left")
    MouseMove($mouse[0], $mouse[1], 0)
    ToolTip("^", $mouse[0] + GUICtrlRead($xDistanceInput), $mouse[1] + GUICtrlRead($yDistanceInput))

EndFunc   ;==>_mouseClick



Func _exit()
    DllClose($dll)
    _save()
    Exit
EndFunc   ;==>_exit

Func _save()
    IniWrite(@ScriptDir & "\MouseX2.ini", "Distance", "X", GUICtrlRead($xDistanceInput, 1))
    IniWrite(@ScriptDir & "\MouseX2.ini", "Distance", "Y", GUICtrlRead($yDistanceInput, 1))
EndFunc   ;==>_save

Func _load()
    GUICtrlSetData($xDistanceInput, IniRead(@ScriptDir & "\MouseX2.ini", "Distance", "X", "200"))
    GUICtrlSetData($yDistanceInput, IniRead(@ScriptDir & "\MouseX2.ini", "Distance", "Y", "0"))
EndFunc   ;==>_load

Reply With Quote
The following user says Thank You to SARdynamite for this post:
 
  #9 (permalink)
Elite Member
Belgium
 
Futures Experience: Advanced
Platform: SaxoTrader
Broker/Data: SaxoBank
Favorite Futures: ESTX
 
Posts: 290 since Dec 2009
Thanks: 242 given, 109 received

Regarding the last AutoIt script, I tried to adapt it to make it a triple cursor/click instead of double
However the cursor markers are blinking and fading out of sight most of the time.

Can anyone familiar with AutoIt give it a quick try (to make it triple cursor/click) ? I'd be grateful!

Reply With Quote

Reply



futures io > > > > one mouse click = multiple programs' actions

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Buy Programs", "Sell Programs" and PREM Big Mike Traders Hideout 7 September 14th, 2016 08:07 PM
mouse click for Buy Stop and Sell stop On NT7 lexxmd NinjaTrader 8 May 15th, 2014 09:46 AM
Buy Market Mouse Click canthony The Elite Circle 1 May 13th, 2014 12:54 PM
Taking responsibility for your own actions liquidcci Psychology and Money Management 14 February 23rd, 2013 05:37 PM
Please vote for - Mouse Click event in MC ejtrader MultiCharts 1 June 2nd, 2011 08:58 PM


All times are GMT -4. The time now is 02:13 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-15 in 0.12 seconds with 20 queries on phoenix via your IP 54.82.56.95