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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X