Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Long Bar Shadow during Backtesting.
Collapse
X
-
Long Bar Shadow during Backtesting.
When I do a visual inspection of the strategy in the Chart Tab, I notice for SPY Bar Charts, there are alot of very long shadow lines. When this line hit my stop loss, the stop loss gets executed. But the point is, the long shadows are obviously incorrect. During live trade, will I get stopped out if such incorrect bars appear? Is there any way to prevent such incorrect bars during backtesting?Tags: None
-
Which datafeed are you using?
Yes, if you get a so called 'bad tick' in realtime it can trigger your stops.
For this you could use our realtime tick filter - http://www.ninjatrader-support.com/H...Filtering.html
-
I am using IB feed. What would be a typical value for "Bad tick offset as %" value? Attach a pic of the long shadow I am talking about.Originally posted by NinjaTrader_Bertrand View PostWhich datafeed are you using?
Yes, if you get a so called 'bad tick' in realtime it can trigger your stops.
For this you could use our realtime tick filter - http://www.ninjatrader-support.com/H...Filtering.html
Comment
-
On the Strategy Analyser chart, there is no option to reload historical data on the right click? I also notice the Chart in the Strategy Analyser has more long shadows than normal charts I am using for the same ticker. Why is that so?
Does adding the tick filter remove the long shadow? Or it just mean the indicators or strategies won't act on it?Last edited by tjendra; 03-24-2009, 05:34 AM.
Comment
-
Enabling it will filter out the ticks that fall in the specified range from the real time data stream you receive, so the strategies receiving won't react when those come in. It will not work on your historically downloaded data.
To reload your data from IB, you can also use the option in the Control Center (Tools > Historical Data > Reload).
Are you using the same charting interval in both your charts and the Strategy Analyzer?
Comment
-
Yes I am using the same interval, that's why I was quite surprised one came without the shadows and one with them even thought they are from the same feed.
If I reload the historical data from IB with the tick filter enabled. Does it get rid of the long shadows in the chart during backtesting?
Comment
-
It could also be visual due to another scaling being used for the normally smaller Strategy Analyzer chart...the reload can fix those bad ticks if the data has been fixed on the server side from which you reload your data. The filter will not have any effect on the historical data, it will only work on realtime incoming data.
Comment
-
Bar Shadows
Hello Bertrand,
I've the same issue but on all bars. This is the first time I have this issue, after I imported a new instrument from the instrument list yesterday. Seemingly the current bars are printing correctly now. I've reset the database with no success. I don't have any errors in my log file regarding this and the instrument works fine on my brokerage charting platform.
Thank you in advance.
Kind regards,
Comment
-
Hello Bertrand,
thanks for your reply.
I've just updated NT7 and the PFGBest API. Then reinstalled NT7 due to API issues, which occur every time. After a time consuming procedure and NT7 takes pity with me and accepts the new API, I thought it would work now. But, NO.
This neither works on my desktop PC nor on my notebook. Like I said before, I've checked all the instruments with my brokerage charting platform and they work fine there. I also contacted PFG, and they said everything is OK. Please could you check the instrument database on your side, notably the interest rate futures.
Regards,
Comment
-
Hello Bertrand,
here are two screenshots from the Instrument Editor of ZB and ZF whereby ZF is not working properly. ZT is also not working but ZN is working. I've also reloaded data via Historical Data Manger without success. You can take a look at the chart screenshot for a better view.
Regards,
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
659 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
374 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment