Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Test of difference within limits...

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

    Test of difference within limits...

    Hi...
    Just wonder if someone can help me in the following objective while I am trying to develop a strategy and see how it works.

    In simple language this is what I am trying to achieve:

    CONDITION:
    if Difference of (Indicator A and Indicator B) lies within 0 to maximum 0.5
    and if Difference of (Indicator B and Indicator C) lies within 0 to maximum 0.5

    ACTION:
    Do Something

    EXAMPLE:
    Indicator A = 137.54
    Indicator B = 137.13
    Indicator C = 137.08

    TEST:
    Indicator A - Indicator B = 0.41 (Between 0 and 0.5 so TRUE)
    Indicator B - Indicator C = 0.05 (Between 0 and 0.5 so TRUE)

    OUTCOME:
    Action to be executed

    Any help would be highly appreciated.

    Thanks,
    Yusuf SHAIKH

    #2
    As last resort a certified NinjaScript consultant is at your help: http://www.ninjatrader.com/webnew/pa...injaScript.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X