Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Brevo, Today, 01:45 AM
    0 responses
    2 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    238 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    4 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X