![]() |
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
|
In Tools > Options > Data, you can set the "Quote currencies (FX) in:" value to Pip, HalfPip and TenthPip. I need to know how this is set for my strategy to correctly calculate stops and targets, since this setting will determine the number of "ticks" per "pip" on the chart.
I have this code in my Initialize tag to deal with it, but I don't know how to get the Quote parameter: Code:
if (Instrument.MasterInstrument.InstrumentType = InstrumentType.Currency && (Quotes are TenthPip || Quotes are HalfPip)) ThisTicksize = TickSize * 10;
else ThisTicksize = TickSize;
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hello Cassb,
Unfortunately access to this option programtically is not supported.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Senior Member
|
Quote:
Thanks!
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
|
You could add this as input to your strategy and then set stop / target ticks accordingly.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Senior Member
|
Quote:
Ooh, hey good idea Bertrand, thanks! Bryan
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please add Bid size, Ask size, Last size to Market Analyzer | Profitmake | Version 7 Beta General Questions & Bug Reports | 3 | 05-26-2010 09:21 AM |
| Error calling 'OnExecution' - object reference not set to an instance of an object | kcsystemtrader | Strategy Development | 9 | 05-11-2009 03:11 PM |
| Error on running optimizer. Object reference not set to an instance of an object. | vasily20011 | Strategy Analyzer | 5 | 03-09-2009 08:09 AM |
| Draw Object Size in code??? | higler | General Programming | 1 | 05-10-2008 02:21 PM |
| Error: Object reference not set to an instance of an object. | Januson | Market Analyzer | 1 | 05-18-2007 12:12 AM |