Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator to double issue.

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

    Indicator to double issue.

    estop = 4 * (ATR(Closes[20],14));

    Gives compile message; "Operator * cannot be applied to operands of type "double" and "NinjascriptIndicators.ATR"

    How is it that I cannot multiply an indicator value to create a double?

    problem solved. no [0] indexing on the atr.
    Last edited by elliot5; 09-05-2022, 06:58 AM. Reason: problem solved. no [0] indexing on the atr. 

    #2
    Hello elliot5,

    Thank you for your patience.

    I am glad to hear you were able to resolve the error.

    Please don't hesitate to reach out with any future NinjaTrader items we may assist you with.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    117 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    165 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    85 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    130 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    88 views
    0 likes
    Last Post PaulMohn  
    Working...
    X