Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot executions

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

    Plot executions

    Hello,

    In "Data Series" there is a "Plot executions" option that allows you to "do not plot".
    This option can be disabled with control+E.
    Is there an instruction in ninjascript to disable it within an indicator?

    Thank you

    Regards

    #2
    Hello anmir5,

    Thank you for your post.

    I am not aware of a supported way to disable this setting via code.

    This thread will remain open for anyone who has an unsupported/undocumented solution.

    Comment


      #3
      This gives you the core code that you require.
      Code:
              #region toggle Executions Text & Marker State
              private void TextAndMarkerStateChange()
              {
                  if(ShowTextAndMarker == true )// 3 potential states so I use this concept to go 2 and 1
                  {
               
                  if(    String.Compare(ShowExecState,"EXECUTION MARKERS ONLY") == 0 )
                      {
                      ShowExecState = "FULL TEXT EXECUTION MARKERS";
                          
                      
      ChartBars.Properties.PlotExecutions = ChartExecutionStyle.TextAndMarker;
                 
                      ShowTextAndMarker = false;   
                      }
                  
                  if(String.Compare(ShowExecState,"NO EXECUTION MARKERS") == 0 )
                      {
                      ShowExecState = "EXECUTION MARKERS ONLY";
                    ChartBars.Properties.PlotExecutions = ChartExecutionStyle.MarkersOnly;
      
                      }    
                  }
                  else
                      {
                      ShowTextAndMarker = true;
                   ChartBars.Properties.PlotExecutions = ChartExecutionStyle.DoNotPlot;
                      ShowExecState = "NO EXECUTION MARKERS";
                  
                          
                      }
      
                      
              }    
              
          
              #endregion​​

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X