NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-11-2010, 03:49 PM   #1
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default Is there an object to get the Fx quote size?

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!
cassb is offline  
Reply With Quote
Old 06-11-2010, 04:12 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Cassb,

Unfortunately access to this option programtically is not supported.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 06-11-2010, 09:06 PM   #3
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

Quote:
Originally Posted by NinjaTrader_RyanM View Post
Hello Cassb,

Unfortunately access to this option programtically is not supported.
Is there another way to do what I'm trying to do then? What I need to know is whether the Fx ticksize is in pips or in tenths of pips.

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!
cassb is offline  
Reply With Quote
Old 06-12-2010, 06:24 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

You could add this as input to your strategy and then set stop / target ticks accordingly.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-12-2010, 12:49 PM   #5
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
You could add this as input to your strategy and then set stop / target ticks accordingly.

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!
cassb is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 04:35 PM.