Parameters tab instead of Colors and Inputs for Indicator

 

Hi,

I noticed that the included indicator Moving Average has no Inputs nor Colors tab but nicely done Parameters tab.
Please look at the attached screenshot.

There is no code for that Indicator. I asked google and chatGPT but didn't find anything of value.

If you know how to make the Inputs and Colors tabs disappear then please share.

Best regards

 

Built-in indicators and Custom Indicators appear differently, as they are part of the MetaTrader terminal and not a MQL program as the custom indicators. In other words, there is no direct MQL source code for them.

There are however some MQL source code examples of those indicators, for reference, which you can find in the "Examples" folder or in the CodeBase section, but they will run as Custom Indicators, not built-in ones.

MQL5 Code Base
MQL5 Code Base
  • www.mql5.com
MQL5 Source Code Library for MetaTrader 5
 
Fernando Carreiro #:

Built-in indicators and Custom Indicators appear differently, as they are part of the MetaTrader terminal and not a MQL program as the custom indicators. In other words, there is no direct MQL source code for them.

There are however some MQL source code examples of those indicators, for reference, which you can find in the "Examples" folder or in the CodeBase section, but they will run as Custom Indicators, not built-in ones.

I didn't mean the built-in indicator but an Moving Average indicator that is distributed with the MetaTrader - please look at the picture.


Please look at the
Indicator/Example/ColorBars code.

The indicator has Colors tab. But I wish to get rid of the Colors tab and have nice Parameters tab.

 
Michal B #:

I didn't mean the built-in indicator but an Moving Average indicator that is distributed with the MetaTrader - please look at the picture.


Please look at the
Indicator/Example/ColorBars code.

The indicator has Colors tab. But I wish to get rid of the Colors tab and have nice Parameters tab.

This IS a built-in indicator as Fernando said.

There is no way to that with your own indicator.

 
Michal B #: I didn't mean the built-in indicator but an Moving Average indicator that is distributed with the MetaTrader - please look at the picture.

The image in your original post is that of the built-in indicator: Indicators → Trend Moving Average.

The Indicator at "Indicator/Example/ColorBars" is a Custom Indicator written in MQL.

The "Inputs" and "Colors" tabs are inherent for Custom Indicators and it is not possible to have it a single multi-purpose "Parameters" panel as is the case for built-in indicators.

Hope that explanation is more clear.

 
Your topic has been moved to the section: Technical Indicators
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893