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
Opening Bell indicator NT8 - IsFirstBarOfSession not working?
Collapse
X
-
Hello darthy,
This could be created for NinjaTrader 7.
However, the attributes for public inputs are different for NinjaTrader 7, and unfortunately, not documented.
The Bollinger indicator NumStdDev property has a good example of what the attributes for NT7 look like on lines 78 through 80.
Further, if you want just the time without the date, a TimeSpan can be used instead of a DateTIme.
Below is a link to a forum post with sample code.
For porting scripts, below is a link to a forum post with tips.
That said please note, NinjaTrader 7 is no longer in active development and we are no longer considering new feature requests or changes for NinjaTrader 7. Main development has shifted to our flagship platform NinjaTrader 8. This does mean updates from brokerages, data feeds, or operating systems that require an update in NinjaTrader will not be implemented in NinjaTrader 7 and may cause an interruption in service.
While there is not a set ETA for the complete discontinuation of NinjaTrader 7, we highly recommend transitioning to NinjaTrader 8 as soon as possible before NinjaTrader 7 reaches its end of life to prevent interruption of service.
Click below to download NinjaTrader 8.
Chelsea B.NinjaTrader Customer Service
Comment
-
Hello,
Been using this indicator PlayAlertWhenTimeIsUserInputtedTime.zip with the opening bell file. However since updating to the latest version of NinjaTrader. There is no longer an alert tick box option inside of the Properties of the PlayAlertWhenTimeIsUserInputtedTime.zip indicator.
Also all the original NinjaTrader alerts within the > Program Files (x86) > NinjaTrader 8 > sounds folder are all missing. Only the custom sounds are available.
Can you please advice?
- Likes 1
Comment
-
Hello Chingchongforum,
Welcome to the NinjaTrader forums!
The installation folder for 8.0.27.0 has changed to C:\Program Files\NinjaTrader 8\.
From the help guide release notes:
"Attention 32-Bit Users:
64-bit has become the standard for applications in the Windows environment
As we continue to modernize our desktop platform and clearing up performance related confusions around 32 vs 64 bit NinjaTrader Desktop usage
NinjaTrader 8.0.27.0 will be solely a 64-bit Windows application, this means the installation directory will change from C:\Program Files (x86) to C:\Program Files"
If you are referring to the example on post # 7, this only has one property in the code 'TimeTogglerForUI' which is a DateTime object.Chelsea B.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_ChelseaB View PostHello Chingchongforum,
Welcome to the NinjaTrader forums!
The installation folder for 8.0.27.0 has changed to C:\Program Files\NinjaTrader 8\.
From the help guide release notes:
"Attention 32-Bit Users:
64-bit has become the standard for applications in the Windows environment
As we continue to modernize our desktop platform and clearing up performance related confusions around 32 vs 64 bit NinjaTrader Desktop usage
NinjaTrader 8.0.27.0 will be solely a 64-bit Windows application, this means the installation directory will change from C:\Program Files (x86) to C:\Program Files"
If you are referring to the example on post # 7, this only has one property in the code 'TimeTogglerForUI' which is a DateTime object.
I'm still stuck with the PlayAlertWhenTimeIsUserInputtedTime indictor not playing the Openingbell.wav sound since updating. It was fine before. Can you please assist?
Comment
-
Hello Chingchongforum,
Use Print() to understand the behavior and debug.
Print the time of the bar, print the value of the State property (so we can ensure the bar has closed in real-time), and all values used in the condition.
Are you seeing the condition has evaluated as true in real-time?
Below is a link to a forum post that demonstrates using prints to understand behavior.
Chelsea B.NinjaTrader Customer Service
Comment
-
Hello tomturn,
Welcome to the NinjaTrader forums!
The OpeningBellAlert indicator posted by in post # 8 is working on my end without issue.
Below is a link to a video of a test of this
https://drive.google.com/file/d/1n1I...usp=share_link
This is only the opening bell which is found when Bars.IsFirstBarOfSession and IsFIrstTickOfBar are both true.
The close of a session would be a bit more complex, as OnBarUpdate() would not trigger until the open of the next session when the end session bar closes. Instead, it would be possible to check the time of each MarketUpdate to be after the .ActualSessionEnd when using a sessionIterator in OnMarketData().
https://ninjatrader.com/support/help...sessionend.htm
https://ninjatrader.com/support/help...marketdata.htm
If you would like to learn how to create NinjaScripts, I would first recommend learning C#, either through tutorials or from a formal educator such as a boot camp, then watch the training videos for the Stategy Builder and NinjaScript Editor, then learn from open source examples and the help guide.
Below is a link to a forum post with helpful resources on getting started with C# and NinjaScript.
https://ninjatrader.com/support/foru...pts#post786040
We are happy to answer any questions you may have about NinjaScript if you decide to code this yourself. We are also happy to assist with finding resources in our help guide as well as simple examples, and we are happy to assist with guiding you through the debugging process to assist you with understanding unexpected behavior.
You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment