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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X