Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tradestation CCI variant

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

    Tradestation CCI variant

    Hi Guys Here is the code for a tradestaion CCI i found, i used it with a bit of success scalping i was wondering if i could be re coded for use with Ninja i think it has something to do with woodies turbo. i have a jpeg if needed.

    Regards Mark

    Inputs: TurboLength(6),HighLow(200),
    LSMAPrice((h+l+c)/3),EMAPrice((h+l+c)/3),
    LRLength(25),EMALength(34),
    LSMAAbove(green), LSMABelow(red),
    EM34Above(cyan),EMA34Below(magenta);

    Plot1(CCI(TurboLength), "Turbo" );
    Plot2(0,"Zero");
    Plot3(HighLow, "High");
    Plot4(-HighLow, "Low");
    var: LR(0),EMA(0);
    LR = LinearRegValue(LSMAPrice,LRLength,0);
    if LR > C then setplotcolor(2,LSMABelow);
    if LR < C then setplotcolor(2,LSMAAbove);

    EMA = XAverage(EMAPrice, EMALength);
    if EMA > C then begin
    setplotcolor(3,EMA34Below);
    setplotcolor(4,EMA34Below);
    end;
    if EMA < C then begin
    setplotcolor(3,EM34Above);
    setplotcolor(4,EM34Above);
    end;

    #2
    Hi markg, welcome to the NinjaTrader support forums!

    There are already CCI implementations available on NinjaTrader -



    If you like, you can post your jpg to make the conversion request more attractive to our community.

    For our indicator coding tutorials, please check here - http://www.ninjatrader-support.com/H...verview18.html

    For professional programming, you can contact those NinjaScript consultants - http://www.ninjatrader.com/webnew/pa...injaScript.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    332 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X