![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 |
|
Junior Member
Join Date: Apr 2007
Location: , ,
Posts: 26
Thanks: 0
Thanked 0 times in 0 posts
|
When I enter a negative value (ex.-10) in a field of a Strategy for analyzing, it gets changed to 1. Can parameters not be negative int32 values? How to solve this?
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
If you generated your strategy via the NinjaScript Editor, look under the Properties section and find the parameter you wish to have a negative value.
You will see something like Math.Min(1, value) --> Change the "1" to a negative number. If you generated your strategy via the Wizard, in the "User Defined Inputs" screen, set the "Min." value to a negative number. Ray
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|