I created strategy for my automation, I need to convert this strategy to be indicator, therefor I could see when I need to enable the strategy by looking bar colour area. Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Convert ready made strategy to Indicator
Collapse
X
-
Welcome to the forumsHaryh007,
Thanks for your post.
Indicators do not have a Position object, so you essentially would want to track a variable for when the strategy would be long/flat so that you can colorize the chart so it is visible what position the strategy would be in.
This could be recreated mostly by changing BackBrush based on the same conditions the strategy would call EnterLong() to enter and ExitLong() to exit, but since there is no Position tracking in an indicator, it would not be as easy to show what a position would be based on stop and limit order fills.
BackBrush - https://ninjatrader.com/support/help...?backbrush.htm
Alternatively, you could consider colorizing in a strategy that gets applied to the Sim101 account to show what the strategy position would be with X settings. You could use OnExecutionUpdate to track when the strategy Position changes to control when drawing should be made on the chart.
OnExecutionUpdate - https://ninjatrader.com/support/help...tionupdate.htm
Position - https://ninjatrader.com/support/help...8/position.htm
We look forward to assisting.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
81 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
55 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment