Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

int to int comparison for optimization

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

    int to int comparison for optimization

    Can you compare integer to integer for optimization?

    i.e. I want to open a position when the 5 period RSI is less then 25


    I wanted to use the RSI period for one integer, which I did easily.

    but also wanted to use RSI value (25) in my example as another integer?

    However, I can't change the numeric value field to take my integer? and I can't outright select my integer? as a field?

    Any thoughts? Thanks

    #2
    Hi dirygoatee,

    The data type returned by RSI is double, so you can use a double input if you want to optimize the value of it. User defined inputs can be setup in the strategy wizard, or by following guidelines in this post:
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    650 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    370 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    577 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X