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

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 Human#102, Yesterday, 09:54 AM
    2 responses
    7 views
    0 likes
    Last Post Human#102  
    Started by Patlpp, 08-16-2021, 03:10 PM
    10 responses
    498 views
    0 likes
    Last Post Joerg
    by Joerg
     
    Started by AdamDJ8, 05-07-2024, 09:18 PM
    2 responses
    19 views
    0 likes
    Last Post -=Edge=-  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    46 responses
    4,102 views
    3 likes
    Last Post tradgrad  
    Started by usasugardefender, Today, 01:42 AM
    0 responses
    1 view
    0 likes
    Last Post usasugardefender  
    Working...
    X