NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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 08-07-2008, 10:21 AM   #1
timmyb
Senior Member
 
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
Default cumulative bid and ask

I would like to develope a indicator or even a box with the amount of the total contracts at the bid for the day and ask for the day, perhaps even have ti look at the current candle and if there are more buying on the bid of a red candle to alert me, Is it possible to pul this data from the time and sales window??

I can prob figure it out just need a point in the right direction or if it is possible

thanks
timmyb is offline  
Reply With Quote
Old 08-07-2008, 10:47 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

You can create an indicator like using OnMarketData(). This would only work in real-time.

More information - http://www.ninjatrader-support.com/H...arketData.html
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-07-2008, 05:36 PM   #3
timmyb
Senior Member
 
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
Default

Real time is understood thanks again ray

So just quickie here

protected override void OnMarketData(MarketDataEventArgs e)
{
// Print some data to the Output window
if (e.MarketDataType == MarketDataType.Last)
Print("Last = " + e.Price + " " + e.Volume);

}

How do i get it from the output window?? It been a couple months since i been programming ninja, even a point towards a indicator or file that does almost the same would help me understand the code

and

Print ("Last = "+ e.Price + " " + e.Volume); <<<< what does that line mean

thanks anyone again
timmyb is offline  
Reply With Quote
Old 08-08-2008, 07:10 AM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

What do you mean how do you get it from the Output window? The Print(...) line you point to sends information to the Output window.
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-08-2008, 08:03 AM   #5
timmyb
Senior Member
 
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
Default

i mean to an indicator, not just the output window or even a box with a number
timmyb is offline  
Reply With Quote
Old 08-08-2008, 09:36 AM   #6
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Are you familiar with indicator programming in NinjaScript by chance? Meaning, have you developed any yet?
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-09-2008, 01:20 PM   #7
timmyb
Senior Member
 
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
Default

Yes I am familiar and have made maybe 8 different indicators, I have been ofline line for almost 3 months now so i have to start delving into code again. Like i said i am sure i should be able to get it situated if pointed in the right direction. I guess waht i am confused the most about is the retreiving from the output window to the indicator

thanks again
timmyb is offline  
Reply With Quote
Old 08-09-2008, 03:52 PM   #8
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

What is sent to the Output window is sent from the indicator thus whatever you send you already have in the indicator. I guess that's why I am confused with your question.
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-09-2008, 04:25 PM   #9
timmyb
Senior Member
 
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
Default

Obviously i am more confused than i first thought, let me sit down for a bit and try to put in words what i am having trouble with
timmyb is offline  
Reply With Quote
Old 01-30-2009, 10:26 AM   #10
salakazam
Junior Member
 
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
Default

Hello everybody, this is my first post, and english is not my language, my apologizes.

I'm interesting in knowing the amount of the total contracts at the bid for the day and ask for the day, too. But I have not idea about programming in NinjaScript, can I obtain this data? there are any indicator made yet?

Thanks in advance.
salakazam is offline  
Reply With Quote
Old 01-30-2009, 10:32 AM   #11
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Hi, welcome to the NinjaTrader Support forums !

Please check out those scripts posted to our sharing section - http://www.ninjatrader-support2.com/...bid+ask&desc=1

Or try those AddOn products giving you bid/ask analysis - http://fin-alg.com/product.html
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-30-2009, 11:04 AM   #12
salakazam
Junior Member
 
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
Default

Thank you very much, but thought I'm little lost in translation, sorry.
My request is easier than that, I want to know the total amount of negotiated contracts of the day, in real time. In dynamic super DOM you can see this at the price (between the brackets), but not the total of the day. Is it possible?

Thanks again.
Last edited by salakazam; 01-30-2009 at 11:07 AM.
salakazam is offline  
Reply With Quote
Old 01-30-2009, 11:20 AM   #13
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Hi salakazam, I see - you could for example run a daily chart and add the volume indicator to it. Or open a Market Analyzer window, add your instrument and the Daily Volume to it. This link explains more - http://www.ninjatrader-support.com/H...ngColumns.html
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-30-2009, 11:23 AM   #14
salakazam
Junior Member
 
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
Default

You can see what I'm asking for here:



Is similar to dynamic super DOM in NT, whith the nearest five positions, but you can see the total of contracts in the day (yellow mark).

Thanks for your time.
salakazam is offline  
Reply With Quote
Old 01-30-2009, 11:25 AM   #15
salakazam
Junior Member
 
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
Default

Sorry I post this meanwhile you do too, I'm going to follow your link to see.

Thanks.
salakazam 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cumulative Tick Indicator bobajob78 Indicator Development 6 03-30-2010 11:41 AM
Cumulative Profit Graph CraigC Automated Trading 3 06-20-2008 11:27 PM
Cumulative Tick Indicator bobajob78 NinjaScript File Sharing Discussion 2 04-10-2008 06:13 PM
Correct Spelling of 'cumulative' LG Suggestions And Feedback 2 04-04-2008 11:00 PM
Cumulative Profit Calculation Error whitmark Miscellaneous Support 1 03-07-2007 04:09 AM


All times are GMT -6. The time now is 11:23 PM.