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


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

  #11 (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


max-td View Post
what does the "sleep 100" do in the script ?


it's a break period1/10 of sec to prevent beeing too fast and type mismatch

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


redratsal View Post
it's a break period1/10 of sec to prevent beeing too fast and type mismatch


You can use this function during important news event see "Fishing for Bargains" episode 2 from Don Miller Episode #2: “Fishing For Bargains” :: Trading After Dark

Reply With Quote
 
  #13 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received


ah very good !
i had issues some times yet with too fast + messed up action .

the one-klick (1-key) solution is the best i think, but one must take care what a solo-key-press triggers if you are not in a chart-window.
i have not much experience wtih this till now, i will see how its the best.

maybe an addition windows-recognition will be good, so the script only runs if it detects that you are in a chartwindow.

or so .....

do you have a "portable version" of AHK ? cause you say : ATH without installing.
BTW : autohotkey is a free tool.

max-td
Reply With Quote
 
  #14 (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


max-td View Post
ah very good !
i had issues some times yet with too fast + messed up action .

the one-klick (1-key) solution is the best i think, but one must take care what a solo-key-press triggers if you are not in a chart-window.
i have not much experience wtih this till now, i will see how its the best.

maybe an addition windows-recognition will be good, so the script only runs if it detects that you are in a chartwindow.

or so .....

do you have a "portable version" of AHK ? cause you say : ATH without installing.
BTW : autohotkey is a free tool.


The problem with window recognition is matching
You can compile (exe) any ahk file and make it run without the free software

Reply With Quote
The following user says Thank You to redratsal for this post:
 
  #15 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received

here what i did + what works for checking if the active window is
a CL window in this example :

!b:: ; >> means type >> Alt + B
IfWinActive, CL,
{
Click up right,
Sleep, 50
Send b
Sleep, 50
send,{Enter}
}
return


^<:: ; >> means type >> ctrl+ <
IfWinActive, CL,
{
Click up right,
Sleep, 50
Send s
Sleep, 50
send, { Enter }
}
return

max-td
Reply With Quote
 
  #16 (permalink)
Market Wizard
whitestone, new york
 
Futures Experience: Intermediate
Platform: ninja trader
 
bobarian's Avatar
 
Posts: 1,509 since Oct 2010
Thanks: 3,359 given, 2,050 received
Forum Reputation: Legendary

order entry cl

thanks to everyone for the great ideas about quick order execution on the cl.i was missing more entries , because it is so fast..in my quest to keep it simple, i thought, when a buy is setting up, place a buy stop way above the market , then left click on the buy stop line on the chart.i use chart trader.now , the order is inactive, as the entry gets close , i drag it down to where i want my entry, and just left click..this order is now pending.

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


max-td View Post
here what i did + what works for checking if the active window is
a CL window in this example :

!b:: ; >> means type >> Alt + B
IfWinActive, CL,
{
Click up right,
Sleep, 50
Send b
Sleep, 50
send,{Enter}
}
return


^<:: ; >> means type >> ctrl+ <
IfWinActive, CL,
{
Click up right,
Sleep, 50
Send s
Sleep, 50
send, { Enter }
}
return

The function Winactive check if the window exists and it is currently active. You need to instruct the script how you want to make the check, this is the function and the parameters possibile:

SetTitleMatchMode, MatchMode (can be 1/2/3)

1: A window's title must start with the specified WinTitle to be a match.
2: A window's title can contain WinTitle anywhere inside it to be a match.
3: A window's title must exactly match WinTitle to be a match.

the default setting is 1


I would not suggest to use winactive because:
1)the name of the windows might change (CL,ES,YM,etc)
2)You might have more than one window on your workspace

Better if you activate=run the script (will work in any zone of your window) or deactivate=exit the script (when you're done with the script) . When the script is active you will notice an H icon on the right tray of the screen. What you can do to close the script is build, within your script, a one key function like this:

c::
exitapp

pushing the c key will exit the script and your keyboard will act normally. You can replace the key c with any other key.

A lot of words to explain, I hope I was clear

Reply With Quote
The following user says Thank You to redratsal for this post:
 
  #18 (permalink)
Elite Member
Frankfurt
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: FGBL 6E B4
 
max-td's Avatar
 
Posts: 1,754 since Jun 2009
Thanks: 2,309 given, 917 received


Quoting 
A lot of words to explain, I hope I was clear


thanks, got it now

max-td
Reply With Quote
 
  #19 (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

A 'pause' option?


redratsal View Post
Better if you activate=run the script (will work in any zone of your window) or deactivate=exit the script (when you're done with the script) . When the script is active you will notice an H icon on the right tray of the screen. What you can do to close the script is build, within your script, a one key function like this:

c::
exitapp

pushing the c key will exit the script and your keyboard will act normally. You can replace the key c with any other key.

A lot of words to explain, I hope I was clear

Hi @ redratsal

Is there a function in AutoHotKey where you can pause the script rather than close it?

I noticed if you right click on the 'H' icon in the Sys tray it has option to pause script, so I wondered if something like:

p::
pauseapp

Would pause script rather than exit it?

Thanks

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

Where did you find the shortcuts



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

Hello @ redratsal

Where did you find the shortcut abbreviations for NT that told you 's' and 'b' when used with right mouse click would place sell and buy orders.

I mean the use of 's' and 'b' for sell and buy is logical, but how did you know this shortcut even existed - and are there other similar shortcuts ie is there some listing within the NT help files (I am not referring to the Hot Key Manager)?

Thanks

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:54 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-11 in 0.13 seconds with 20 queries on phoenix via your IP 54.82.79.109