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 burtoninlondon, Today, 12:38 AM
        0 responses
        5 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        12 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        13 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,982 views
        3 likes
        Last Post jhudas88  
        Working...
        X