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

Stop Volume Indicator..can someone code it?

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

    Stop Volume Indicator..can someone code it?

    here is the easy code for the Stop Volume indicator..does anybody want to create it for NT? it is a variation of the better volume indicator, created by the same person




    Inputs: TextColor(White), Space(True), StopAlert(True),
    SpaceMulti(1), TextSpaceMulti(0.75);
    Variables: OffsetBottom(0), OffsetTop(0), OffsetInput(0);

    If Space = True then begin
    Value1 = Average(Range,10)*SpaceMulti;
    Plot1(H+Value1,"TopSpace",Tool_Black,0,0);
    Plot2(L-Value1,"BottomSpace",Tool_Black,0,0);
    End;

    OffsetBottom = 0;
    OffsetTop = 0;
    OffsetInput = Average(Range,10)*TextSpaceMulti;

    Condition1 = Ticks > Ticks[1] and Range < Range[1] and L < L[1];
    Condition2 = Ticks > Ticks[1] and Range < Range[1] and H > H[1];

    If Condition1 then begin
    OffsetBottom = OffsetBottom+OffsetInput;
    Value1 = Text_New(D,T,L-OffsetBottom,"Stop");
    Value2 = Text_SetColor(Value1,TextColor);
    Value3 = Text_SetStyle(Value1,2,2);
    If StopAlert = True then begin
    Alert("Stopping Volume Low");
    End;
    End;
    If Condition2 then begin
    OffsetTop = OffsetTop+OffsetInput;
    Value1 = Text_New(D,T,H+OffsetTop,"Stop");
    Value2 = Text_SetColor(Value1,TextColor);
    Value3 = Text_SetStyle(Value1,2,2);
    If StopAlert = True then begin
    Alert("Stopping Volume High");
    End;
    End;

    #2
    Gregory,

    As a last resort you can also try one of these 3rd party NinjaScript Consultants: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Tim-c, Today, 03:54 AM
    0 responses
    3 views
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by FrancisMorro, Today, 03:24 AM
    0 responses
    2 views
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,771 views
    0 likes
    Last Post Leafcutter  
    Started by Rapine Heihei, 04-23-2024, 07:51 PM
    2 responses
    31 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    945 views
    0 likes
    Last Post spwizard  
    Working...
    X