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


ninja & AutoHotKey for order entrys
Updated: Views / Replies:14,005 / 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

  #31 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker/Data: Stage 5 trading/AMP/CQG
Favorite Futures: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 3,697 since Oct 2009
Thanks: 3,041 given, 4,496 received

script to select a template via a key combination

With the free autohotkey i'd like to create five key combinations to select my five opened templates.

Currently, i have one global template named "6E_ES_NQ_TF" to monitor four symbols but i also have in the background a more detailed template for each of them named respectively "6E", "ES", "NQ" and "TF".

What would the script look like if i wanted to select the template named "6E" via a key combination such as alt+1 ? Do i simply need to invoke a hotkey command to open the menu File>Workspaces>6E of the control center window ?

Reply With Quote
 
  #32 (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


trendisyourfriend View Post
With the free autohotkey i'd like to create five key combinations to select my five opened templates.

Currently, i have one global template named "6E_ES_NQ_TF" to monitor four symbols but i also have in the background a more detailed template for each of them named respectively "6E", "ES", "NQ" and "TF".

What would the script look like if i wanted to select the template named "6E" via a key combination such as alt+1 ? Do i simply need to invoke a hotkey command to open the menu File>Workspaces>6E of the control center window ?

If the workspaces are already opened you can use the NT short cut shift+f3 to switch them.

Reply With Quote
 
  #33 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker/Data: Stage 5 trading/AMP/CQG
Favorite Futures: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 3,697 since Oct 2009
Thanks: 3,041 given, 4,496 received



redratsal View Post
If the workspaces are already opened you can use the NT short cut shift+f3 to switch them.

I know but this is not working quickly enough and beside if you do that at some point it stops at the control center. So i'd like to get something more solid. But thanks anyway, that's a good try ;-)

P.S. your avatar makes me think about these charts we often see full of lines. Can't really decide which level to take into consideration.

Reply With Quote
 
  #34 (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


trendisyourfriend View Post
I know but this is not working quickly enough and beside if you do that at some point it stops at the control center. So i'd like to get something more solid. But thanks anyway, that's a good try ;-)

P.S. your avatar makes me think about these charts we often see full of lines. Can't really decide which level to take into consideration.

Shift-F3 cycles through all the open workspaces. If you see the control center in the cycle, you may have an open workspace with no charts. With AutoHotkey, you could activate the Contol Center window, and send the keys ALT, F, W, and then the first letter of the open workspace you want, then send ENTER. This would navigate to your desired workspace via the file menu.

Reply With Quote
 
  #35 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker/Data: Stage 5 trading/AMP/CQG
Favorite Futures: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 3,697 since Oct 2009
Thanks: 3,041 given, 4,496 received


monpere View Post
Shift-F3 cycles through all the open workspaces. If you see the control center in the cycle, you may have an open workspace with no charts. With AutoHotkey, you could activate the Contol Center window, and send the keys ALT, F, W, and then the first letter of the open workspace you want, then send ENTER. This would navigate to your desired workspace via the file menu.

That's true i had an untitled workspace with no chart. Thanks for the tip but what is the name of the control center window, is it just that "Control Center" ? i ask this as i also see the name of the current workspace after it.

Reply With Quote
 
  #36 (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

Don't expect to be so much faster with autohotkey, you will assign a key for each workspace you will need to find the right keys on the keyboard, whereas with shift+f3 you hit sequentially until you find what you're looking for.

Reply With Quote
The following user says Thank You to redratsal for this post:
 
  #37 (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


trendisyourfriend View Post
That's true i had an untitled workspace with no chart. Thanks for the tip but what is the name of the control center window, is it just that "Control Center" ? i ask this as i also see the name of the current workspace after it.

If you have 3 workspaces '6E' and 'ES', 'TF' then you could the following script to access each one by using Control-1, Control-2, and Control-3, just add more entries for additional workspaces:

;###
;### Start Of Script
;###
^1::
IfWinExist, Control Center
{
WinActivate
Send !{f}{w}{6}{ENTER}
}
return
^2::
IfWinExist, Control Center
{
WinActivate
Send !{f}{w}{e}{ENTER}
}
return
^3::
IfWinExist, Control Center
{
WinActivate
Send !{f}{w}{t}{ENTER}
}
return ;
;###
;### End Of Script
;###

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

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)?

Reply With Quote
 
  #39 (permalink)
 Vendor: mytraderadvisor.com 
The Valley ANGUILLA Caribbean
 
Futures Experience: Advanced
Platform: TWS,cAlgo,MT4,Ninjatrader
Broker/Data: IB, ICMarkets
Favorite Futures: ES, CL, 6E
 
MyTraderAdvisor's Avatar
 
Posts: 74 since Apr 2010
Thanks: 16 given, 31 received

Could it be possible to write a sample strategy with 2 hotkeys inputs ? like CTRL+SHIFT+B for buy, and S for sale. So we could manage position with the strategy. Would be great for for scalping and news.
Thanks in advance

I believe only in profits, not in prophets.
Reply With Quote
 
  #40 (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

Changing Workspaces


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.

Reply With Quote
The following 2 users say Thank You to redratsal for this post:

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)

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
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 02:41 AM.

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-14 in 0.13 seconds with 20 queries on phoenix via your IP 54.221.76.68