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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    55 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X