Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Convert ready made strategy to Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Convert ready made strategy to Indicator

    Hi,
    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

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    90 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    47 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    105 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    63 views
    0 likes
    Last Post PaulMohn  
    Working...
    X