![]() |
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
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
|
I am running a simple moving average crossover that I have made some customizations to right now. I am curious, is the data that NT is bringing in building its indicators such as the SMA from 9:30 to 4? I got a fill today that was ok but when I widen my chart out from 8:00 am to 4:00 the indicator takes into account the pre market price data and has a drastic change with the way the SMA comes across - in this case making it a lot more profitable for me. Is there a way to build the average including pre market data? I wouldn't trade in the pre market using my automated strategies but I might take a look at using that data to predicting more of an overall average of the day.
Thanks Pete |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
pistolpete,
The indicators will use any information available on the chart. If your chart contains the premarket information then your indicator will use those bars as part of its calculations.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
|
no that is not right. I am trading TZA right now and when I change my charts to only show data from 9:30 to 4:00 the SMA is drastically different then when I reset them to go from 12-12. I got filled when the cross happened when the charts are being built only from data taken between 9:30 and 4:00 if my entry would have been taken from the SMA cross that had pre market data in it it would have been an hour late.
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
pistolpete,
That is what I am saying. The SMA is calculated based on all the information on the chart. When you change the chart sessions to something else the SMA indicator can show different values.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
|
Can you bring up a chart for TZA, its a small cap etf bear. Put 2 SMAs of 10 and 30 on. Compare your chart from when it set to default 12:00 to 12:00 then set the chart from 9:30 to 4:00 and compare the crossover points. Are they different?
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
|
When the SMA shows different values what values is it using the execute the trade from?
|
|
|
|
|
|
#7 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
pistolpete,
It uses different data points for the SMA so it will be different. After awhile the difference fades away since the period range phases out different bars and phases in newer bars. It can be different yet it can be the same. As stated, the indicators use all the bars on the chart and none of the bars not on the chart.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Sep 2008
Posts: 104
Thanks: 0
Thanked 0 times in 0 posts
|
Josh,
How do you have access to the data 12am-12am for your indicators, but limit the strategy to execute trades during a specific time block? Say you want a given strategy to be allowed to take trades from 7am-8am Central, 8:45am to 11:30am central, etc. Thanks. Also this may be in the wrong place, but how do you put a standard deviation band (like in the VWAP) around a Pivot or Prior day Price level, and use it in a strategy? |
|
|
|
|
|
#9 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
mainstream,
You will have to program a time filter as shown here: http://www.ninjatrader-support2.com/...ead.php?t=3226 If you want some band around something you will have to use some custom programming of the band's logic to add it.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Sep 2008
Posts: 104
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Josh.
I suppose one could "cut and paste" the coding you guys did for VWAP and substitute a different input, because adding a "pivot" as the default input of say APZ in the strategy analyzer, does not work, am I correct? Also do you all teach writing the ninja code? |
|
|
|
|
|
#11 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
mainstream,
That code is provided as-is as a 3rd party indicator. Unfortunately I do not know if you can simply replace it with pivots. Also, I don't think it has much value in doing that since pivots are nearly static values anyways. We are constantly improving our educational resources, but unfortunately we do not currently offer any programming courses.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#12 |
|
Senior Member
Join Date: Sep 2008
Posts: 104
Thanks: 0
Thanked 0 times in 0 posts
|
Well, it may it may not. I don't know yet. I'll try to figure it out.
Anyway on the teaching thing, I'm sure you'd find many students willing to compensate you for your time and the time of the company. Maybe you could teach a class at UCLA
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pre Market Data button/icon | rretch | Suggestions And Feedback | 1 | 05-21-2009 01:07 PM |
| Ninja Chart won't show pre-market data for NYMEX | TapeReader | Charting | 1 | 08-21-2008 07:50 AM |
| Pre-market After Hours Data | cipher4d | Charting | 5 | 08-04-2008 11:05 AM |
| Saving Charts & Pre Market data | johncare | Charting | 3 | 05-05-2008 07:32 AM |
| Using pre-recorded data? | Antraman | Miscellaneous Support | 2 | 11-08-2005 01:49 AM |