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

Sequential red or green bars

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

    Sequential red or green bars

    Anyone know of a Strategy or Script for multiple sequential up or down bars?

    Where are the ready-made scripts for download from other users?

    #2
    Hello b2fnow,

    Thanks for opening the thread.

    There may be a strategy that incorporates this logic that is currently shared on our forums here: https://ninjatrader.com/support/foru...ks.php?catid=8

    Other clients may have further input for specific openly available strategies that may accomplish this goal.

    It would also be possible to create this logic without programming by using the Strategy Builder. We know that a green up bar is when the Close is greater than the Open. We could chain together different checks for the previous bar and the bar before that to see if there are consecutive up bars.

    For example:

    Close[0] > Open[0] // Just closed bar is up bar
    Close[1] > Open[1] // Previous bar is up bar
    Close[2] > Open[2] // Bar before previous is up bar.

    Tying these together in a condition can check if there are consecutive Up bars. I have included a link to the Strategy Builder 301 tutorial for a walkthrough to use the Strategy Builder.

    Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt90GAs9k

    Also, if you would like to look into hiring a consultant to write this strategy or any other at your request, I can have a representative of our EcoSystem reach out with additional information on NinjaScript Consultants. If that is the case, please let us know.
    Last edited by NinjaTrader_Jim; 04-04-2018, 07:01 AM.
    JimNinjaTrader Customer Service

    Comment


      #3
      Sequential Bars - reply

      Thanks for the quick response and all the info. It helps just to know what is "possible", so I may try it myself with my own Strategy.

      I would really like for it to Auto-trade eventually.

      The link you gave says "Authorization Required" so I'm working on that. Knew there were a bunch of ready scripts somewhere.

      Comment


        #4
        Hello b2fnow,

        The NinjaScript File sharing folder will require that you are logged into the forum and you have to agree to the terms of use for sharing NinjaScript files before they can be downloaded.

        This NinjaScript File Sharing forum can be found in our main forum. You may also use the link here to access the File Sharing forum: https://ninjatrader.com/support/foru...splay.php?f=37

        If there is anything else we can do to help, please let us know.
        JimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sidlercom80, 10-28-2023, 08:49 AM
        166 responses
        2,234 views
        0 likes
        Last Post sidlercom80  
        Started by thread, Yesterday, 11:58 PM
        0 responses
        1 view
        0 likes
        Last Post thread
        by thread
         
        Started by jclose, Yesterday, 09:37 PM
        0 responses
        6 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,414 views
        0 likes
        Last Post Traderontheroad  
        Started by firefoxforum12, Yesterday, 08:53 PM
        0 responses
        11 views
        0 likes
        Last Post firefoxforum12  
        Working...
        X