Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems with following SampleBoolSeris example

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

    Problems with following SampleBoolSeris example

    I'm following the BoolSeriesSample to share bool logic in one indicator with another indicator.

    I created the source indicator and inserted the boolseries variables. I then tried to add the source indicator to my target indicator.

    The source indicator "SignalTrend" and the target is "MovingAvg".

    In the target indicator I added the source indicator as follows:

    Add(SignalTrend());

    but got the following error message on compile:

    Argument '1': cannot convert from 'NinjaTrader.Indicator.SignalTrend' to 'NinjaTrader.Gui.Chart.Line'

    Can someone tell me what the error message is telling me?

    Thanks,

    taddypole...

    #2
    taddypole, unfortunately indicators could only added to the Initialize() method of strategies for display and not to other indicators. In a strategy that Add() statement would compile well.

    Comment


      #3
      Is there any way to get logic from an indicator in a panel to the price plot? Other than creating a second indicator for display in the price panel?

      Comment


        #4
        Some users have had success with dynamically setting DrawOnPricePanel true / false in their indicators, but officially we could not support that technique, the recommended way would be price panel helper indicator then.

        Comment


          #5
          I've tried the DOPP true,false technique following those who have been successful with it but can't get it to work. It continues to only plot in the panel.

          I set DOPP to true in the initialize section, then to false for the first part of the code and then to true for the code section to draw in the price panel, but it would only plot in the indicator panel for me. Not sure it COBC has anything to do with it, I run in COBC = false.

          When you say, "Price Panel Helper Indicator" are just referring to a duplicate indicator for the price panel? My goal is to take logic from several indicators and combine them into one draw object on the price panel. Creating multiple duplicate indicators seems inefficient.

          regards,

          taddypole...

          Comment


            #6
            Yes, there are cases where it works and others where it won't - we have this area on our list of feedback to consider for the future.

            Correct, then you would need an indicator combing logic from your other indicator methods on the price panel. Indicators instances would be attempted to be cache by NT where possible.

            Comment


              #7
              Thanks Bertrand,

              For my Helper indicator and to take advantage of caching, what things do i need to consider?
              Is it just and exact duplicate of the indicator applied to the price panel?

              Comment


                #8
                Taddypole,

                Yes, an indicator to draw on price panel and an indicator draw on other panels. You don't have to do anything to take advantage of indicator caching. It's all managed internally.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                581 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                338 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                554 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                552 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X