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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    47 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    15 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    21 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X