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

Lowest Low of SMA

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

    Lowest Low of SMA

    Hi,
    When I am calculating LowestLow since entry of a SMA using MIN indicator, after about more than 250 bars, the Ninjatrader just crashes. I figured this out by changing the code to use 200 bars instead of BarsSinceEntry.
    Can some one please help me to fix this?

    Here is the block of code -
    double LoLow = MIN(SMA(100),BarsSinceEntry())[0];

    Thanks
    Madhav

    #2
    What do you mean by crash? Your strategy terminates or the NinjaTrader application crashes.
    RayNinjaTrader Customer Service

    Comment


      #3
      The ninja trader app crashes. The crash usually happens with a message but not always. A common indication is that the virtual memory usuage is about 1.5 gb

      Comment


        #4
        Please go through performance tips here: http://www.ninjatrader-support.com/H...anceTips1.html

        Comment


          #5
          What kind of chart are you running on? Please try 1min charts and see if you still are running into this problem.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Josh,
            I am using one chart 100 ticks. NT doesnt crash when I am using 1 min tick chart.

            Comment


              #7
              Please proceed as per my post #4.

              Comment


                #8
                Along the lines with what Dierk suggested, decreasing the number of days to chart on tick charts may yield results you are looking for. Try to only chart 1 or 2 days of tick data. The less days you are charting the quicker and less memory the chart takes.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by ETFVoyageur, Today, 07:05 PM
                0 responses
                4 views
                0 likes
                Last Post ETFVoyageur  
                Started by Orion815, 05-02-2024, 08:39 AM
                2 responses
                17 views
                0 likes
                Last Post Orion815  
                Started by suroot, 02-25-2017, 04:43 AM
                11 responses
                2,550 views
                0 likes
                Last Post Zilvercat  
                Started by Rogers101, 05-05-2024, 11:30 AM
                16 responses
                50 views
                0 likes
                Last Post Rogers101  
                Started by ninza33, Today, 12:31 PM
                2 responses
                12 views
                0 likes
                Last Post ninza33
                by ninza33
                 
                Working...
                X