Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Operator '*' cannot be applied to NinjaTrader.Indicator.StdDev

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

    Operator '*' cannot be applied to NinjaTrader.Indicator.StdDev

    Hi,

    when trying to add the following rule to a strategy

    CrossAbove(ROC(KAMA(Low, 2, 20, 30), 5), 0.25*StdDev(ROC(KAMA(Low, 2, 20, 30), 5), 100), 10) == false)

    I get the error message:

    Operator '*' cannot be applied to operands of type 'double' and 'NinjaTrader.Indicator.StdDev'

    how can I overcome this? I need to have a fraction of the Standard Deviation, how can I multiply the output of the StdDev with a percentage?

    many thanks
    Paulo

    #2
    found this thread that seems to have the answer to my question

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, Yesterday, 10:06 AM
    0 responses
    20 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    18 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    38 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X