Thats excellent
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
volume and movement compared to prior candle
Collapse
X
-
volume and movement compared to prior candle
Thankyou ChelseaB
Thats excellentLast edited by CambodianT; 06-08-2021, 01:13 AM.Tags: None
-
Hello CambodianT,
Are you developing one and looking for assistance with the code or are you asking the community if someone knows of an existing script that has these specific conditions and actions that you can import?
These rules you have written can be coded into conditions.
The Open, High, Low, and Close of the bar are Series which use Bars ago values as the indexes.
https://ninjatrader.com/support/help.../nt8/close.htm
For example, High[2] is the High of 2 bars ago. High[0] is the high of most recently updated bar.
The Volume series provides the volume.
https://ninjatrader.com/support/help...ies_volume.htm
For example to find if the volume of the current bar is less than the previous bar:
if (CurrentBar > 1 && Volume[0] < Volume[1])
Arrows can be drawn with Draw.ArrowUp() / Draw.ArrowDown().
https://ninjatrader.com/support/help...aw_arrowup.htm
https://ninjatrader.com/support/help..._arrowdown.htm
The BarTimer included with NinjaTrader uses Draw.TextFixed() on lines 66, 70, 72, 77, 149, 152, 155, and 159.
The SimpleFont font property is currently set to ChartControl.Properties.LabelFont which would have the same font size and style as the rest of the chart. This can be changed in the chart properties window.
Draw.TextFixed(NinjaScriptBase owner, string tag, string text, TextPosition textPosition, Brush textBrush, SimpleFont font, Brush outlineBrush, Brush areaBrush, int areaOpacity)
Draw.TextFixed(this, "NinjaScriptInfo", NinjaTrader.Custom.Resource.BarTimerTimeRemaining + timeLeft, TextPosition.BottomRight, ChartControl.Properties.ChartText, ChartControl.Properties.LabelFont, Brushes.Transparent, Brushes.Transparent, 0);
https://ninjatrader.com/support/help..._textfixed.htm
Also, below are links to the chart properties window.
https://ninjatrader.com/support/help...AndDefinitions
https://ninjatrader.com/support/help...opertiesWindow
You could copy this script and substitute your own SimpleFont() value.
https://ninjatrader.com/support/help...font_class.htm
You could also decide to custom render this, how and where you would like, instead of using Draw.TextFixed().
Below is a link to an example of custom rendering.
https://ninjatraderecosystem.com/use...bol-watermark/
Last, I am providing a link to a forum post with helpful information about getting started with NinjaScript development.
https://ninjatrader.com/support/foru...040#post786040
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.Last edited by NinjaTrader_ChelseaB; 06-08-2021, 07:11 AM.Chelsea B.NinjaTrader Customer Service
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
592 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
554 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment