![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
|
i mean to an indicator, not just the output window
or even a box with a number
|
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Are you familiar with indicator programming in NinjaScript by chance? Meaning, have you developed any yet?
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#8 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Mar 2008
Posts: 220
Thanks: 1
Thanked 0 times in 0 posts
|
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
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#11 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#13 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#15 |
|
Junior Member
Join Date: Jan 2009
Posts: 24
Thanks: 2
Thanked 0 times in 0 posts
|
Sorry I post this meanwhile you do too, I'm going to follow your link to see.
Thanks. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |