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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X