Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

A simple question from a new NT programmer

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

    A simple question from a new NT programmer

    Hello everyone
    In spite of my poor english.....
    I was yesterday trying to write some basic indicators in NinjaScript (new for me)........I want to translate indicators developed in MetaStock........but when I tried to make something like 2*RSI or RSI+MACD (obviously writing it in C# way), the compiler told me that operator * or operator + where not applicable in the context
    I know is a very simple question, but, how is it suppossed I must write something like....

    double rsimacd

    rsimacd = rsi+macd

    Value.Set (rsimacd)

    Best Regards

    #2
    You could do something like:

    Code:
    double doubleRsi = RSI(14, 3)[0] * 2;
    Value.Set(doubleRsi);
    There are about 6 indicator development tutorials in the Help Guide. This is a great way to get started understanding the concepts behind indicator development using NinjaTrader.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jorge.andres.o, Today, 08:05 PM
    0 responses
    1 view
    0 likes
    Last Post Jorge.andres.o  
    Started by SuperDriveGuy, 10-23-2019, 07:13 AM
    23 responses
    1,346 views
    0 likes
    Last Post wadams
    by wadams
     
    Started by lmatiukas, Today, 07:09 PM
    1 response
    6 views
    0 likes
    Last Post lmatiukas  
    Started by ComfyCouch, Today, 06:04 PM
    0 responses
    17 views
    0 likes
    Last Post ComfyCouch  
    Started by Ousher, Today, 04:35 PM
    0 responses
    5 views
    0 likes
    Last Post Ousher
    by Ousher
     
    Working...
    X