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 10-31-2008, 12:35 AM   #1
Faspomy
Senior Member
 
Join Date: Oct 2008
Location: US&A
Posts: 115
Thanks: 0
Thanked 1 time in 1 post
Default Running New Strategies

I tried to start a new strategy in the Strategies tab.

The Strategy contains a double, which has a default setting of .82. When attempting to begin the strategy, The double's value was diplayed as '1', and when I tried to enter the correct number into the field, the field reset itself to 1, just as an integer would do.

Is there any way to enter this double's value properly ?
Faspomy is offline  
Reply With Quote
Old 10-31-2008, 07:30 AM   #2
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

In the strategy, you have to go down to the property for that input in which you're having trouble with.

In there, you'll probably see something that says

Code:
inputVariable = Math.Max(1, value),
change that to
Code:
inputVariable = Math.Max(0, value)
Also, make sure its of double type.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik 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
Is anybody running automated trading strategies successfully with IB using TWS? Operandi Strategy Development 65 03-24-2009 09:29 AM
Running Multiples Strategies with different accounts richa61416 Automated Trading 1 08-25-2008 10:39 AM
Running two or more live strategies on the same symbol? skellington Strategy Development 9 08-02-2008 09:30 AM
Running strategies adrian Suggestions And Feedback 3 05-13-2008 12:33 PM
running orders directly from Ninja script vs running from Tradestation HelloHello Automated Trading 1 10-29-2007 10:07 AM


All times are GMT -6. The time now is 09:39 AM.