NexusFi: Find Your Edge


Home Menu

 





chart shiftet the orderarrow and text to the right


Discussion in NinjaTrader

Updated
    1. trending_up 2,953 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 1 attachments




 
Search this Thread

chart shiftet the orderarrow and text to the right

  #1 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4

Hi,
I have a question regarding the Chart on back testing the daily chart on Ninjatrader.
I have a programmed a stradegie und backtestet it on a daily chart and this came out.
The text and the arrows are shiftet one bar to the right.
e.g. see the attachment on the daily chart from the 4th.
It said that it entered a short position at 63,- and closed it at 61,62. This happened at the 3rd and NOT on the 4th
Output window confirmed that it happened on the 3rd including ALL other trades so why does NT chart shifted all the arrows and the tradingtext in the chart to the right?
Is this a bug or my logical problem?
Btw the position is closed at the end of the day so this might be easier to see the attachment bug(shiftbug).

Attached Thumbnails
Click image for larger version

Name:	backtest.PNG
Views:	213
Size:	55.5 KB
ID:	1744  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
16 thanks
My NQ Trading Journal
14 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599


siscop View Post
Hi,
I have a question regarding the Chart on back testing the daily chart on Ninjatrader.
I have a programmed a stradegie und backtestet it on a daily chart and this came out.
The text and the arrows are shiftet one bar to the right.
e.g. see the attachment on the daily chart from the 4th.
It said that it entered a short position at 63,- and closed it at 61,62. This happened at the 3rd and NOT on the 4th
Output window confirmed that it happened on the 3rd including ALL other trades so why does NT chart shifted all the arrows and the tradingtext in the chart to the right?
Is this a bug or my logical problem?

Is normal. NT looks at the "CurrentBar" --- THEN --- makes a decision. That decision cannot come until the "CurrentBar" is closed and is therefore no longer the current bar. So the markers show up on the next bar.

BTW, don't use Limit orders with strategies unless you have a lot of experience. Many, many, many bugs, including fill on the same bar because the OHLC order is unknown. Filter your backtest results by # of bars. Any trades 1 bar in length should be considered losers, even though ninja will consider them winners.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4



Quoting 
Any trades 1 bar in length should be considered losers, even though ninja will consider them winners.

thanks for the hint. i programmed this for a 1 min bar and just took a 1day chart to get an better overall look. the strategie itself however took the 1 min bar :-) (BarsInProgress == 2)(1 min) that is where the programm is working on (BarsInProgress == 0) (dailychart) to get an better look on the chart

Reply With Quote




Last Updated on September 6, 2009


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts