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 03-25-2009, 09:26 AM   #1
Joerg
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 110
Thanks: 0
Thanked 0 times in 0 posts
Default Problem with FX-Tick-Size

Hello,

I´m using IB-Data and actual version of NT (6.5.1000.9) and I have a problem with the correct Tick-Size-Settings for f.e. EURUSD: When I´m using 0.00001 as tick size the price is displayed correctly in the chart and also in the Orders-Tab of the ControlCenter. But when I´m using the SetStopLoss()-Function with "CalculationMode.Ticks" then I have to multiply the number of ticks by 10 to get the correct Stops calculated because the ticks in EURUSD are 0.0001 instead of 0.00001.

Now the problem: When I change the tick size to 0.0001 (which should be right for EURUSD) in ControlCenter and in the Chart just 0.0000 is shown as price. The chart looks good and also the signals get correct prices but the last is just shown as 0.0000 . In the Options I´ve choosen to display FX-Quotes as Tenth Pips.

How can I get correct Tick-sizes in a trading strategy while using tick-size of 0.0001 for EURUSD?

Thanks a lot.

Joerg
Joerg is offline  
Reply With Quote
Old 03-25-2009, 09:39 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Hi Joerg,

- Please disconnect
- Please go to Tools > Options > Misc and set "Quote currencies..." to "Pip"
- Go to Instrument Manager and set the tick size for EURUSD to "0.0001"
- Go back to Tools > Options > Misc and set to "Half Pip" (this is what IB quotes in)

If you now add the following code in your strategy -

Print(TickSize);

You should see the following value in the Output window:

0.00005

Which is the correc tick size for IB.
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-25-2009, 09:56 AM   #3
Joerg
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 110
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for the fast answer. I will try it todays evening.

But why using not the same ticks in the SetStopLoss-Function (and related functions) as in the symbol-settings? Half ticks then could be written as 0.5 f.e. This would make it easier to handle the SetStopLoss-Function with CalculationMode.Ticks.

Regards,

Joerg
Joerg is offline  
Reply With Quote
Old 03-25-2009, 10:03 AM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Since the symbol settings is NOT meant to be changed. The tick size (pip) is really 0.0001. When you change the quote display to 1/2 pips, that is when the tick value in the strategy will change.
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-26-2009, 02:50 AM   #5
Joerg
Senior Member
 
Join Date: Oct 2007
Location: Germany
Posts: 110
Thanks: 0
Thanked 0 times in 0 posts
Default

Hello,

I tried as you described but unfortunetely the 0.0000-display does not disappear. In the chart and in the Order-Panel of ControlCenter I see only 0.0000. Curiously sometime the correct quote is shown for a second and disappears again.

Which setting else could be wrong? Do you get the same effect for IB-Data with tick-size 0.0001 and half-pips?

Thanks a lot

Joerg
Joerg is offline  
Reply With Quote
Old 03-26-2009, 08:29 AM   #6
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

This is what I see.

You will get prices formatted as:

1.XXXX

If a price falls on a 1/2 pip, you will get

1.XXXX'5

If you print out TickSize you will get 0.00005
Attached Images
File Type: jpg FX.jpg (87.5 KB, 16 views)
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-29-2009, 06:52 AM   #7
kuhasu
Member
 
Join Date: Feb 2009
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
Default

What abt the setting in MB trading forex for tick size and point value?
Thank you.

Quote:
Originally Posted by NinjaTrader_Ray View Post
Hi Joerg,

- Please disconnect
- Please go to Tools > Options > Misc and set "Quote currencies..." to "Pip"
- Go to Instrument Manager and set the tick size for EURUSD to "0.0001"
- Go back to Tools > Options > Misc and set to "Half Pip" (this is what IB quotes in)

If you now add the following code in your strategy -

Print(TickSize);

You should see the following value in the Output window:

0.00005

Which is the correc tick size for IB.
kuhasu is offline  
Reply With Quote
Old 03-29-2009, 08:01 AM   #8
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Quote:
- Go back to Tools > Options > Misc and set to "Half Pip" (this is what IB quotes in)
It would be TenthPip
NinjaTrader_Ray 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
We need the stocks's Tick Size to change. Greenmoney21 Miscellaneous Support 16 06-25-2010 11:47 PM
Order size <.02M rejected by Interactive Brokers for FX kjohnson67 Strategy Development 1 12-19-2008 10:07 AM
Is it possible to set different tick size for T&S and SuperDom? pipal SuperDOM and other Order Entry Windows 4 11-30-2008 05:47 PM
How can I get market tick size? maxima Indicator Development 2 05-04-2008 10:54 AM
ZN Custom Tick Size Futures_Shark SuperDOM and other Order Entry Windows 5 11-15-2007 08:32 AM


All times are GMT -6. The time now is 08:47 PM.