Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy based on intelligent Indicator

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

    Strategy based on intelligent Indicator

    I have a custom Indicator which calculates when to enter/exit and colors its line based on that. (Thats why I call it "intelligent".)

    What is the recommended way to build a strategy on this indicator?
    I do not want to cop/paste the logic of the indicator to the strategy. This would be a "code smell".
    The strategy should be able to read the signals from the indicator.

    My current implementation is to add a public "List<Signal>" to the indicator and the strategy simply reads this list.
    But I think this is boilerplate code.
    Is there a recommended way to do this?

    #2
    I would be glad to look at the indicator to see what you can access from the Strategy Builder if you want to share or you could email if preferred

    Comment


      #3
      Hello Bobin,

      One solution would be to create a plot that sets a value and use this as a signal.

      Below is a link to an example.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      429 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      281 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      241 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      328 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      290 views
      0 likes
      Last Post CarlTrading  
      Working...
      X