I'm trying to use the value of the histogram bar in a strategy but that doesn't seem to be a value I can get? I assume this is a lack of a plot as best I've been able to determine. I'm no programmer but perhaps someone can help.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Adding a plot to an indicator to use in strategy
Collapse
X
-
Adding a plot to an indicator to use in strategy
There is a great indicator in the user appshare the "pace of tape" seen here: https://ninjatraderecosystem.com/use...ape-indicator/
I'm trying to use the value of the histogram bar in a strategy but that doesn't seem to be a value I can get? I assume this is a lack of a plot as best I've been able to determine. I'm no programmer but perhaps someone can help.Tags: None
-
Hello synthhokie,
This script does add two plots, 'POT Normal' and 'POT High', however there are no public Series<double> to return the Values series so this can be used in the Strategy Builder or Market Analyzer.
[Browsable(false)]
[XmlIgnore()]
public Series<double> POTNormal
{ get { return Values[0]; } }
[Browsable(false)]
[XmlIgnore()]
public Series<double> POTHigh
{ get { return Values[1]; } }
Below is a link to a support article that discusses this.
Chelsea B.NinjaTrader Customer Service
-
Comment
-
No matter what I did I couldn't get it until I pasted the one above and altered it but that seems to fix it.
My next question I created the strategy and I'm backtesting and i'm testing on NinZaRenko bar type which I believe has a false open but I'm only using them to trigger my entry. In the strategy analyzer it seems to be working however in the playback the very simple bar logic I'm using isn't work. Any idea why that would be?
Comment
-
Hello synthhokie,
We would need information to provide direction.
Is the order being ignored, is the condition to submit the order evaluating as true?
If the expected trade(s) are not appearing, this would indicate that the condition to place the order is not evaluating as true and the order is not being submitted, or the order is being ignored for other reasons, or the order is being cancelled or rejected.
To understand why the script is behaving as it is, such as placing orders or not placing orders or drawing objects when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.
In the strategy add prints (outside of any conditions) that print the date time of the bar and all values compared in every condition that places an order.
The prints should include the time of the bar and should print all values from all variables and all hard coded values in all conditions that must evaluate as true for this action to be triggered. It is very important to include a text label for each value and for each comparison operator in the print to understand what is being compared in the condition sets.
Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).
Further, enable TraceOrders which will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true.
I am happy to assist you with analyzing the output from the output window.
Run or backtest the script and when the output from the output window appears save this by right-clicking the output window and selecting Save As... -> give the output file a name and save -> then attach the output text file to your reply.
Below is a link to a support article that demonstrates using informative prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.
Please let me know if I may further assist with analyzing the output or if you need any assistance creating a print or enabling TraceOrders.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
53 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment