![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Oct 2008
Location: Dallas, TX
Posts: 120
Thanks: 9
Thanked 2 times in 2 posts
|
I'm trying to simulate a tick by tick strategy. I added the following lines in Initialize():
Code:
Add("EURUSD",PeriodType.Tick,1,MarketDataType.Bid);
Add("EURUSD",PeriodType.Tick,1,MarketDataType.Ask);
http://www.ninjatrader.com/support/h...sterinstrument. The docs for MasterInstrument say that MasterInstrument.Name should not be calling in Initialize(). Is there another method or property that can supply the Instrument name of the main chart within Initialize()? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi texasnomad,
Currently hard coding the instrument is only solution for now. We have this suggestion tracked with ID # 916, to allow bid / ask series Add() overload that doesn't require instrument specification. You can see this thread for a recent discussion on this and some work-arounds proposed: http://www.ninjatrader.com/support/f...988#post215988
Ryan M
NinjaTrader Customer Service
Last edited by NinjaTrader_RyanM; 04-27-2011 at 04:29 PM.
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2008
Location: Dallas, TX
Posts: 120
Thanks: 9
Thanked 2 times in 2 posts
|
Thanks for the link. Instrument.FullName successfully replaces the hard coded string.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reading this forum | stricom123 | Miscellaneous Support | 2 | 11-01-2009 11:52 AM |
| Reading Account information | gator-trader | Miscellaneous Support | 1 | 08-22-2009 01:19 PM |
| Reading from an Indicator | moflaherty | Strategy Development | 8 | 07-30-2009 11:57 AM |
| Reading Name of Script? | BillCh | General Programming | 9 | 04-09-2009 04:10 AM |
| Reading other price data | fishbed | Indicator Development | 1 | 01-18-2008 11:57 AM |