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

SMA Nest

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

    SMA Nest

    Hello !!! i have litle troble to nest SMA on CCI indicator in STRATEGY !
    no problem in adding to chart
    AddSMA(CCI(14),55);

    but every time i add && or > statment got error

    && SMA(CCI(14),30) > SMA(CCI(14),50)

    #2
    GainForex,

    Thanks for your post.

    In your next line, you should use:

    if(SMA(CCI(14),30)[0] > SMA(CCI(14),50)[0])
    [0] - will return value for current bar ([..] - bars ago)
    Bobby Y.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mtamaku, Yesterday, 11:08 AM
    11 responses
    25 views
    0 likes
    Last Post mtamaku
    by mtamaku
     
    Started by ZeroKuhl, Today, 10:22 AM
    0 responses
    3 views
    0 likes
    Last Post ZeroKuhl  
    Started by gyilaoliver, Today, 03:31 AM
    4 responses
    19 views
    0 likes
    Last Post gyilaoliver  
    Started by vit007, Today, 05:09 AM
    3 responses
    28 views
    0 likes
    Last Post backtester831  
    Started by seanthenoob, 06-19-2020, 10:16 AM
    8 responses
    675 views
    0 likes
    Last Post Brockjava  
    Working...
    X