• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy builder - Bars ago ( within 25-75 bars)?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #2
    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:

    https://ninjatrader.com/support/help...sOverCondition

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Johnny Santiago, 10-11-2019, 08:21 AM
    7 responses
    109 views
    0 likes
    Last Post FMtrader  
    Started by HiddenPhilosopher, Today, 04:37 AM
    0 responses
    7 views
    0 likes
    Last Post HiddenPhilosopher  
    Started by Gerik, Today, 04:09 AM
    0 responses
    3 views
    0 likes
    Last Post Gerik
    by Gerik
     
    Started by dsxfcv, Today, 02:02 AM
    0 responses
    4 views
    0 likes
    Last Post dsxfcv
    by dsxfcv
     
    Started by FMtrader, Today, 01:57 AM
    0 responses
    10 views
    0 likes
    Last Post FMtrader  
    Working...
    X