![]() |
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 |
|
Senior Member
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
|
How do I access the bid price for a forex pair that is not the pair on which my strategy is running?
For example, I am running a strategy on the AUDCAD, but as part of my money management code, I need to get the bid for the AUDUSD. thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 973 times in 956 posts
|
You would need to Add() the needed data and then use for example GetCurrentBid in this BIP context or OnMarketData() to get the bid.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2007
Location: Sydney
Posts: 311
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Bertrand,
What is BIP, and is there a way to use DDE from within a strategy? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 973 times in 956 posts
|
BIP would stand for BarsInProgress so the series that is currently calling the OnBarUpdate() :
http://www.ninjatrader.com/support/h...inprogress.htm Interfacing via DDE would unfortunately not be supported, but you could store values perhaps in txt files via NinjaScript and then access them within your external application.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pair trading | sungtaeyoo | ATM Strategies (Discretionary Trading) | 3 | 04-06-2011 09:05 AM |
| Forex and Emini futures pair trading | freewind | Miscellaneous Support | 1 | 10-19-2010 02:38 PM |
| Inverse Y axis for Forex to Futures price conversion | Turtle Trader | Indicator Development | 4 | 04-28-2010 10:00 AM |
| Creating your own spread/pair | eha19 | Charting | 4 | 05-28-2009 01:31 PM |
| Scalping a range bound Forex Pair | Serutuf | Strategy Development | 3 | 12-31-2008 06:23 AM |