Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to expose custom indicator properties(?)

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

    How to expose custom indicator properties(?)

    Hi -- I have created a custom indicator that does not create a plot. It basically just uses the DrawText method to write values above bars that I want to flag for a particular reason.

    So I want to try using this indicator in a new strategy, to trade based on these 'flags' the indicator is creating. Is there any help or examples on how to pass this DrawText event, or however else I can get the strategy to recognize that the indicator has flagged a bar, into the strategy so that it can place an order?

    Thanks!
    Bryan

    #2
    Hi Bryan,

    You will not be able to pass the DrawText() directly to a strategy, but instead you can use the technique demonstrated in this reference sample to get the true/false conditions over into a strategy: https://ninjatrader.com/support/forum/forum/ninjatrader-7/strategy-development-aa/84516-exposing-values-of-custom-indicator-in-a-strategy
    Last edited by NinjaTrader_Jim; 11-01-2021, 08:55 AM.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Hi Bryan,

      You will not be able to pass the DrawText() directly to a strategy, but instead you can use the technique demonstrated in this reference sample to get the true/false conditions over into a strategy: https://ninjatrader.com/support/forum/forum/ninjatrader-7/strategy-development-aa/84516-exposing-values-of-custom-indicator-in-a-strategy
      OK Josh, thanks! I'll take a look at that thread. I knew you'd have an answer.
      Last edited by NinjaTrader_Jim; 11-01-2021, 08:55 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      65 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Working...
      X