거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Custom Moving Average Levels - MetaTrader 5용 지표

조회수:
7333
평가:
(27)
게시됨:
2017.05.29 15:35
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

A Moving Average indicator, for which the values of two levels can be specified from the MQL5 code:

Custom Moving Average Levels

An example of this indicator (located in "terminal data directory"\MQL5\Indicators\MyInd\):

...
int            handle_iMA_Custom;            // variable for storing the handle of the iMA indicator 
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
...
//--- create handle of the Custom indicator "Custom Moving Average Levels"
   handle_iMA_Custom=iCustom(Symbol(),Period(),"MyInd\\Custom Moving Average Levels",
                             ma_period,
                             ma_shift,
                             ma_method,
                             100,
                             -100);
//--- if the handle is not created 
   if(handle_iMA_Custom==INVALID_HANDLE)
     {
      //--- tell about the failure and output the error code 
      PrintFormat("Failed to create handle of the iMA indicator for the symbol %s/%s, error code %d",
                  Symbol(),
                  EnumToString(Period()),
                  GetLastError());
      //--- the indicator is stopped early 
      return(INIT_FAILED);
     }
   ChartIndicatorAdd(0,0,handle_iMA_Custom);
//---
   return(INIT_SUCCEEDED);
  }

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/18106

XFatlXSatlCloud_HTF XFatlXSatlCloud_HTF

The XFatlXSatlCloud indicator with the timeframe selection option available in its input parameters.

ColorXMUV_HTF ColorXMUV_HTF

The ColorXMUV indicator with the timeframe selection option available in its input parameters.

Session Buy Sell Orders Session Buy Sell Orders

A histogram of maximum and minimum values of parameters SYMBOL_SESSION_BUY_ORDERS — "the total number of current buy orders" and SYMBOL_SESSION_SELL_ORDERS — "the total number of current sell orders". The drawing style is DRAW_HISTOGRAM.

Exp_XFatlXSatlCloud Exp_XFatlXSatlCloud

The Exp_XFatlXSatlCloud trading system is based on change of the trend direction displayed by the XFatlXSatlCloud indicator