Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

three bars

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

    three bars

    Hi. Sorry for my English.
    How could I do this: in the last three bars (where O is the last,)
    If the close of 0 is less than the close of 1 and the close of 1 is greater than the close of 2 draw the bar 0 un yellow.
    It does not work for me Thank you.

    #2
    Hello Julifro,

    Thank you for your note.

    To build this condition you could go to Control Center>Tools>New NinjaScript>Strategy. Continue through the prompts until you get to the conditions and actions page where you’ll click add, then Under Price Data select Close on both sides, setting Bars Ago and selecting the > or < in the middle.

    Then under Do the Following you click Add>Drawing>Set Bar Color.

    I’ve built the condition in the strategy builder and provided screen shots of how you’d set this up. I’ve included a links to our helpguide as well as a youtube video covering Strategy Wizard.

    Youtube: https://www.youtube.com/watch?v=FmBi...D7105&index=10

    Helpguide: http://ninjatrader.com/support/helpG...rd_screens.htm

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 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
    549 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X