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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    167 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    88 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    128 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    208 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    185 views
    0 likes
    Last Post CarlTrading  
    Working...
    X