Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DTOSC convert from AFL or code help

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

    DTOSC convert from AFL or code help

    Hi friends,

    Below is the code of DTOSC indicator from AMI AFL, pleasse help to convert or recode for ninjatrader. Your help is highly appreciated

    _SECTION_BEGIN("DTOsc");
    PeriodRSI= Param("PeriodRSI", 13, 1, 250, 1);
    PeriodStoch=Param("PeriodStoch", 8, 1, 250, 1);
    MAType=Param("MAType", 1, 1, 2, 1);
    PeriodSK=Param("PeriodSK", 5, 1, 250, 1);
    PeriodSD=Param("PeriodSD", 5, 1, 250, 1);
    Upper=Param("Upper", 75, 50, 100, 1);
    Lower=Param("Lower", 25, 0, 50, 1);
    Zero=Param("ZeroLine", 50, 0, 50, 1);

    StoRSI= 100*(( RSI( PeriodRSI) - LLV( RSI( PeriodRSI ) , PeriodStoch ) ) / ( (
    HHV( RSI( PeriodRSI) , PeriodStoch ) ) - LLV(RSI( PeriodRSI ), PeriodStoch ) ));

    if(MAType==1)
    {
    SK=MA(StoRSI,PeriodSK);
    SD=MA(SK,PeriodSD);
    }

    if(MAType==2)
    {
    SK=EMA(StoRSI,PeriodSK);
    SD=EMA(SK,PeriodSD);
    }

    Plot(SK,"DTOscSK",ParamColor( "ColorSK", colorBlue ),styleLine);
    Plot(SD,"DTOscSD",ParamColor( "ColorSD", 11 ),styleLine);
    //Plot(Zero,"ZeroLine",ParamColor( "ColorZero", colorLightGrey ),styleLine);
    Plot(Upper,"Upper",ParamColor( "ColorUpper", colorLightGrey ),styleLine);
    Plot(Lower,"Lower",ParamColor( "ColorLower", colorLightGrey ),styleLine);
    _SECTION_END();

    Thank You

    #2
    Hello sunilnagmal,

    Welcome to the NinjaTrader forums!

    This thread will remain open for any community members that would like to create this script as a convenience to you.

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our NinjaTrader Ecosystem team follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.


    Should you like to create this yourself, below I am providing links to helpful resources on getting started with NinjaScript and C# and adding plots to indicators.
    https://ninjatrader.com/support/foru...040#post786040
    https://ninjatrader.com/support/help...i_stochrsi.htm
    https://ninjatrader.com/support/help...t8/addplot.htm
    https://ninjatrader.com/support/help...nt8/values.htm
    https://ninjatrader.com/support/help.../nt8/plots.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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