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 monpere with 0.9 thanks per post
    3. looks_3 max-td with 0.6 thanks per post
    4. looks_4 bobarian with 0.5 thanks per post
    1. trending_up 32,184 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

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


steve2222 View Post
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

Hi Steve,


#p::Pause ; Pressing Win+P once will pause the script. Pressing it again will unpause

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #22 (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


steve2222 View Post
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

Hi Steve,

It's rather a window shortcut, just right click and push the corresponding letter of the list (if there are 2 items with same letters push 2 times and so on)

if you want to refer me you'll have to write it like this @steve2222

Have a nice Easter Day

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #23 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,372



redratsal View Post
Hi Steve,

It's rather a window shortcut, just right click and push the corresponding letter of the list (if there are 2 items with same letters push 2 times and so on)

if you want to refer me you'll have to write it like this @ steve2222

Have a nice Easter Day

AutoHotKey is designed to stay running, you should not need to run the script more then once, and you should not need to run a different script for different hotkeys. I start my autohotkey script in the morning after I boot my machine, and it stays running until I turn off the machine at night.

Here is my entire autohotkey script, containing all my hot keys for NT, and for other apps, using normal keyboard keys, extended keyboard keys, mouse wheel, and extended mouse buttons for my 5 button mouse.


Reply With Quote
  #24 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


monpere View Post
AutoHotKey is designed to stay running, you should not need to run the script more then once, and you should not need to run a different script for different hotkeys. I start my autohotkey script in the morning after I boot my machine, and it stays running until I turn off the machine at night.

Here is my entire autohotkey script, containing all my hot keys for NT, and for other apps, using normal keyboard keys, extended keyboard keys, mouse wheel, and extended mouse buttons for my 5 button mouse.


Could you simulate a right-click of the mouse on a chart to put an order where your cursor is with this hotkey application ?

Reply With Quote
  #25 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,372


trendisyourfriend View Post
Could you simulate a right-click of the mouse on a chart to put an order where your cursor is with this hotkey application ?

Yes. You can move your cross hair to the price you want on the chart and hit 'Ctrl-b' to buy or 'Ctrl-s' to sell with the following script commands:

^b::
Send {Click Up Right }{b}{Enter}
return

^s::
Send {Click Up Right }{s}{Enter}
return

Reply With Quote
Thanked by:
  #26 (permalink)
rbxx
Newmarket
 
Posts: 8 since Aug 2011
Thanks Given: 2
Thanks Received: 0

Hi there, I saw your message and had a question. I know you programmed the Z as a sell limit...is the same as a middle mouse button action or is that a sell stop. I want to use your script however i`m not really good at understanding scripts etc. What i`m looking for is one button for a buy stop and one for sell stop. The way I want to use this is for example i want to go for a buy, i want to be able to click the letter X and then it would take me into the trade at the current price or one tick above. Similiarly, I would like to click the letter Z (sell stop) when taking a sell and entering the trade at the current running price or one tick below. I`ve tried asking this question to many people but have not been successful with a solution. If you could help that would be greatly appreciated!

thank you,
rbxx


redratsal View Post
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.


Reply With Quote
  #27 (permalink)
rbxx
Newmarket
 
Posts: 8 since Aug 2011
Thanks Given: 2
Thanks Received: 0


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,
Do you have a script that I could use for the buy stop you mentioned above? Would you have one for a sell stop as well? Any help would be much appreciated.

Thanks,
Rbxx

Reply With Quote
  #28 (permalink)
rbxx
Newmarket
 
Posts: 8 since Aug 2011
Thanks Given: 2
Thanks Received: 0


monpere View Post
AutoHotKey is designed to stay running, you should not need to run the script more then once, and you should not need to run a different script for different hotkeys. I start my autohotkey script in the morning after I boot my machine, and it stays running until I turn off the machine at night.

Here is my entire autohotkey script, containing all my hot keys for NT, and for other apps, using normal keyboard keys, extended keyboard keys, mouse wheel, and extended mouse buttons for my 5 button mouse.


Hi Monpere,

I clicked on the link above but it seems that I'm not a elite member. Would you have a hotkey on the keyboard for a buy stop market order and a sell stop market order? I'm not looking for a limit order as I want to go straight into the trade at the current running price or one tick above if it's a buy or one tick below if its a sell. Any help would be much appreciated!
rbxx

Reply With Quote
  #29 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,372


rbxx View Post
Hi Monpere,

I clicked on the link above but it seems that I'm not a elite member. Would you have a hotkey on the keyboard for a buy stop market order and a sell stop market order? I'm not looking for a limit order as I want to go straight into the trade at the current running price or one tick above if it's a buy or one tick below if its a sell. Any help would be much appreciated!
rbxx

It should be pretty easy to create hotkeys to do "Buy Ask" and "Sell Bid". Would these work fro you?

Reply With Quote
  #30 (permalink)
rbxx
Newmarket
 
Posts: 8 since Aug 2011
Thanks Given: 2
Thanks Received: 0



monpere View Post
It should be pretty easy to create hotkeys to do "Buy Ask" and "Sell Bid". Would these work fro you?

A buy ask or a sell Bid would work as long as they are a buy stop market or sell stop market order. Usually a buy ask or sell bid relates to a limit order?

Reply With Quote




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