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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    76 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    62 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X