NexusFi: Find Your Edge


Home Menu

 





ninja & AutoHotKey for order entrys


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one redratsal with 13 posts (21 thanks)
    2. looks_two monpere with 9 posts (8 thanks)
    3. looks_3 max-td with 7 posts (4 thanks)
    4. looks_4 paulg with 5 posts (0 thanks)
      Best Posters
    1. looks_one redratsal with 1.6 thanks per post
    2. looks_two sam028 with 1 thanks per post
    3. looks_3 monpere with 0.9 thanks per post
    4. looks_4 max-td with 0.6 thanks per post
    1. trending_up 32,082 views
    2. thumb_up 38 thanks given
    3. group 20 followers
    1. forum 60 posts
    2. attach_file 1 attachments




 
Search this Thread

ninja & AutoHotKey for order entrys

  #1 (permalink)
 
bobarian's Avatar
 bobarian 
whitestone, new york
 
Experience: Intermediate
Platform: ninja trader
Posts: 1,995 since Oct 2010
Thanks Given: 5,258
Thanks Received: 3,120

using ninja, and i amlooking to create a hot key to entry
what i would like to do is, right click on the price, and instead of moving the mouse to left click a buy or sell stop, i would like to hit a button..crude is just too fast

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
32 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


yep, thats a good idea, but not available in NT i think.

this mouse-context-menue is just too big for fast usage in trading-action.

max-td
Reply With Quote
  #4 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


bobarian View Post
using ninja, and i amlooking to create a hot key to entry
what i would like to do is, right click on the price, and instead of moving the mouse to left click a buy or sell stop, i would like to hit a button..crude is just too fast


Those functions are not customizable with the Hot Key Manager, what you can do is use your keyboard:

Sell Limit= right click s + enter
Buy Stop= right click b + enter
Buy Stop Limit= right click ss + enter

It's not one button it's 2 but once you get confident it's faster

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #5 (permalink)
 
TempletonPeck's Avatar
 TempletonPeck 
Germany
 
Experience: Beginner
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Posts: 200 since Feb 2010
Thanks Given: 1,138
Thanks Received: 202

I always take my entries in the DOM. If you disable "Confirm order placement" you can enter trades with a single click.

Reply With Quote
Thanked by:
  #6 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


redratsal View Post
Those functions are not customizable with the Hot Key Manager, what you can do is use your keyboard:

Sell Limit= right click s + enter
Buy Stop= right click b + enter
Buy Stop Limit= right click ss + enter

It's not one button it's 2 but once you get confident it's faster

nice trick , but a bit too much to push ...

some platforms have kind of a button-ladder near the current price, directly on the chart, to klick on + enter orders intuitivly. kind of a dom on the chart.
that can be handled very fast.

maybe a new coding - project for timmyB

max-td
Reply With Quote
Thanked by:
  #7 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


max-td View Post
nice trick , but a bit too much to push ...

some platforms have kind of a button-ladder near the current price, directly on the chart, to klick on + enter orders intuitivly. kind of a dom on the chart.
that can be handled very fast.

maybe a new coding - project for timmyB

waiting for timmyB, you can also use AutoHotkey - Free Mouse and Keyboard Macro Program with Hotkeys and AutoText and configure a one button procedure

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #8 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


Quoting 
Sell Limit= right click s + enter
Buy Stop= right click b + enter
Buy Stop Limit= right click ss + enter

thanX redratsal for pushing in that direction !

here is a little script as example how to do this with AutoHotKey :

 
Code
                            
!b::   ; >>  Alt   !B:: 


Click up right,
 
Send   b  Enter }

return 


^<::   ; >>  
strg   ^<::  

Click up right,
 
Send   s  Enter }

return 
This script example uses the following key-combination :

ctrl + < for Selling orders
alt + b for buying orders


if pressing : ctrl plus <
it sends these actions to Ninja :
- right mouseclick plus s plus ENTER

so it checks for your mouseposition at the moment you press the ctrl+<
and at this price-value it sends the sell-order out.

it has to be tested if these keys make sense
in case of ergonomics, its just a first example.

autoHotKey is really fast and worth to have a look at a bit deeper if its
really stable for using this in live trading, but i guess it is

maybe @monpere has some additional tips what to care for if working whith autohotkey. i think he also played with it yet.

here a small "action-video" :
2011-02-18_0810 - maximax07's library

you see, whereever you put your mouse and press the trigger-keys, the orders are sended out imediatly without having to do anything manualy.

-

max-td
Reply With Quote
Thanked by:
  #9 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090

Find attached the script with autohotkey:

z=sell limit
x=buy stop

I chose z and x they're easy to reach, if you want to change them just edit the file and replace z and x with other keys.
If you want the exe file without installing autohotkey just pm me. To disactivate the keys you will have to exit the application.

Attached Files
Elite Membership required to download: Orders.zip
Visit my NexusFi Trade Journal Reply With Quote
  #10 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


what does the "sleep 100" do in the script ?

max-td
Reply With Quote
Thanked by:




Last Updated on December 1, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts