public void OnKeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == Key.LeftCtrl) { ctrl = true; } if (e.Key == Key.B) { one = true; } if (ctrl && one) { Print("TimeFrame - 1M"); // TImeFrame Logic } }
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Command to change the time interval from under the hotkey
Collapse
X
-
Command to change the time interval from under the hotkey
There is a task to change the time interval from under the hotkey, the hotkey code is below, which command and the correct syntax can be used for this task
Code:Tags: None
-
I solved the problem myself.
However, there was a question about the operation of the button itself (hotkey)
The fact is that hot keys work ONLY if First mouse button is pressed on the chart itself, and then the key will work 1 time, for the second time you need to press the left mouse button again anywhere on the chart, then the combination of buttons will work again,
and so is constant.
Hotkeys do not work without clicking the mouse on the chart First.
What could be the problem?
Comment
-
Hello memonolog,
Changing data series information from code is officially not supported by NinjaTrader and is intentionally not documented.
However, it is possible to do. The RolloverIndications indicator uses this to send the next expiry to the instrument overlay selector.
Shows a button on the chart to roll the expiry to the next available contract month. Option to hide button until a number of days before or on roll date. Another option to confirm by opening the instrument overlay selector or automatically rollover without confirmation. (Update June 27th, 2019 – Added an option to show […]Chelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello memonolog,
Changing data series information from code is officially not supported by NinjaTrader and is intentionally not documented.
However, it is possible to do. The RolloverIndications indicator uses this to send the next expiry to the instrument overlay selector.
https://ninjatraderecosystem.com/use...indications-2/
However, there was a question about the operation of the button itself (hotkey)
The fact is that hot keys work ONLY if First mouse button is pressed on the chart itself, and then the key will work 1 time, for the second time you need to press the left mouse button again anywhere on the chart, then the combination of buttons will work again,
and so is constant.
Hotkeys do not work without clicking the mouse on the chart First.
What could be the problem?
Comment
-
It would be great to be able to assign custom hotkeys to time frames, you are left out if you use Heiken Ashi or Renko charts. Thanks for considering it! Even if it works with normal candles, entering 5M or 1D in the chart is a little bit tedious and counter-intuitive I find.
Comment
-
Hello RT001,
We have added your suggestion to our list of requested Hot Key enhancements. These enhancements are tracked under the internal ticket ID SFT-2386. This is an internal number, but for anyone else wishing to have their interest tracked, please let our support staff know that you would like a vote added specifically for changing BarsTypes and time frames.
Feature Request Disclaimer
We receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing. As such we cannot offer an ETA or promise of fulfillment.
When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number will be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Aviram Y, Today, 05:29 AM
|
0 responses
1 view
0 likes
|
Last Post
by Aviram Y
Today, 05:29 AM
|
||
Started by quantismo, 04-17-2024, 05:13 PM
|
3 responses
25 views
0 likes
|
Last Post Today, 05:23 AM | ||
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
7 responses
34 views
0 likes
|
Last Post Today, 05:15 AM | ||
Started by cls71, Today, 04:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by cls71
Today, 04:45 AM
|
||
Started by mjairg, 07-20-2023, 11:57 PM
|
3 responses
216 views
1 like
|
Last Post
by PaulMohn
Today, 04:22 AM
|
Comment