![]() |
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 |
|
Member
Join Date: Nov 2011
Location: Warsaw, Poland
Posts: 99
Thanks: 26
Thanked 3 times in 3 posts
|
Hi,
I print GetCurrentAsk() and GetCurrentBid() every bar in my strategy in order to check spread in currencies. I have just indicated that GetCurrentAsk = GetCurrentBid when I have opened position. Is this expected behavior? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
kucharek, I would not expect that to be seen - what broker and which pip settings under Tools > Options > Data do you use please?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2011
Location: Warsaw, Poland
Posts: 99
Thanks: 26
Thanked 3 times in 3 posts
|
Hi,
I use MB Trading and TenthPip. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Thanks, so would you see the same if you check the Level 1 data window for your currency in the Control Center? Do you print them both exactly at the same time in your script?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#5 |
|
Senior Member
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,184
Thanks: 178
Thanked 301 times in 259 posts
|
How long does this condition last?
1st print ? 10 prints? Or until position closes? Are you using market orders? Please post your print line. |
|
|
|
|
The following user says thank you to sledge for this post: |
|
|
|
#6 |
|
Member
Join Date: Nov 2011
Location: Warsaw, Poland
Posts: 99
Thanks: 26
Thanked 3 times in 3 posts
|
Your questions gave me thinking again. My mistake - something like that happens when my strategy has yellow status, instead green.
Thank you both for the support. |
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Thanks for reporting back and you're welcome.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How many opened positions? | kucharek | Automated Trading | 1 | 03-16-2012 04:40 AM |
| How do prevent selling of our position on the same day that it was opened? | tomkim | General Programming | 6 | 03-29-2010 10:07 AM |
| Storing data when position is opened | verge | Strategy Development | 4 | 10-08-2009 09:20 AM |
| simple question how to close one position when more is opened | nicknamed | ATM Strategies (Discretionary Trading) | 1 | 07-27-2009 03:01 AM |
| I have opened position I cannot close | maxima | Miscellaneous Support | 6 | 06-10-2008 02:36 AM |