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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X