PDA

View Full Version : ToTime error


The Shadow
03-22-2007, 12:29 PM
Hi,

I tried using the ToTime method in NinjaTrader but am having trouble getting it to work. I get this error:

No overload for method 'ToTime' takes '3' argumentsIndicator\DDF.cs6028

Here is the code I am trying to use:

if (ToTime(Time[0]) >= ToTime(Hour, fivemin, 0))

I even tried it with numbers instead of variables:

if (ToTime(Time[0]) >= ToTime(9, 30, 0))



But it still gave me the same errors. Even when trying to copy and paste the sample code from the NinjaTrader manual it gives me hte same error. Can you please tell me what I am doing wrong or is this a bug?

Thanks,

Matt

NinjaTrader_Ray
03-22-2007, 02:04 PM
What beta version are you using? Help > About. I just tested it here and it works fine. I recall we did temporarily remove one of the overloads a few revs back but have since brought it back.

Ray

The Shadow
03-22-2007, 05:02 PM
I am using version 6.0.0.8

NinjaTrader_Ray
03-23-2007, 02:00 AM
Please email me the problem cs file, ray at ninjatrader dot com.

Thanks