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

Ninjascript coding 2 indicators but with 2 different values

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

    Ninjascript coding 2 indicators but with 2 different values

    I have 2 indicators on the same panel with1 justification left and 1justification right.One plot is in the hunderd of thousands while the other is in the thousands. When the plots do cross I want a flag to notify me. Visualy on the screen it works well but how can one do it in ninjascript since the values are so much off.

    #2
    Hello ballboy11,

    Thank you for your note.

    There wouldn't really be a supported way to set this up in NinjaScript without normalizing the values between a range and then comparing those normalized values. You would need to normalize or translate one indicator's values so they are relative on the same scale in order to detect the cross and fire an alert.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by hazylizard, Today, 08:38 AM
    2 responses
    8 views
    0 likes
    Last Post hazylizard  
    Started by geddyisodin, Today, 05:20 AM
    2 responses
    18 views
    0 likes
    Last Post geddyisodin  
    Started by Max238, Today, 01:28 AM
    5 responses
    47 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by giulyko00, Yesterday, 12:03 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by habeebft, Today, 07:27 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Working...
    X