chart shiftet the orderarrow and text to the right
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).
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.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post:
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