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 04-25-2007, 02:28 AM   #1
RedDuke
Senior Member
 
Join Date: Apr 2007
Location: , ,
Posts: 105
Thanks: 1
Thanked 0 times in 0 posts
Post imported post

I looked at source code for this indicator and have question about its logic



if (Close[0] > last)

upVol += tradeVol;

else if (Close[0] < last)

dnVol += tradeVol;



Does it mean that when somebody buys 10 contracts at 820.1, and the next 5 contract are also bought at 820.1, this second 5 contract trade will be ignored and not added to indicator value?



Thanks,

reddudke
RedDuke is offline  
Reply With Quote
Old 04-25-2007, 02:46 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Post imported post

Likely. That indicator was more of a sample of what can be done. I am going to remove it from this forum. Please check out the source code for NT6 BuySellVolume. This is accurate.

Ray
NinjaTrader_Ray 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


All times are GMT -6. The time now is 03:44 AM.