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

Can't get code to work?

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

    Can't get code to work?

    I'm trying to get this code to work.

    Code:
    if ((Close[0] < (MIN(Low, 20)[1])/2))
    If the close is less than lowest of the last N bars divided by N do something.

    It compiles fine, no errors but does not work at all.

    Any help would be much appreciated.

    #2
    From a quick view I think the snippet you posted does not evalutate to true, as it would really need a pretty big bar to achieve this.

    Also make sure you pay attention to this tip here -

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      From a quick view I think the snippet you posted does not evalutate to true, as it would really need a pretty big bar to achieve this.

      Also make sure you pay attention to this tip here -

      http://www.ninjatrader-support2.com/...ead.php?t=3170

      Thanks for responding. There are no error logs in the Control Center Log Tab.

      I'll try it with lower values to see.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by thumper57, Today, 04:30 PM
      0 responses
      2 views
      0 likes
      Last Post thumper57  
      Started by OllieFeraher, 05-09-2024, 11:14 AM
      5 responses
      16 views
      0 likes
      Last Post MisterTee  
      Started by jackiegils, Yesterday, 11:05 PM
      1 response
      10 views
      0 likes
      Last Post marcus2300  
      Started by Skifree, Today, 02:50 PM
      0 responses
      8 views
      0 likes
      Last Post Skifree
      by Skifree
       
      Started by owen5819, Today, 02:24 PM
      1 response
      12 views
      0 likes
      Last Post owen5819  
      Working...
      X