Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Provide me as NT8 file

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

    Provide me as NT8 file

    //SetChartBkColor(colorWhite);
    SetChartOptions(0,chartShowArrows|chartShowDates);
    Vlp = Param("Volume lookback period",40,20,200,10);
    Vrg = MA(V,Vlp);// average volume
    rg = (H-L); //Spread
    arg = Wilders(rg,Vlp);//Average Spread
    rs = abs(C-Ref(C,-1));//Result
    rsg = Wilders(rs,Vlp);//Average Result
    sro = rg/arg;//ratio of spread to average
    Vro = V/Vrg;//ratio of volume to average
    rso = rs/rsg; //ratio of result to average
    smax = HHV(sro,Vlp);
    smin = LLV(sro,Vlp);
    Vmax = HHV(Vro,Vlp);
    Vmin = LLV(Vro,Vlp);
    rmax = HHV(rso,Vlp);
    RMIn = LLV(rso,Vlp);
    snor = (sro - smin)*100/(smax-Smin);
    Vnor = (Vro - Vmin)*100/(Vmax-Vmin);
    rnor = (rso - RMIn)*100/(rmax-RMIn);
    EI = rnor/Vnor;

    SelectedIndicator = ParamList( "Show", "Raw Effort-Result,Effort Index", 1 );
    SelectedResult = ParamList( "Select", "Spread,Bar to Bar", 1 );
    switch ( SelectedIndicator )
    {
    case "Raw Effort-Result":
    switch ( SelectedResult )
    {

    case "Spread":
    SetBarFillColor( colorOrange );
    PlotOHLC(0,snor,0,snor,"Result",IIf(C>Ref(C,-1),colorLime,colorRed), styleCandle |styleThick) ;
    Plot(MA(snor,Vlp),"Avg Result",colorYellow,1|styleDashed|styleThick);
    SetBarFillColor( colorGreen );
    PlotOHLC(0,-Vnor,0,-Vnor,"Effort",IIf(C>Ref(C,-1),colorLime,colorRed), styleCandle|styleThick ) ;
    Plot(MA(-Vnor,Vlp),"Avg Effort",colorTurquoise,1|styleDashed|styleThick);
    break;
    case "Bar to Bar":
    SetBarFillColor( colorOrange );
    PlotOHLC(0,rnor,0,rnor,"Result",IIf(C>Ref(C,-1),colorLime,colorRed), styleCandle |styleThick) ;
    Plot(MA(rnor,Vlp),"Avg Result",colorYellow,1|styleDashed|styleThick);
    SetBarFillColor( colorGreen );
    PlotOHLC(0,-Vnor,0,-Vnor,"Effort",IIf(C>Ref(C,-1),colorLime,colorRed), styleCandle|styleThick ) ;
    Plot(MA(-Vnor,Vlp),"Avg Effort",colorTurquoise,1|styleDashed|styleThick);

    break;
    }
    break;
    case "Effort Index":
    SetBarFillColor( colorGreen );
    PlotOHLC(0,EI,0,EI,"Effort Index",colorTurquoise, styleCandle|styleThick ) ;
    break;
    }
    _SECTION_END();

    #2
    Hello rmrajer,

    Welcome to the NinjaTrader forums!

    In the support department at NinjaTrader it is against our policy to create, debug, or modify, code or logic for our clients. Further, we do not provide C# programming education services or one on one educational support over the phone in our NinjaScript Support department. This is so that we can maintain a high level of service for all of our clients as well as our associates.

    This thread will remain open for any community members that would like to do this work 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.


    If you are interested in creating this yourself, below I am providing links to resources.





    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    41 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X