NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-20-2009, 03:23 PM   #1
Gregory Arkadin
Senior Member
 
Join Date: Apr 2008
Posts: 159
Thanks: 0
Thanked 0 times in 0 posts
Default 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;
Gregory Arkadin is offline  
Reply With Quote
Old 03-20-2009, 03:25 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Gregory,

As a last resort you can also try one of these 3rd party NinjaScript Consultants: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Josh is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Code Help --- ATR Multiple for Stop kcsystemtrader General Programming 22 01-05-2009 04:03 PM
Stop on volume vast524 SuperDOM and other Order Entry Windows 1 09-30-2008 02:42 PM
Volume Stop bigbopper ATM Strategies (Discretionary Trading) 4 08-11-2008 06:02 AM
Can somebody code the Volatility stop for NT nico_p Indicator Development 2 03-30-2008 08:47 AM
Wizard vs Code for indicator on indicator Don44 NinjaScript File Sharing Discussion 5 01-24-2008 02:41 PM


All times are GMT -6. The time now is 10:45 PM.