![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2009
Posts: 294
Thanks: 21
Thanked 1 time in 1 post
|
I have an indicator which grabs all the trades at ask. It looks like this:
PHP Code:
Last edited by dsraider; 01-21-2012 at 02:26 PM.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
dsraider,
This looks like its meant to plot volume. Do you mean its meant to display the total volume at the ask price? What is the "price" variable in this example? Is Ask the data series you are attempting to plot:? Please keep in mind OnMarketData() is updated every new tick, so your data series Ask will be quite large. I look forward to helping you resolve your issue.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2009
Posts: 294
Thanks: 21
Thanked 1 time in 1 post
|
Hi Adam,
At second glance, it looks as if I can simply customize the BuySellVolume indicator to suit my needs. One question for clarification, though: does that indicator plot ONLY trades that have actually gone through or is it collecting all Bids and all Asks? I can't do the math that quickly in my head. Thanks, DS |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
dsraider,
It looks like its getting the bid and ask volume depending. Its adding the volume between the last tick and the current tick, assigning it to buy volume or sell volume depending on if there was a buy or sell during that volume quote. Please let me know if I may assist further.
Adam P.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
|
|
#5 |
|
Senior Member
Join Date: Apr 2009
Posts: 294
Thanks: 21
Thanked 1 time in 1 post
|
Sounds like what I'm looking for.
Thanks for your help
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sum of indicator | no111 | Strategy Development | 5 | 01-20-2011 12:30 PM |
| SUM indicator | frankduc | Charting | 3 | 08-05-2010 07:32 AM |
| SUM() but not from position [0] | tinkerz | General Programming | 2 | 02-09-2010 03:36 PM |
| Summation (SUM) | jcash | General Programming | 29 | 07-27-2009 07:10 AM |
| How to sum 2 time variables | pmaglio | General Programming | 10 | 02-11-2009 10:29 AM |