Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CCI strategy

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

    CCI strategy

    Hello,

    My trying to write the following strategy

    If Lowest 45 CCI value with in last four bars of 45 CCI is greater than zero then go long..

    I'm not sure which function to use.. I have tried with Lowest() and also with Lows[] but can't get it to work...can you please help me how to write the above logic?

    {
    // Condition set 1
    if (Lows[CCI(45)][3] > 0)
    {
    EnterLong(DefaultQuantity, "");

    #2
    Hello there, it sounds like you'll need to use the MIN() function to get the lowest CCI value.
    Code:
    if (MIN(CCI(45), 4)[0] > 0)
        EnterLong()
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    335 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    211 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    196 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    288 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    245 views
    0 likes
    Last Post CarlTrading  
    Working...
    X