Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Indicatori

Custom Bears Power Inputs - indicatore per MetaTrader 5

Visualizzazioni:
3862
Valutazioni:
(10)
Pubblicato:
2018.09.27 15:52
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Two settings have been added to input parameters: line color (Color) and line width (Width).

Custom Bears Power Inputs

Why are the line color (Color) and line width (Width) are provided as input parameters, whereas the line color and width in the standard indicator can be changed manually? If you test a strategy in the tester or the indicator is added to a chart by an Expert Advisor (via ChartIndicatorAdd), Bears Power is ALWAYS displayed with the default color and width:

FUTKCSEP18H1 Bears

In my opinion, such a display is not very convenient, so here is a custom indicator Custom Bears Power Inputs (using iCustom), with the passing of parameters colors and widths

//--- create handle of the indicator iBearsPower
   handle_iBearsPower=iCustom(m_symbol.Name(),Period(),"Custom Bears Power Inputs",
                            InpMAPeriod,InpBearsColor,InpBearsWith);
//--- if the handle is not created 
   if(handle_iBearsPower==INVALID_HANDLE)
     {
      //--- tell about the failure and output the error code 
      PrintFormat("Failed to create handle of the iBearsPower indicator for the symbol %s/%s, error code %d",
                  Symbol(),
                  EnumToString(Period()),
                  GetLastError());
      //--- the indicator is stopped early 
      return(INIT_FAILED);
     }

This allows you to see a more beautiful indicator in the tester or on the terminal chart:

Custom Bears Power Inputs

Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/21781

Custom Bulls Power Inputs Custom Bulls Power Inputs

A modification of the "Bulls Power" indicator: now the line color and line width can be set in input parameters.

Custom Moving Average Inputs Custom Moving Average Inputs

A modification of the "Custom Moving Average" indicator: now the line color and line width can be set in input parameters.

i-AnyRangeCldTail_System i-AnyRangeCldTail_System

The indicator paints candlesticks, which are beyond the i-AnyRangeCldTail channel. Candlesticks outside the channel limits are marked with color according to the trend.

i-AnyRangeCldTail_System_Alert i-AnyRangeCldTail_System_Alert

The i-AnyRangeCldTail_System indicator provides alerts, sends email and push notifications when the candlesticks break through the dot-dash channel.