![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Mar 2012
Posts: 9
Thanks: 1
Thanked 0 times in 0 posts
|
Hi,
The strategy executes above the market price. I did read this : http://www.ninjatrader.com/support/f...ad.php?t=42337 I do understand that my chart is based on last, and strategy will execute at best bid/ask for more realistic result. But isn't chart then supposed to catch up with that executed price at some point? In my case it never does for next 2 bars (See the picture attached). This is market replay on forex 10 min bar. Filled at 1:11:24 @ 1.3243 Is there anything I don't know? Some special execution rules? Thanks! |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
Hi anyaM, you're correct you see this as the chart is showing the last price, while executions are done on the bid / ask (in replay, live / sim trading).
The chart would not catch up, in FX the bid price is normally charted since no real Last exists. Thus the Ask price series would always run higher than the bid / last in your case.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#3 | |
|
Junior Member
Join Date: Mar 2012
Posts: 9
Thanks: 1
Thanked 0 times in 0 posts
|
Quote:
Thanks Bertrand, just to repeat so we are on the same page. In real life situation the chart will catch up since it would be a real trade executed on a market, but since its just a simulation, and the trade doesn't affect the market, the price doesn't reach that point. Is that right? |
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
No, in FX the charts are driven by the bidprice, so the Ask quoted would always be higher (as it includes the spread you pay), thus any execution on the buy side will be charted out of the bid based bars then.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Mar 2012
Posts: 9
Thanks: 1
Thanked 0 times in 0 posts
|
Quote:
If my chart is showing best bid price, instead of last. and the order that i mention BUY 1 @ 1.3243 gets filled, shouldn't the chart reach that price mark then? In my mind for buy order to execute, the price of this order has to become the best bid price for awhile, am i wrong? |
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
You are not trading a futures contract or equity here, but spot FX directly with your broker - so there's no unified exchange / price / market available. You get a quote to buy and one to sell from your broker directly who participates 'for you' in the bigger interbank market.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Junior Member
Join Date: Mar 2012
Posts: 9
Thanks: 1
Thanked 0 times in 0 posts
|
Quote:
thanks |
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
Yes, Buy Stops would be triggered by the ask and Sell Stops by the bid.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#9 | |
|
Senior Member
Join Date: Oct 2008
Location: Austin, TX
Posts: 119
Thanks: 44
Thanked 5 times in 4 posts
|
Quote:
It's frustrating to get stopped out many pips away from actual market movement, especially when the market never trades at the price set by the stop. Thanks! |
|
|
|
|
|
|
#10 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,414
Thanks: 252
Thanked 978 times in 961 posts
|
Unfortunately that would not be configurable neoikon. I will add this request though to our feedback tracking lists in product management.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Tags |
| market replay |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Market Replay & Fills | neb1998 | Strategy Analyzer | 1 | 07-12-2011 03:12 PM |
| Strategy Fills at Wrong Price for Market Replay | KBJ | Strategy Development | 6 | 07-07-2011 08:53 PM |
| Multiple fills on market replay | bulegila | Miscellaneous Support | 3 | 01-14-2011 03:33 AM |
| Market Replay Fills vs Live Real Money Fills | Lusitano | Strategy Development | 1 | 03-02-2009 09:38 AM |
| market replay getting numerous fills | deanrumble | Automated Trading | 8 | 09-17-2008 09:01 AM |