Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rising() condition

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

    Rising() condition

    I found that the definition for a rising condition in the wizard strategy builder is:

    Checks for a rising condition which is true when the current value is greater than the value of 1 bar ago.

    Is there any way to make this x bars ago, such as 2 or 3 bars ago? It just seems very restrictive only being able to do the difference between the current bar and prior bar. The rising condition would be so much more useful on some of my indicators if I could see if the current bar value is rising from 2 or 3 bars back rather than 1.

    Is this possible?

    #2
    cmspruill, this is unfortunately not possible with the Rising() method, however it could be setup with the condition builder / relational operator working on your custom indicators - http://www.ninjatrader.com/support/h...on_builder.htm

    Comment


      #3
      How can I access de condition builder in a custom indicator?

      Comment


        #4
        Hello,

        Thank you for the question.

        There is actually no condition builder specific for an indicator because indicators require manual coding.

        You do have two options to "generate" syntax though, the first in the NinjaScript editor you can press "F2" to display the snippet menu.

        Secondly you can create a new strategy to access the strategy wizard, create a condition and then click "View Code". This would display the NinjaScript generated from the Wizard which you could then copy and paste into an indicator.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X