people with nt,
the properties and using regions and the nt generated code section are some of the most unattractive and frustrating elements for non programmers like myself when working with nt.
i have a strategy which uses a stop loss order for every position and then adjusts it to a break even stop order if price is made to move in my favor. i am refining this strategy and there are times when i would want the adjusted stop loss order to still be at a negative distance to the entry price but there are also situations when i want to test if it would be better to move this stop to a profitable position.
therefore, i would like to have a fragment of code like the one below that could work with both negative and positive values. ¿how can i change the range in this fragment so that it is not restricted to positive values only?
[NinjaScriptProperty]
[Range(1, int.MaxValue)]
[Display(Name="", Description="", Order=, GroupName="Parameters")]
public int
{ get; set; }
very well, regards.
Comment