Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Condition Builder - Subtracting Indicator Values

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

    Strategy Condition Builder - Subtracting Indicator Values

    When developing a condition for a strategy, is there a way to add or subtract the value of an indicator from the previous bar value? For example, CCI 14 period, subtract the current bar (0) CCI value from the previous bar (1)value. Also, is it possible to take the absolute value of this sum/difference? The only expressions I find are the comparative ones (<,>,>=,<=,etc). Is it something that needs to be coded? I have searched through the Help section to no avail. If you could point me in the right direction it would be very much appreciated. Thanks very much. Jim

    #2
    You can try using an offset. Select "Price" as the offset type and offce CCI by CCI of 1 bar ago. This is done on the left side of the condition builder for example, then you would compare the difference to some value on the right side.



    There is no absolute value indicator.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    3 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    150 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Working...
    X