Alternatively, you could add a OnPositionSize virtual method to StrategyBase that allows the user to calculate the position size when using managed orders like EnterLong() which don't specify a size.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Suggestion : Extend Order Properties
Collapse
X
-
Suggestion : Extend Order Properties
It would make sense to make position sizing an extension type in ninjascript and add it to the order properties. You can still have the strategy override type but it would be nice to have an extension type that could be utilized for any strategy.
Alternatively, you could add a OnPositionSize virtual method to StrategyBase that allows the user to calculate the position size when using managed orders like EnterLong() which don't specify a size.Last edited by GrumpyTrader; 12-02-2015, 12:01 PM.Tags: None
-
How is that different from Position.Quantity?Originally posted by GrumpyTrader View PostIt would make sense to make position sizing an extension type in ninjascript and add it to the order properties. You can still have the strategy override type but it would be nice to have an extension type that could be utilized for any strategy.
Alternatively, you could add a OnPositionSize virtual method to StrategyBase that allows the user to calculate the position size when using managed orders like EnterLong() which don't specify a size.
Comment
-
I'm suggesting you make the sizing logic an extension type so they can be extended and called without any added code to a specific strategy.
That way when back testing a strategy in the Strategy Analyzer under Order Properties you would be able to have (instead of just Default quantity, Account size and Strategy) you can have Fixed Risk, Percent Risk, etc.
Comment
-
Interesting idea.Originally posted by GrumpyTrader View PostI'm suggesting you make the sizing logic an extension type so they can be extended and called without any added code to a specific strategy.
That way when back testing a strategy in the Strategy Analyzer under Order Properties you would be able to have (instead of just Default quantity, Account size and Strategy) you can have Fixed Risk, Percent Risk, etc.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
24 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
30 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
18 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
||
|
Started by Mindset, 03-23-2026, 11:13 AM
|
0 responses
27 views
0 likes
|
Last Post
by Mindset
03-23-2026, 11:13 AM
|

Comment