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

R/S levels with variable lookback period

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

    #16
    I have 5 bars.
    private int weekly = 5;

    Comment


      #17
      Originally posted by Loukas View Post
      I have 5 bars.
      private int weekly = 5;
      You have a total of 5 bars on your chart? I am surprised that you even got a trade.

      Comment


        #18
        Do you mean time frame? If yes, it is from 2009 to 2010

        Comment


          #19
          Originally posted by Loukas View Post
          Do you mean time frame? If yes, it is from 2009 to 2010
          In that case, I am going to assume that you have many bars on the chart.

          Your strategy does not exit as far as I can see. I only see entries.

          Look at EntriesPerDirection and EntryHandling structures for how they control your strategy entries.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Max238, Today, 01:28 AM
          5 responses
          40 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by giulyko00, Yesterday, 12:03 PM
          3 responses
          12 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by habeebft, Today, 07:27 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChristopherS  
          Started by AveryFlynn, Today, 04:57 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by r68cervera, Today, 05:29 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X