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
Logic for "N Bars" Indicator in Strategy Builder.
Collapse
X
-
Logic for "N Bars" Indicator in Strategy Builder.
Having a user input for "N Bars". How can I get logic to work correctly for the N Bar condition to be true in the strategy builder?Tags: None
-
Hello jonbennett,
Thanks for your post.
You can assign the user input to the Bar count property. When designing logic, we suggest using prints to observe the output and so you can check your logic and see how you can use various items to create new logic.
Using Prints in the Strategy Builder - https://drive.google.com/file/d/1mTq...w?usp=drivesdk
We look forward to assisting.JimNinjaTrader Customer Service
-
Comment
-
So. I figured out that "1" = true. But now my issue is that I am using it with other conditions and minimum Nbars has to be "2", which is a problem because I want to have the option of just "1" bar up...
Comment
-
Hello jonbennet,
If you use prints to view the indicator output or add the indicator to a chart, you can see what the expected output is and how you can interact with that indicator in the Strategy Builder.
You may change the BraCount property, but when you are creating a condition, you should check Misc > Numeric Value to check if the Indicator plot value equals a certain level.
Please see the attached screenshot where indicators are added to a chart with a BarCount of 2 and a BarCount of 3. As we can see, the plot value is 1, which can be checked with Misc > Numeric Value in the Strategy Builder.
We look forward to assisting.JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by proptradingshop, 03-21-2024, 09:50 AM
|
5 responses
25 views
0 likes
|
Last Post Today, 05:17 AM | ||
Started by MaupinFinche, Today, 05:08 AM
|
0 responses
2 views
0 likes
|
Last Post
by MaupinFinche
Today, 05:08 AM
|
||
Started by Enkidu, Yesterday, 06:40 AM
|
9 responses
35 views
0 likes
|
Last Post
by Enkidu
Yesterday, 01:11 PM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
12 responses
307 views
0 likes
|
Last Post
by z.franck
Today, 04:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
32 responses
268 views
0 likes
|
Last Post
by f.saeidi
Yesterday, 06:49 AM
|
Comment