Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Idea for a new indicator
Collapse
X
-
-
Its on our list for future consideration.
Everytime you change the indicators on a chart, all indicators are reset internally, this is why you lose the data. Set up the chart the way you want, add the BuySellVolume indicators, and leave the chart alone after that.RayNinjaTrader Customer Service
Comment
-
An Initial Attempt at this indicator (Could use a bit of help)
Thanks for the interesting thread. I was thinking of an indicator along the same lines and UACVAX kindly coded an indicator that sums the level 1 bid or ask or last through the course of a bars formation. The link is here http://www.ninjatrader-support.com/v...ght=cumulative and I have attched the indicator which is Called CumulativeCurrentVolume.
Yesterday I took a shot at converting this into an indicator that will make a ratio bid/ask and a couple of Moving Averages of this ratio. Unfortunately, I ran into a challenge with my NinjaScript skills and I get a compiling error that I have not been able to figure my way around. If someone wants to take a peek at the attached code, we may have an indicator that partially mimics the Smart Money indicator descibed in one of the previous links.
The limitation that it would have is that each second it is adding the current bid (Level 1) to a running total for the bar (Same with current ask). It is not taking into account the entire Cumulative Level 2 Depth that is seen in the DOM. The Dom Sums the Bid / Ask Volume, but it seems this number is not currently available in NinjaScript.
Comment
-
Operator Error Message
I Worked on this indicator and made some progress, but I am getting the following error message that I can't seem to get past: " Operator '/' cannot be applied to operands of type 'CumulativeVolume' and 'CumulativeVolume' Indicator\gpPressure.cs 55
The two Cumulative volume references in the error come from the following code:
Pressure.Set(CumulativeVolume.Bid / CumulativeVolume.Ask);
Does anyone have suggestions?
Comment
-
If I reference the value of each object in the current bar,
Pressure.Set(CumulativeVolume.Bid[0] / CumulativeVolume.Ask[0]);
I get the following error instead:
Cannot apply indexing with [] to an expression of type 'CumulativeVolume' Indicator\gpPressure.cs 55
Do I need to assign the value of the CumulativeVolume.Bid object into a new dataSeries (Same with Ask), and then Divide the two data series?
Comment
-
I have not been following this thread intimately so I don't exactly know what CummulativeVolume is.
Ultimately, you need to divide two double values.
Set(double value / double value);
Therefore, if there are values contained in the CummulativeValue object, get those, make sure they are double values and then divide them.
There are many ways to do that, you don't need to store values in a DataSeries object unless you have a requirement to retrieve historical values.RayNinjaTrader Customer Service
Comment
-
CumulativeVolume was a quick custom indicator I made for Learning1 in this thread http://www.ninjatrader-support.com/v...ead.php?t=2864. It just adds up the current volumes of the bid/ask/last of the current bar and resets itself at the start of every new bar.
To do the operation you want Learning1 try something like this:
I have not tested this code, but I believe it should work.Code:CumulativeCurrentVolume(Input).VolType = CumulativeVolume.Bid; double bidvolume = CumulativeCurrentVolume(Input)[0]; CumulativeCurrentVolume(Input).VolType = CumulativeVolume.Ask; double askvolume = CumulativeCurrentVolume(Input)[0]; Pressure.Set(bidvolume/askvolume);
Last edited by NinjaTrader_JoshP; 08-15-2007, 02:01 PM.Josh P.NinjaTrader Customer Service
Comment
-
Hi Ray,Originally posted by NinjaTrader_Ray View PostPlease take a look at some of the BuySellVolume indicators, this may be of value. CVD has not been implemented.
Besides the BuySellVolume and BuySellPressure indicators, what other TT's volume based indicators are there in the current version of NT?
Also what is the BuySellPressure indicator known as in TT's X trader, only asking because i've been looking at the Volume indicators in TT.
Comment
-
Thanks uacvax, for both the original code and this snippet. W
hen I use this snippet, the code compiles, but the output is simply a line with all values at 1. It does not seem to be pulling the current values from the CumulativeCurrentVolume Indicator you authored. The Concept was to have a ratio of the Values generated by the CumulativeCurrentVolume(Bid) / CumulativeCurrentVolume(Ask) as a first step. Once this was working I was going to include the math to center it around 0 so that when BidVolume = AskVolume the indicator would be 0. When AskVolume > BidVolume indicator would be positive and when BidVolume > AskVolume, indicator would be negative. Do you have any ideas on why the code snippet would only return 1?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
113 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
60 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
40 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
43 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
81 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment