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

StochRSI indicator from TOS

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

    StochRSI indicator from TOS

    Hello,
    I need help conveting a TOS script to Ninjatrade code. Does anyone can help me to do it, please?. Thank you!
    Below, I posted the TOS script for StochRSI indicator.

    declare lower;
    input RSI_length = 14;
    input over_bought = 80;
    input over_sold = 20;
    input RSI_choice = {default "RSI Wilder", "RSI EMA"};
    input RSI_price = close;
    input KPeriod = 14;
    input DPeriod = 3;
    input slowing_period = 1;
    input smoothingType = {Default SMA, EMA};
    def RSI;
    switch (rsi_choice) {
    case "RSI EMA":
    RSI = RSI_EMA(price = RSI_price, length = RSI_length);
    case "RSI Wilder":
    RSI = RSIWilder(price = RSI_price, length = RSI_length);
    }
    plot FullK = StochasticFull(over_bought, over_sold, KPeriod, DPeriod, RSI, RSI, RSI, slowing_period, smoothingType).FullK;
    plot FullD = StochasticFull(over_bought, over_sold, KPeriod, DPeriod, RSI, RSI, RSI, slowing_period, smoothingType).FullD;
    plot OverBought = over_bought;
    plot OverSold = over_sold;
    FullK.SetDefaultColor(GetColor(5));
    FullD.SetDefaultColor(GetColor(0));
    OverBought.SetDefaultColor(GetColor(1));
    OverSold.SetDefaultColor(GetColor(1));

    #2
    Hello CCUC-M,
    Welcome to the forum and I am happy to assist you.

    Unfortunately we do not convert TOS script to NinjaScripts codes.

    To convert/develop your custom indicator/strategies you can contact any of our independent NinjaScript consultants. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    60 views
    0 likes
    Last Post samish18  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    9 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    18 views
    0 likes
    Last Post traderqz  
    Started by algospoke, 04-17-2024, 06:40 PM
    5 responses
    47 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X