• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 Fiocco, Today, 05:59 AM
    0 responses
    1 view
    0 likes
    Last Post Fiocco
    by Fiocco
     
    Started by Perceivedshift, Today, 05:17 AM
    0 responses
    5 views
    0 likes
    Last Post Perceivedshift  
    Started by herbertmack, Today, 03:19 AM
    0 responses
    5 views
    0 likes
    Last Post herbertmack  
    Started by b16_aln, Today, 03:11 AM
    1 response
    109 views
    0 likes
    Last Post b16_aln
    by b16_aln
     
    Started by Ashley_Mogg, Today, 12:31 AM
    0 responses
    3 views
    0 likes
    Last Post Ashley_Mogg  
    Working...
    X