ninja & AutoHotKey for order entrys - NinjaTrader | futures io social day trading
futures io futures trading


ninja & AutoHotKey for order entrys
Updated: Views / Replies:13,987 / 55
Created: by bobarian Attachments:1

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
 1  
 
Thread Tools Search this Thread
 

ninja & AutoHotKey for order entrys

  #41 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


redratsal View Post
I have been rethinking the possibility to switch my NT workspaces in a faster way. Since I didn't like to assign a key sequence on my keyboard via autohotkey, as it could interfere with non trading activities, for example while I am writing a post via futures.io (formerly BMT) I could hit an AHK key and launch the function without wanting it. I also didn't like the idea to pause and restart the AHK everytime. I found a fast and easy solution by creating single functions via AHK and installing them on the windows tasks bar. As AHK assigns always the same icon, I created personalized icons with the name of my workspace in order to better visualize wich workspace I want to open. I applied the icons to each function via the icon changer function of AHK (C:\Program Files (x86)\AutoHotkey\Compiler\ahk2.exe).

Instead of using the sequential shift+f3 NT function, which might be long if working with several workspaces, this method is fast and direct; all I have to do is click on the respective icon and the workspace will be opened within the blink of an eye.

In the attached video a brief demonstration how to use the function:



Find below the AHK script code for each function (the function replactes the sequence of keys as with the mouse; in the control center alt+f+w+ the initial letter of the workspace)

WinWait, Control Center ,
IfWinNotActive, Control Center , , WinActivate, Control Center ,
WinWaitActive, Control Center ,
Sleep, 100
Send, {ALTDOWN}f{ALTUP}w5

Note:

The first letter of each workspace name must be different

For the icon builder you can find many free applications on the web, I used IcoFx2.0

The CPU usage with AHK is irrelevant, as the functions are closed once executed.

Very cool. In reference to hotkeys executing in undesired windows. Here's how I determine if the active window is a Ninjtrader Chart:

WinGetTitle, title, A ;### Get Active Window title
if ( RegExMatch(title, ".*?\(.*?\).*?\d+/\d+/\d+") ) {
MsgBox This is an NT Chart
;### Execute chart window code
}

Reply With Quote
The following 2 users say Thank You to monpere for this post:
 
  #42 (permalink)
Trading for Fun
NY
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 89 since Sep 2009
Thanks: 53 given, 20 received


paulg View Post
In NT, is there any way to click to place a limit order at the same price with 3 clicks, e.g. 1+1+1 , instead of using the context menu to change the lot size (and eventually the queue since you're increasing the order size in a FIFO engine)?

Anyone with an idea about this simple task?

Reply With Quote
 
  #43 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received



paulg View Post
Anyone with an idea about this simple task?

Not sure I understand, you want to place a limit order at the current market price, or a limit order at the price your crosshair is, or you want to change the lot size of an existing limit order?

Reply With Quote
 
  #44 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,067 received


paulg View Post
Anyone with an idea about this simple task?


If your mouse has customizable buttons you can replicate the nt command:

rightclick+s+enter = sell limit
rightclick+b+enter = buy limit


all you have to do than is point your mouse on the chart at the price you want to put the order and click it.


Reply With Quote
The following 2 users say Thank You to redratsal for this post:
 
  #45 (permalink)
Elite Member
Bala, PA, USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus, IB
Favorite Futures: SPY, Oil, Euro
 
monpere's Avatar
 
Posts: 1,858 since Jul 2010
Thanks: 300 given, 3,276 received


redratsal View Post
If your mouse has customizable buttons you can replicate the nt command:

rightclick+s+enter = sell limit
rightclick+b+enter = buy limit


all you have to do than is point your mouse on the chart at the price you want to put the order and click it.

Also see post #25, for another option with AutoHotKey, if you have a simple mouse. If your non-programmable mouse has more then 3 buttons, you can also use the software to re-program the additional keys to perform these entry functions with once mouse click, and leave the main buttons for chart navigation.

Reply With Quote
 
  #46 (permalink)
Trading for Fun
NY
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 89 since Sep 2009
Thanks: 53 given, 20 received


redratsal View Post
If your mouse has customizable buttons you can replicate the nt command:

rightclick+s+enter = sell limit
rightclick+b+enter = buy limit


all you have to do than is point your mouse on the chart at the price you want to put the order and click it.

Thanks but I meant 1+1+1 at the same price and on superdom not on charts.

Reply With Quote
 
  #47 (permalink)
Trading for Fun
NY
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 89 since Sep 2009
Thanks: 53 given, 20 received


monpere View Post
Not sure I understand, you want to place a limit order at the current market price, or a limit order at the price your crosshair is, or you want to change the lot size of an existing limit order?

I simply want to place 3 limit orders of 1 lot each at the same price at my crosshair (effectively 3 limit orders that should not go at mkt) without using the 'change lot' feature; just a simple triple click at the same price. At least with standard NT setting you are asked to change the size of the order with a context menu and not adding a further 1 lot order (without asking further order size or change). Hope this clarifies a bit.

Reply With Quote
 
  #48 (permalink)
Just a boy
Auckland, New Zealand
 
Futures Experience: Beginner
Platform: Sierra Chart
Broker/Data: AMP/CQG
Favorite Futures: Whatever moves in my timezone
 
Posts: 1,803 since Sep 2009
Thanks: 3,165 given, 1,372 received

Buy Stop??


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

Hi @redratsal

Buy Stop Limit = right click bs + enter, would it not?

I can get Sell Stop Limit to work with right click ss + enter, but with Buy Stop Limit the press of the 'b' key takes you to 'Buy Stop' and if you then press 's' it drops down the menu to 'Show Data Box' as that also starts with 's'.

Any ideas?

PS: I think I solved it - Buy Stop Limit = right click bb + enter

Thanks


Last edited by steve2222; January 11th, 2012 at 04:10 AM. Reason: Solution
Reply With Quote
 
  #49 (permalink)
Elite Member
london/england
 
Futures Experience: Advanced
Platform: Sierra charts, NinjaTrader, VK Trader
Broker/Data: CQG, AMP, VK, Kinetick
Favorite Futures: CL/6E/TF/ES
 
Posts: 952 since Sep 2011
Thanks: 562 given, 1,267 received


steve2222 View Post
Hi @redratsal

Buy Stop Limit = right click bs + enter, would it not?

I can get Sell Stop Limit to work with right click ss + enter, but with Buy Stop Limit the press of the 'b' key takes you to 'Buy Stop' and if you then press 's' it drops down the menu to 'Show Data Box' as that also starts with 's'.

Any ideas?

PS: I think I solved it - Buy Stop Limit = right click bb + enter

Thanks

Does any one know how to program a hot key to plot executions or not?

:-D

thanks

" I will follow my rules, I will take my stops, I will be disciplined and i will work with the market....NOT AGAINST IT! Professional mind control is the key"
Reply With Quote
 
  #50 (permalink)
Elite Member
Cheyenne,Wyoming...USA
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Mirus Futures/Zen-Fire
Favorite Futures: NQ, YM
 
Posts: 69 since Nov 2010
Thanks: 329 given, 54 received

Close....Use Toggle Trades



greenr View Post
Does any one know how to program a hot key to plot executions or not?

:-D

thanks

greenr,

In the indicator downloads there is a very nice indy that puts a button on your toolbar and and allows you to turn your executions on and off. It is called Toggle Trades. I think it will be just what you are looking for.

gever17

Reply With Quote

Reply



futures io > > > > ninja & AutoHotKey for order entrys

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
ChartTrader & Order Button size - width jsengxx NinjaTrader Programming 66 February 25th, 2014 12:54 PM
Ninja Stop Order without Middle Mouse? daedalus NinjaTrader 3 June 7th, 2013 06:07 AM
Order and Position Tracker - Open P&L ccfeldt MultiCharts 13 July 6th, 2011 09:22 AM
Order Flow & The Balance of Trade - Then & Now T1P1 Traders Hideout 11 May 24th, 2011 09:33 PM
Liquidity & Order Fills DarrenH Traders Hideout 4 January 5th, 2011 08:09 AM


All times are GMT -4. The time now is 05:05 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-11 in 0.14 seconds with 20 queries on phoenix via your IP 54.226.132.197