![]() |
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 2008
Location: US&A
Posts: 115
Thanks: 0
Thanked 1 time in 1 post
|
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 ? |
|
|
|
|
|
#2 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
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), Code:
inputVariable = Math.Max(0, value)
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"
PureLogikTrading |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |