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 RideMe, 04-07-2024, 04:54 PM
      5 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by f.saeidi, Today, 08:13 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by DavidHP, Today, 07:56 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by kujista, Today, 06:23 AM
      3 responses
      10 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by Mindset, Yesterday, 02:04 AM
      2 responses
      18 views
      0 likes
      Last Post NinjaTrader_RyanS  
      Working...
      X