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,047 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

  #51 (permalink)
 greenr 
london/england
 
Experience: Advanced
Platform: Sierra charts, NinjaTrader, VK Trader
Broker: CQG, AMP, VK, Kinetick
Trading: CL/6E/TF/ES
Posts: 952 since Sep 2011
Thanks Given: 562
Thanks Received: 1,280


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

Thank you very much @gever17 you a star :-D

This is the EXACT add on i have been looking for

regards

Ryan

" 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
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #52 (permalink)
paulg
NY
 
Posts: 90 since Sep 2009
Thanks Given: 54
Thanks Received: 23


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

Anyone has an idea about this request, please?

Reply With Quote
  #53 (permalink)
 
kalalex's Avatar
 kalalex 
Up the Ladder, CA
 
Experience: Beginner
Platform: SC
Broker: Optimus & AMP
Trading: ES
Posts: 227 since Mar 2011
Thanks Given: 261
Thanks Received: 151


@monpere

I just found out about this autohotkey program and am testing your script with much success.
I wonder if you could add another function here for cancelling orders.
I tried "c" but it didn't work.
Thanks.




monpere View Post
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
  #54 (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,371


kalalex View Post
@monpere

I just found out about this autohotkey program and am testing your script with much success.
I wonder if you could add another function here for cancelling orders.
I tried "c" but it didn't work.
Thanks.

NT does have an internal Hot Key under Tools->Hot Key Manager->Order Entry->'Cancel Last Order', I assigned 'Ctrl-X' to it, placed a limit buy order, hit 'Ctrl-X' but nothing happens. Maybe I am misunderstanding what that NT hot key is supposed to do. If NT has a key sequence to cancel an order then we can create a AutoHotKey to issue that key sequence.

Check out the thread below, if you are interested in other AutHotKey scripts:


Reply With Quote
Thanked by:
  #55 (permalink)
 
kalalex's Avatar
 kalalex 
Up the Ladder, CA
 
Experience: Beginner
Platform: SC
Broker: Optimus & AMP
Trading: ES
Posts: 227 since Mar 2011
Thanks Given: 261
Thanks Received: 151


monpere View Post
hit 'Ctrl-X' but nothing happens.

@monpere

I found the answer.
We have to enable hotkey for order in control panel > too > general > use order entry hot keys.

Mine works now to cancel and close with ctrl+x, c.

Reply With Quote
Thanked by:
  #56 (permalink)
 streetfightman 
vancouver bc
 
Experience: Beginner
Platform: multicharts
Trading: n225m
Posts: 6 since Feb 2015
Thanks Given: 1
Thanks Received: 1

Hi, I noticed you participated in the autohotkey thread

Your script for NT 7 does not work with NT8

z::
MouseClick, right
Sleep, 100
Send, s
sleep, 50
send, {ENTER}
return
x::
MouseClick, right
Sleep, 100
Send, b
sleep, 50
send, {ENTER}
return


even this autohotkey script does not work for NT8, but it does for NT7

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

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


Do you know why these do not work for NT8 and do you think there is a fix for it?
I really like NT 8 but I am having trouble figuring out a quick order system on the chart.

Any help would be much appreciated.

Reply With Quote
  #57 (permalink)
 emun 
prague, czech republic
 
Experience: Advanced
Platform: NinjaTrader
Trading: NQ
Posts: 165 since May 2012
Thanks Given: 49
Thanks Received: 74


streetfightman View Post
Hi, I noticed you participated in the autohotkey thread

Your script for NT 7 does not work with NT8

z::
MouseClick, right
Sleep, 100
Send, s
sleep, 50
send, {ENTER}
return
x::
MouseClick, right
Sleep, 100
Send, b
sleep, 50
send, {ENTER}
return


even this autohotkey script does not work for NT8, but it does for NT7

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

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


Do you know why these do not work for NT8 and do you think there is a fix for it?
I really like NT 8 but I am having trouble figuring out a quick order system on the chart.

Any help would be much appreciated.

Hello,

I just would like to ask if you were successful with your effort to use Autohotkeys and NT8?

Thank you

Reply With Quote
  #58 (permalink)
 streetfightman 
vancouver bc
 
Experience: Beginner
Platform: multicharts
Trading: n225m
Posts: 6 since Feb 2015
Thanks Given: 1
Thanks Received: 1

yes but I do not use it.
It did work well from what I could think of in terms of putting fast orders on the chart.
it didnt take me that long to figure out maybe 2 weeks with questions from different sources.

I think you can do more than this but I never got up to that level
I wanted to do black bird or is it blood hound for position and trade size management.

this is what I could find.

!1::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

!q::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

!z::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

!a::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

Reply With Quote
  #59 (permalink)
 maxuscz 
Brno, Czech republic
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
Posts: 22 since Dec 2020
Thanks Given: 12
Thanks Received: 6


streetfightman View Post

!1::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

!q::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

!z::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

!a::
MouseClick, right
Sleep, 1
Send, {Down}{Down}{Down}{Down}{Down}{Down}{Down}{Enter}
return

Hi all.
Now I try it with NT 8.0 and it dosnt work.. cose NT change range of command in right click menu
depending on the cursor position - over price or below price.

But for quick order I need one butt to buy and on button to sell
Buy on bottom hase position 7x {Down} and 10x{Down} when I try to buy uptrend.

We need another idea 8-(

Reply With Quote
  #60 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629



maxuscz View Post
Hi all.
Now I try it with NT 8.0 and it dosnt work.. cose NT change range of command in right click menu
depending on the cursor position - over price or below price.

But for quick order I need one butt to buy and on button to sell
Buy on bottom hase position 7x {Down} and 10x{Down} when I try to buy uptrend.

We need another idea 8-(

Check the TestStack.White.
AutoHotKeys works well for Winforms but not for WPF interfaces.
TestStack.White is working well for NT8 (I used to automate replay download) but it's way more complex than AutoHotKeys.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter 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