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

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
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AttiM, 02-14-2024, 05:20 PM
    12 responses
    211 views
    0 likes
    Last Post DrakeiJosh  
    Started by cre8able, 02-11-2023, 05:43 PM
    3 responses
    236 views
    0 likes
    Last Post rhubear
    by rhubear
     
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    114 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    47 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X