PDA

View Full Version : Quote currencies (FX) in


DH008
05-27-2010, 06:40 AM
Hello!

How can I find out within a NinjaScript strategy if the "Quote currencies" is set to "HalfPip"?

Thank you.

NinjaTrader_Bertrand
05-27-2010, 07:19 AM
Unfortunately you can't access this from within a NinjaScript strategy.

DH008
05-27-2010, 09:37 AM
In this case it is not possible to find out the "normal/default" tick size aside from the quoted pip size?

Lets say I have a strategy with a GUI parameter "stop loss" set to 10 pips. How do I calculate the 10 pips if every client is using different data providers and settings?

Thanks, DH

NinjaTrader_Bertrand
05-27-2010, 09:48 AM
In this case you would go with different variants of your strategy, if IB uses halfPip for example - you multiply by 2 to arrive at the ticks needed for your 10 pip target (20 ticks or min moves).

DH008
05-27-2010, 10:24 AM
Thank you for your quick reply.

I am developing strategies for a lot of clients, very often, I don't even know which real-time data provider they use. Even if I would know it, I wouldn't know which settings they are using.

So it 1) makes no sense and 2) would be unpossible for me anyway to program different variants for all providers.

Maybe you can put this issue into your todo list.
Thank you
DH

NinjaTrader_Bertrand
05-27-2010, 10:31 AM
You're welcome - thanks for the suggestions, I just add a user input so I can change this on the fly depending on which provider I'm using. You could even add an enum and then your customers select for example on which technology they are working at runtime...

DH008
05-27-2010, 10:54 AM
Are you suggesting to add an additional parameter to the strategy do define sonething what is already defined?

NinjaTrader_Bertrand
05-27-2010, 11:15 AM
Yes, this was my idea for a workaround - your suggestion to add access has been noted through.

DH008
05-27-2010, 01:11 PM
Ok, thats fine, thank you.