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
Strategy builder - Bars ago ( within 25-75 bars)?
Collapse
X
-
Hello Wolf1,
Thank you for your note.
The answer is "Partially". The "Cross Above" and "Cross Below" options in the conditions will allow you to specify a Lookback Period. However, in the Strategy Builder you're a little restricted with that, in that the lookback period always starts with the current bar and goes back from there. So, if you specify a Lookback of 80, it would go back through the past 80 bars. However, you can't specify a range that starts on another bar than the current bar, at least, not with the Builder. You would have to unlock the strategy and manually code that logic.
Here's a link to our help guide that goes over setting up cross conditions:
Please let us know if we may be of further assistance to you.
-
Strategy builder - Bars ago ( within 25-75 bars)?
Hi Everyone,
Does anyone know how to add a condition to the strategy builder involving asking to look at a certain range of bars ago? I see you can ask to something like.. ..set an alert when The double stochastic value 50 crosses above 99, 20 bars ago..... But how do we ask for an alert to go off for ...The double stochastic value 50 crosses above 99 within 20-80 bars ago? Can strategy builder do this? If I knew how to code I would do that however I don't
Thanks everyone!Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rocketman7, Today, 01:00 AM
|
0 responses
1 view
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
27 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
||
Started by wzgy0920, 04-23-2024, 09:53 PM
|
2 responses
74 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:29 PM
|
||
Started by Kensonprib, 04-28-2021, 10:11 AM
|
5 responses
193 views
0 likes
|
Last Post
by Hasadafa
Yesterday, 10:19 PM
|
Leave a comment: