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

a simple indicator

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

    a simple indicator

    For the purpose of learning ninjascript, i am trying to write a very simple indicator that would plot tick price of msft to twice the tick price of intc

    attachment shows the compile errors. please help
    Attached Files

    #2
    eventrader, are you working in 6.5 or 7 - in 6.5 you would need to do so in a strategy and not in an indicator, as the multiseries framework for indicators was introduced in NT7.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      The attached should work in NT7 as indicator, please remember NinjaScript is case sensitive and thus you got compile errors thrown as you tried compiling 'periodType' which needs to be 'PeriodType'.
      Attached Files
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kempotrader, Today, 08:56 AM
      0 responses
      6 views
      0 likes
      Last Post kempotrader  
      Started by kempotrader, Today, 08:54 AM
      0 responses
      4 views
      0 likes
      Last Post kempotrader  
      Started by mmenigma, Today, 08:54 AM
      0 responses
      2 views
      0 likes
      Last Post mmenigma  
      Started by halgo_boulder, Today, 08:44 AM
      0 responses
      1 view
      0 likes
      Last Post halgo_boulder  
      Started by drewski1980, Today, 08:24 AM
      0 responses
      3 views
      0 likes
      Last Post drewski1980  
      Working...
      X