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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    66 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    141 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    46 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    51 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X