Is it possible to disable the Parameters tab ? - page 2

 
angevoyageur:

Found. If you use this version of OnCalculate, you have a Parameters tab :

But if you use this version, you don't have one.

Excellent  :-)  thank you,  it does indeed work.
 
angevoyageur:

Found. If you use this version of OnCalculate, you have a Parameters tab :

But if you use this version, you don't have one.

 Perplexing problem - I have this (as above) 

int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &Time[],
                const double &Open[],
                const double &High[],
                const double &Low[],
                const double &Close[],
                const long &TickVolume[],
                const long &Volume[],
                const int &Spread[])

 So no Parameter Tab but still Colors and Visualization Tabs.

 

 I would like to remove the Colors Tab  or prevent the Colors, Width and Style in the Colors Tab from being changed.

The reason, as follows. 

 I have 

#property indicator_type1 DRAW_LINE

 and

void OnInit()
{
   SetIndexBuffer(0,Buffer1,INDICATOR_DATA);
   
   PlotIndexSetInteger(0,PLOT_DRAW_BEGIN,K);
         
   PlotIndexSetInteger(0,PLOT_LINE_STYLE,Line_Styles_K);
     
   PlotIndexSetInteger(0,PLOT_LINE_WIDTH,Line_Width_K);
     
   PlotIndexSetInteger(0,PLOT_LINE_COLOR,Line_Color_K);
}

 Line Color, Style and Width is controlled via Inputs (input color Line_Color_K, etc) - see above associated PlotIndexSetInteger code.

This has enabled Inputs to be changed and saved to *.set file for use via the Save - Load facility.

The object is to use the Inputs to set Line Color, Width and Style and not the Colors Tab. 

Although the Colors Tab is initially blank when the the Property Window is loaded onto the chart, once the OK button is pressed the Colors Tab is populated with the colors set via the Inputs Tab. 

In this instance the Inputs Tab has precedence over the Colors Tab by virtue that inputs can be saved to *.set file and also if the colors are changed via the Colors Tab they will default to the Inputs Colors if the time frame is changed. The same

applies to Line Width and Style.  

I  have tried disabling colors in the Colors Tab with the following

#property indicator_color1 clrNONE

 But this has no effect and the same conditions as mentioned above still exist.

So in summary, either

1. Disable the Colors Tab so that colors, width ans style cannot be changed, or

2. Remove the Colors Tab

 Any pointers appreciated.