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 michi08, 10-05-2018, 09:31 AM
    2 responses
    737 views
    0 likes
    Last Post Denver_Wayne  
    Started by sightcareclickhere, Today, 01:55 PM
    0 responses
    1 view
    0 likes
    Last Post sightcareclickhere  
    Started by Mindset, 05-06-2023, 09:03 PM
    9 responses
    258 views
    0 likes
    Last Post ender_wiggum  
    Started by Mizzouman1, Today, 07:35 AM
    4 responses
    18 views
    0 likes
    Last Post Mizzouman1  
    Started by philmg, Today, 01:17 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X