![]() |
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: Germany
Posts: 110
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2007
Location: Germany
Posts: 110
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Oct 2007
Location: Germany
Posts: 110
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#6 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
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
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#7 | |
|
Member
Join Date: Feb 2009
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
|
What abt the setting in MB trading forex for tick size and point value?
Thank you. Quote:
|
|
|
|
|
|
|
#8 | |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Quote:
Ray
NinjaTrader Customer Service |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |