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
    BertrandNinjaTrader Customer Service

    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.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by rhyminkevin, Today, 04:58 PM
        3 responses
        49 views
        0 likes
        Last Post Anfedport  
        Started by iceman2018, Today, 05:07 PM
        0 responses
        5 views
        0 likes
        Last Post iceman2018  
        Started by lightsun47, Today, 03:51 PM
        0 responses
        7 views
        0 likes
        Last Post lightsun47  
        Started by 00nevest, Today, 02:27 PM
        1 response
        14 views
        0 likes
        Last Post 00nevest  
        Started by futtrader, 04-21-2024, 01:50 AM
        4 responses
        50 views
        0 likes
        Last Post futtrader  
        Working...
        X