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

NEED Help For Code

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

    NEED Help For Code

    How do I Code The Following

    If High < SMA200 and SMA200 < SMA200 20 days ago

    #2
    Hi Frasva, welcome to the NinjaTrader support forums!

    Are you looking for an indicator or strategy?

    For our custom indicator tutorials, you can check here - http://www.ninjatrader-support.com/H...verview18.html

    You can also use the Strategy Wizard approach to generate code without the need for programming - http://www.ninjatrader-support.com/H...rdScreens.html

    If you need your ideas professionally programmed, please check out those NinjaScript consultants - http://www.ninjatrader.com/webnew/pa...injaScript.htm
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by Frasva View Post
      How do I Code The Following

      If High < SMA200 and SMA200 < SMA200 20 days ago
      if(CurrentBar < 20) return;

      if(High[0] < SMA(200)[0] && SMA(200)[0] < SMA(200)[20])
      {
      // Do your stuff
      }

      Comment


        #4
        roonius

        Thanks Roonius
        Very nice of you to use your time on this answear

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Lele2k24, Today, 01:32 PM
        4 responses
        7 views
        0 likes
        Last Post Lele2k24  
        Started by Sebastian - TwinPeaks, Today, 01:31 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by tonynt, Today, 01:48 PM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by eladlevi, Today, 11:02 AM
        4 responses
        23 views
        0 likes
        Last Post eladlevi  
        Started by synthhokie, Today, 10:24 AM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X