Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Taddypole, 04-26-2024, 02:47 PM
    7 responses
    67 views
    0 likes
    Last Post NinjaTrader_PatrickH  
    Started by ttrader23, Yesterday, 09:04 AM
    5 responses
    26 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by KonAdams, 05-07-2024, 10:53 PM
    10 responses
    27 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by kevinenergy, 02-17-2023, 12:42 PM
    119 responses
    2,839 views
    1 like
    Last Post DTSSTS
    by DTSSTS
     
    Started by reynoldsn, Today, 07:23 AM
    2 responses
    7 views
    1 like
    Last Post reynoldsn  
    Working...
    X