Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Learning NinjaScript

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

    Learning NinjaScript

    I have come from TradeStation and their EasyLanguage to Ninja.

    (1) I am trying to write a simple output file with date, time and CCI value. I have found the sampleStreamWriter but I can not figure out how to get the CCI value???

    (2) Where are the methods and properties defined for the various NinjaScript objects??

    (3) What is the "@" used for?? I see sample scripts with "@SMA.cs"???

    (4) What is the best way to go about learning NinjaScript and C#??? I am aware of the "Sample" and "Tips" but these just give bits and pieces.

    #2
    Romulan, welcome to NinjaScript - the best way to get started would be our tutorials -



    @ would denote a system indicator we ship per default.

    You can access the CCI value for example with this call -

    Code:
     
    double myCCIValue = CCI(Close, 20)[0];

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    152 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    127 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X